[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M780RTX0KEV3CYQJ1YJCW9FX":3,"skill-same:01M780RTX0KEV3CYQJ1YJCW9FX":79},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":6,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M780RTX0KEV3CYQJ1YJCW9FX","PDF Generator",null,"Generate professional PDFs from Markdown, HTML, data, or code. Reports, invoices, contracts, and documents with best practices.","HKU-MMLab\u002FUniClawBench","HKU-MMLab","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F218629317?v=4","01M7808YETMPBKR5WJNJRFSCDJ","01M7808YFS0WMXB5QAF8YG01BA",40,"MIT","https:\u002F\u002Fgithub.com\u002FHKU-MMLab\u002FUniClawBench\u002Fblob\u002Fmain\u002Finjection\u002F201_skill_usage_zh\u002Ftask_201_13_pdf_invoices_structure\u002Fskills\u002Fpdf-generator\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: PDF Generator\nslug: pdf-generator\nversion: 1.0.1\nhomepage: https:\u002F\u002Fclawic.com\u002Fskills\u002Fpdf-generator\ndescription: Generate professional PDFs from Markdown, HTML, data, or code. Reports, invoices, contracts, and documents with best practices.\nmetadata: {\"clawdbot\":{\"emoji\":\"📄\",\"requires\":{\"bins\":[]},\"os\":[\"linux\",\"darwin\",\"win32\"]}}\n---\n\n## When to Use\n\nUser needs to create, generate, or export PDF documents. Agent handles document generation from multiple sources (Markdown, HTML, JSON, templates), formatting, styling, and batch processing.\n\n## Scope\n\nThis skill ONLY:\n- Provides code patterns and implementation guidance for PDF generation\n- Explains tool selection, CSS for print, and document structure\n- Shows reference examples for common document types\n\nThis skill NEVER:\n- Executes code or generates files directly\n- Makes network requests\n- Accesses files outside user's working directory\n\nAll code examples are reference patterns for the user to implement.\n\n## Quick Reference\n\n| Topic | File |\n|-------|------|\n| Tool selection | `tools.md` |\n| Document types | `templates.md` |\n| Advanced operations | `advanced.md` |\n\n## Core Rules\n\n### 1. Choose the Right Tool\n\n| Source | Best Tool | Why |\n|--------|-----------|-----|\n| Markdown | pandoc | Native support, TOC, templates |\n| HTML\u002FCSS | weasyprint | Best CSS support, no LaTeX |\n| Data\u002FJSON | reportlab | Programmatic, precise control |\n| Simple text | fpdf2 | Lightweight, fast |\n\n**Default recommendation:** weasyprint for most HTML-based documents.\n\n### 2. Structure Before Style\n\n```python\n# CORRECT: semantic structure\nhtml = \"\"\"\n\u003Carticle>\n  \u003Cheader>\u003Ch1>Report Title\u003C\u002Fh1>\u003C\u002Fheader>\n  \u003Csection>\n    \u003Ch2>Summary\u003C\u002Fh2>\n    \u003Cp>Content...\u003C\u002Fp>\n  \u003C\u002Fsection>\n\u003C\u002Farticle>\n\"\"\"\n\n# WRONG: style-first approach\nhtml = \"\u003Cdiv style='font-size:24px'>Report Title\u003C\u002Fdiv>\"\n```\n\n### 3. Handle Page Breaks Explicitly\n\n```css\n\u002F* Force page break before *\u002F\n.new-page { page-break-before: always; }\n\n\u002F* Keep together *\u002F\n.keep-together { page-break-inside: avoid; }\n\n\u002F* Headers never orphaned *\u002F\nh2, h3 { page-break-after: avoid; }\n```\n\n### 4. Always Set Metadata\n\n```python\n# Example pattern for weasyprint\nhtml = \"\"\"\n\u003Chtml>\n\u003Chead>\n  \u003Ctitle>Document Title\u003C\u002Ftitle>\n  \u003Cmeta name=\"author\" content=\"Author Name\">\n\u003C\u002Fhead>\n...\n\"\"\"\n```\n\n### 5. Use Print-Optimized CSS\n\n```css\n@media print {\n  body {\n    font-family: 'Georgia', serif;\n    font-size: 11pt;\n    line-height: 1.5;\n  }\n  \n  @page {\n    size: A4;\n    margin: 2cm;\n  }\n  \n  .no-print { display: none; }\n}\n```\n\n### 6. Validate Output\n\nAfter generating any PDF:\n1. Check file size (0 bytes = failed)\n2. Open and verify page count\n3. Verify fonts render correctly\n\n## Common Traps\n\n| Trap | Consequence | Fix |\n|------|-------------|-----|\n| Missing fonts | Fallback to defaults | Use web-safe fonts |\n| Absolute image paths | Images missing | Use relative paths |\n| No page size | Unpredictable layout | Set `@page { size: A4; }` |\n| Large images | Huge files | Compress before use |\n\n## Security & Privacy\n\n**This is a reference skill.** It provides patterns and guidance only.\n\n**Data that stays local:**\n- All PDF generation happens on user's machine\n- No data sent externally\n\n**This skill does NOT:**\n- Execute code or make files\n- Make network requests\n- Access system files\n\n## Feedback\n\n- If useful: `clawhub star pdf-generator`\n- Stay updated: `clawhub sync`\n","## When to Use\n\nUser needs to create, generate, or export PDF documents. Agent handles document generation from multiple sources (Markdown, HTML, JSON, templates), formatting, styling, and batch processing.\n\n## Scope\n\nThis skill ONLY:\n- Provides code patterns and implementation guidance for PDF generation\n- Explains tool selection, CSS for print, and document structure\n- Shows reference examples for common document types\n\nThis skill NEVER:\n- Executes code or generates files directly\n- Makes network requests\n- Accesses files outside user's working directory\n\nAll code examples are reference patterns for the user to implement.\n\n## Quick Reference\n\n| Topic | File |\n|-------|------|\n| Tool selection | `tools.md` |\n| Document types | `templates.md` |\n| Advanced operations | `advanced.md` |\n\n## Core Rules\n\n### 1. Choose the Right Tool\n\n| Source | Best Tool | Why |\n|--------|-----------|-----|\n| Markdown | pandoc | Native support, TOC, templates |\n| HTML\u002FCSS | weasyprint | Best CSS support, no LaTeX |\n| Data\u002FJSON | reportlab | Programmatic, precise control |\n| Simple text | fpdf2 | Lightweight, fast |\n\n**Default recommendation:** weasyprint for most HTML-based documents.\n\n### 2. Structure Before Style\n\n```python\n# CORRECT: semantic structure\nhtml = \"\"\"\n\u003Carticle>\n  \u003Cheader>\u003Ch1>Report Title\u003C\u002Fh1>\u003C\u002Fheader>\n  \u003Csection>\n    \u003Ch2>Summary\u003C\u002Fh2>\n    \u003Cp>Content...\u003C\u002Fp>\n  \u003C\u002Fsection>\n\u003C\u002Farticle>\n\"\"\"\n\n# WRONG: style-first approach\nhtml = \"\u003Cdiv style='font-size:24px'>Report Title\u003C\u002Fdiv>\"\n```\n\n### 3. Handle Page Breaks Explicitly\n\n```css\n\u002F* Force page break before *\u002F\n.new-page { page-break-before: always; }\n\n\u002F* Keep together *\u002F\n.keep-together { page-break-inside: avoid; }\n\n\u002F* Headers never orphaned *\u002F\nh2, h3 { page-break-after: avoid; }\n```\n\n### 4. Always Set Metadata\n\n```python\n# Example pattern for weasyprint\nhtml = \"\"\"\n\u003Chtml>\n\u003Chead>\n  \u003Ctitle>Document Title\u003C\u002Ftitle>\n  \u003Cmeta name=\"author\" content=\"Author Name\">\n\u003C\u002Fhead>\n...\n\"\"\"\n```\n\n### 5. Use Print-Optimized CSS\n\n```css\n@media print {\n  body {\n    font-family: 'Georgia', serif;\n    font-size: 11pt;\n    line-height: 1.5;\n  }\n  \n  @page {\n    size: A4;\n    margin: 2cm;\n  }\n  \n  .no-print { display: none; }\n}\n```\n\n### 6. Validate Output\n\nAfter generating any PDF:\n1. Check file size (0 bytes = failed)\n2. Open and verify page count\n3. Verify fonts render correctly\n\n## Common Traps\n\n| Trap | Consequence | Fix |\n|------|-------------|-----|\n| Missing fonts | Fallback to defaults | Use web-safe fonts |\n| Absolute image paths | Images missing | Use relative paths |\n| No page size | Unpredictable layout | Set `@page { size: A4; }` |\n| Large images | Huge files | Compress before use |\n\n## Security & Privacy\n\n**This is a reference skill.** It provides patterns and guidance only.\n\n**Data that stays local:**\n- All PDF generation happens on user's machine\n- No data sent externally\n\n**This skill does NOT:**\n- Execute code or make files\n- Make network requests\n- Access system files\n\n## Feedback\n\n- If useful: `clawhub star pdf-generator`\n- Stay updated: `clawhub sync`\n",{"name":5,"slug":23,"version":24,"homepage":25,"metadata":26,"description":7},"pdf-generator","1.0.1","https:\u002F\u002Fclawic.com\u002Fskills\u002Fpdf-generator",{"clawdbot":27},{"os":28,"emoji":32,"requires":33},[29,30,31],"linux","darwin","win32","📄",{"bins":34},[],"main","a8ac4df6c554178c339f42696e3afe688a61f4b7","injection\u002F201_skill_usage_zh\u002Ftask_201_13_pdf_invoices_structure\u002Fskills\u002Fpdf-generator",1,"https:\u002F\u002Fgithub.com\u002FHKU-MMLab\u002FUniClawBench","https:\u002F\u002Fgithub.com\u002FHKU-MMLab","Multimedia Lab at The University of Hong Kong, a top-notch research cohort dedicated to research and educating the best minds.","2026-07-28 16:29:51",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add HKU-MMLab\u002FUniClawBench --skill \"PDF Generator\"",{"tool":49,"command":50},"bunx","bunx skills add HKU-MMLab\u002FUniClawBench --skill \"PDF Generator\"",{"tool":52,"command":53},"pnpm","pnpm dlx skills add HKU-MMLab\u002FUniClawBench --skill \"PDF Generator\"","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHKU-MMLab\u002FUniClawBench\u002Fblob\u002Fmain\u002Finjection\u002F201_skill_usage_zh\u002Ftask_201_13_pdf_invoices_structure\u002Fskills\u002Fpdf-generator\u002FSKILL.md",true,[57,63,67,71,75],{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},"_meta.json","REFERENCE","参考文档",132,"https:\u002F\u002Fgithub.com\u002FHKU-MMLab\u002FUniClawBench\u002Fblob\u002Fmain\u002Finjection\u002F201_skill_usage_zh\u002Ftask_201_13_pdf_invoices_structure\u002Fskills\u002Fpdf-generator\u002F_meta.json",{"path":64,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":65,"sourceHtmlUrl":66},"advanced.md",4637,"https:\u002F\u002Fgithub.com\u002FHKU-MMLab\u002FUniClawBench\u002Fblob\u002Fmain\u002Finjection\u002F201_skill_usage_zh\u002Ftask_201_13_pdf_invoices_structure\u002Fskills\u002Fpdf-generator\u002Fadvanced.md",{"path":68,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":69,"sourceHtmlUrl":70},"EXTRA_FILES.txt",34,"https:\u002F\u002Fgithub.com\u002FHKU-MMLab\u002FUniClawBench\u002Fblob\u002Fmain\u002Finjection\u002F201_skill_usage_zh\u002Ftask_201_13_pdf_invoices_structure\u002Fskills\u002Fpdf-generator\u002FEXTRA_FILES.txt",{"path":72,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":73,"sourceHtmlUrl":74},"templates.md",9117,"https:\u002F\u002Fgithub.com\u002FHKU-MMLab\u002FUniClawBench\u002Fblob\u002Fmain\u002Finjection\u002F201_skill_usage_zh\u002Ftask_201_13_pdf_invoices_structure\u002Fskills\u002Fpdf-generator\u002Ftemplates.md",{"path":76,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":77,"sourceHtmlUrl":78},"tools.md",2332,"https:\u002F\u002Fgithub.com\u002FHKU-MMLab\u002FUniClawBench\u002Fblob\u002Fmain\u002Finjection\u002F201_skill_usage_zh\u002Ftask_201_13_pdf_invoices_structure\u002Fskills\u002Fpdf-generator\u002Ftools.md",[80,87,94,101,108,115],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M78127EY3XPHMS16Y8A8B6NR","cli-anything-zoom","Command-line interface for Zoom — manage meetings, participants, and recordings from the command line via the Zoom REST API.","https:\u002F\u002Fgithub.com\u002FHKU-MMLab\u002FUniClawBench\u002Fblob\u002Fmain\u002Finjection\u002F205_cross_platform_zh\u002Ftask_205_33_calendar_scheduling\u002Fskills\u002Fcli-anything-zoom\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":18},"01M78123F7PCSTEZ8CT3DBEGBT","netease-music-cli","CLI for NetEase Cloud Music — search songs\u002Falbums\u002Fplaylists, get lyrics, and manage your music library from the terminal.","https:\u002F\u002Fgithub.com\u002FHKU-MMLab\u002FUniClawBench\u002Fblob\u002Fmain\u002Finjection\u002F205_cross_platform_zh\u002Ftask_205_26_music_crossid\u002Fskills\u002Fnetease-music-cli\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":18},"01M78120M9QEN0MQB9X0FCKSZX","google-calendar-gcalcli","Install and use gcalcli for live Google Calendar read access using the provided OAuth cache.","https:\u002F\u002Fgithub.com\u002FHKU-MMLab\u002FUniClawBench\u002Fblob\u002Fmain\u002Finjection\u002F203_long_context_zh\u002Ftask_203_08_hk_jpop_calendar_ticketing\u002Fskills\u002Fgoogle-calendar-gcalcli\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":18},"01M7811TTCHD4JW4FG5HG1PVY9","Excel \u002F XLSX","Create, inspect, and edit Microsoft Excel workbooks and XLSX files with reliable formulas, dates, types, formatting, recalculation, and template preservation. Use when (1) the task is about Excel, `.xlsx`, `.xlsm`, `.xls`, `.csv`, or `.tsv`; (2) formulas, formatting, workbook structure, or compatibility matter; (3) the file must stay reliable after edits.","https:\u002F\u002Fgithub.com\u002FHKU-MMLab\u002FUniClawBench\u002Fblob\u002Fmain\u002Finjection\u002F201_skill_usage_zh\u002Ftask_201_40_excel_dashboard_qa\u002Fskills\u002Fexcel-xlsx\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":18},"01M7811PGJQ4XDQ7XJ0TKNSEE6","duckdb-en","DuckDB CLI specialist for SQL analysis, data processing and file conversion. Use for SQL queries, CSV\u002FParquet\u002FJSON analysis, database queries, or data conversion. Triggers on \"duckdb\", \"sql\", \"query\", \"data analysis\", \"parquet\", \"convert data\".","https:\u002F\u002Fgithub.com\u002FHKU-MMLab\u002FUniClawBench\u002Fblob\u002Fmain\u002Finjection\u002F201_skill_usage_zh\u002Ftask_201_40_excel_dashboard_qa\u002Fskills\u002Fduckdb-cli-ai-skills\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":18},"01M7811JSJW78171B25VJ285A0","automate-excel","Automates reading, writing, merging, transforming, and validating Excel (.xlsx\u002F.xls) files. Use when the user works with spreadsheets, .xlsx files, Excel data — for cleaning, joining, validating, deduplicating, aggregating, filtering, or auditing tabular data.","https:\u002F\u002Fgithub.com\u002FHKU-MMLab\u002FUniClawBench\u002Fblob\u002Fmain\u002Finjection\u002F201_skill_usage_zh\u002Ftask_201_40_excel_dashboard_qa\u002Fskills\u002Fautomate-excel\u002FSKILL.md",[],[]]