[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KFM20CFW03YN9FE9WPFYR7":3,"skill-same:01M6KFM20CFW03YN9FE9WPFYR7":72},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":26,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":14,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":49,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M6KFM20CFW03YN9FE9WPFYR7","pandoc-pdf-error-diagnosis",null,"Systematic diagnostic workflow for resolving pandoc PDF conversion errors","xyliu-cs\u002FOpenSpace-GDPval","xyliu-cs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F89236536?v=4","01M6KF8Z1V4TXS86CKSH48BY8T","xy","01M6KF8Z67443W0SHXM85JEF0B",0,"MIT","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpandoc-pdf-error-diagnosis\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000002","文档处理","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[27,28,29,30,31,32,33,34,35,36,37,38],"PDF","diagnosis","pandoc","error","pandoc pdf error diagnosis","error diagnosis","workflow","conversion","systematic","errors","diagnostic","for","2026-11-10 10:12:30",false,"---\nname: pandoc-pdf-error-diagnosis\ndescription: Systematic diagnostic workflow for resolving pandoc PDF conversion errors\n---\n\n# Pandoc PDF Error Diagnosis Workflow\n\nWhen pandoc reports an \"unknown error\" during PDF conversion, follow this systematic diagnostic workflow to identify and resolve the issue.\n\n## Step 1: Verify Pandoc Installation\n\nFirst, confirm pandoc is installed and check its version:\n\n```bash\npandoc --version\n```\n\nThis verifies pandoc is available and shows which version and features are supported.\n\n## Step 2: Check Available PDF Engines\n\nIdentify which PDF rendering engines are installed on the system:\n\n```bash\nwhich pdflatex xelatex lualatex wkhtmltopdf\n```\n\nCommon engines and their characteristics:\n- **pdflatex**: Fast, widely available, good for simple documents\n- **xelatex**: Better Unicode\u002Ffont support, handles modern fonts well\n- **lualatex**: Advanced Lua scripting, modern TeX features\n- **wkhtmltopdf**: HTML-to-PDF via WebKit, good for web-styled content\n\n## Step 3: Attempt Conversion with Explicit Engine\n\nTry conversion with an explicit engine specification, starting with xelatex (most forgiving):\n\n```bash\npandoc input.md -o output.pdf --pdf-engine=xelatex\n```\n\n**Important**: Capture the full stderr output for diagnosis:\n\n```bash\npandoc input.md -o output.pdf --pdf-engine=xelatex 2>&1 | tee conversion.log\n```\n\n## Step 4: Analyze Error Output\n\nExamine the captured stderr for common issues:\n\n| Error Pattern | Likely Cause | Solution |\n|---------------|--------------|----------|\n| `xelatex not found` | Engine not installed | Install TeX Live or try different engine |\n| `Package xyz not found` | Missing LaTeX package | Install missing package or remove feature |\n| `Font xyz not found` | Missing font | Install font or change document fonts |\n| ` LaTeX Error: File xyz.sty not found` | Missing style file | Install texlive-extra or simplify document |\n\n## Step 5: Fallback Strategy\n\nIf the primary engine fails, try alternatives in order:\n\n```bash\n# Try pdflatex (most basic)\npandoc input.md -o output.pdf --pdf-engine=pdflatex 2>&1\n\n# Try lualatex (if xelatex failed)\npandoc input.md -o output.pdf --pdf-engine=lualatex 2>&1\n\n# Try wkhtmltopdf (for HTML-heavy content)\npandoc input.md -o output.pdf --pdf-engine=wkhtmltopdf 2>&1\n```\n\n## Step 6: Install Missing Dependencies (if possible)\n\nIf a specific engine is needed but missing:\n\n```bash\n# Debian\u002FUbuntu\nsudo apt-get install texlive-xetex texlive-fonts-recommended\n\n# macOS with Homebrew\nbrew install --cask mactex-no-gui\n\n# Check what's available\ntlmgr install \u003Cpackage-name>\n```\n\n## Step 7: Simplify and Retry\n\nIf all engines fail, simplify the source document:\n\n1. Remove complex tables or math\n2. Replace custom fonts with standard fonts\n3. Split large documents into sections\n4. Convert to intermediate format first (e.g., HTML then PDF)\n\n## Quick Reference Diagnostic Script\n\n```bash\n#!\u002Fbin\u002Fbash\n# pandoc-pdf-diagnose.sh\n\nINPUT=\"${1:-input.md}\"\nOUTPUT=\"${2:-output.pdf}\"\n\necho \"=== Pandoc PDF Conversion Diagnosis ===\"\necho \"Input: $INPUT\"\necho \"Output: $OUTPUT\"\necho \"\"\n\necho \"1. Pandoc version:\"\npandoc --version | head -1\necho \"\"\n\necho \"2. Available engines:\"\nfor engine in pdflatex xelatex lualatex wkhtmltopdf; do\n    if which $engine > \u002Fdev\u002Fnull 2>&1; then\n        echo \"  ✓ $engine: $(which $engine)\"\n    else\n        echo \"  ✗ $engine: not found\"\n    fi\ndone\necho \"\"\n\necho \"3. Attempting conversion with xelatex:\"\npandoc \"$INPUT\" -o \"$OUTPUT\" --pdf-engine=xelatex 2>&1\n\nif [ $? -eq 0 ]; then\n    echo \"✓ Conversion successful!\"\nelse\n    echo \"✗ Conversion failed. Try alternative engines.\"\nfi\n```\n\n## When to Use This Skill\n\n- Pandoc reports \"unknown error\" during PDF conversion\n- PDF output is empty or corrupted\n- Need to determine which PDF engine works best for a document\n- Troubleshooting CI\u002FCD pipeline document generation failures","# Pandoc PDF Error Diagnosis Workflow\n\nWhen pandoc reports an \"unknown error\" during PDF conversion, follow this systematic diagnostic workflow to identify and resolve the issue.\n\n## Step 1: Verify Pandoc Installation\n\nFirst, confirm pandoc is installed and check its version:\n\n```bash\npandoc --version\n```\n\nThis verifies pandoc is available and shows which version and features are supported.\n\n## Step 2: Check Available PDF Engines\n\nIdentify which PDF rendering engines are installed on the system:\n\n```bash\nwhich pdflatex xelatex lualatex wkhtmltopdf\n```\n\nCommon engines and their characteristics:\n- **pdflatex**: Fast, widely available, good for simple documents\n- **xelatex**: Better Unicode\u002Ffont support, handles modern fonts well\n- **lualatex**: Advanced Lua scripting, modern TeX features\n- **wkhtmltopdf**: HTML-to-PDF via WebKit, good for web-styled content\n\n## Step 3: Attempt Conversion with Explicit Engine\n\nTry conversion with an explicit engine specification, starting with xelatex (most forgiving):\n\n```bash\npandoc input.md -o output.pdf --pdf-engine=xelatex\n```\n\n**Important**: Capture the full stderr output for diagnosis:\n\n```bash\npandoc input.md -o output.pdf --pdf-engine=xelatex 2>&1 | tee conversion.log\n```\n\n## Step 4: Analyze Error Output\n\nExamine the captured stderr for common issues:\n\n| Error Pattern | Likely Cause | Solution |\n|---------------|--------------|----------|\n| `xelatex not found` | Engine not installed | Install TeX Live or try different engine |\n| `Package xyz not found` | Missing LaTeX package | Install missing package or remove feature |\n| `Font xyz not found` | Missing font | Install font or change document fonts |\n| ` LaTeX Error: File xyz.sty not found` | Missing style file | Install texlive-extra or simplify document |\n\n## Step 5: Fallback Strategy\n\nIf the primary engine fails, try alternatives in order:\n\n```bash\n# Try pdflatex (most basic)\npandoc input.md -o output.pdf --pdf-engine=pdflatex 2>&1\n\n# Try lualatex (if xelatex failed)\npandoc input.md -o output.pdf --pdf-engine=lualatex 2>&1\n\n# Try wkhtmltopdf (for HTML-heavy content)\npandoc input.md -o output.pdf --pdf-engine=wkhtmltopdf 2>&1\n```\n\n## Step 6: Install Missing Dependencies (if possible)\n\nIf a specific engine is needed but missing:\n\n```bash\n# Debian\u002FUbuntu\nsudo apt-get install texlive-xetex texlive-fonts-recommended\n\n# macOS with Homebrew\nbrew install --cask mactex-no-gui\n\n# Check what's available\ntlmgr install \u003Cpackage-name>\n```\n\n## Step 7: Simplify and Retry\n\nIf all engines fail, simplify the source document:\n\n1. Remove complex tables or math\n2. Replace custom fonts with standard fonts\n3. Split large documents into sections\n4. Convert to intermediate format first (e.g., HTML then PDF)\n\n## Quick Reference Diagnostic Script\n\n```bash\n#!\u002Fbin\u002Fbash\n# pandoc-pdf-diagnose.sh\n\nINPUT=\"${1:-input.md}\"\nOUTPUT=\"${2:-output.pdf}\"\n\necho \"=== Pandoc PDF Conversion Diagnosis ===\"\necho \"Input: $INPUT\"\necho \"Output: $OUTPUT\"\necho \"\"\n\necho \"1. Pandoc version:\"\npandoc --version | head -1\necho \"\"\n\necho \"2. Available engines:\"\nfor engine in pdflatex xelatex lualatex wkhtmltopdf; do\n    if which $engine > \u002Fdev\u002Fnull 2>&1; then\n        echo \"  ✓ $engine: $(which $engine)\"\n    else\n        echo \"  ✗ $engine: not found\"\n    fi\ndone\necho \"\"\n\necho \"3. Attempting conversion with xelatex:\"\npandoc \"$INPUT\" -o \"$OUTPUT\" --pdf-engine=xelatex 2>&1\n\nif [ $? -eq 0 ]; then\n    echo \"✓ Conversion successful!\"\nelse\n    echo \"✗ Conversion failed. Try alternative engines.\"\nfi\n```\n\n## When to Use This Skill\n\n- Pandoc reports \"unknown error\" during PDF conversion\n- PDF output is empty or corrupted\n- Need to determine which PDF engine works best for a document\n- Troubleshooting CI\u002FCD pipeline document generation failures",{"name":5,"description":7},"main","af1b40a42167d09c30b3a63000aa14ace4c1e229","gdpval_bench\u002Fskills\u002Fpandoc-pdf-error-diagnosis","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval","https:\u002F\u002Fgithub.com\u002Fxyliu-cs","https:\u002F\u002Fxyliu-cs.github.io","PhD Student in CS, CUHK-Shenzhen.","2026-04-06 20:32:15",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add xyliu-cs\u002FOpenSpace-GDPval --skill pandoc-pdf-error-diagnosis",{"tool":58,"command":59},"bunx","bunx skills add xyliu-cs\u002FOpenSpace-GDPval --skill pandoc-pdf-error-diagnosis",{"tool":61,"command":62},"pnpm","pnpm dlx skills add xyliu-cs\u002FOpenSpace-GDPval --skill pandoc-pdf-error-diagnosis","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpandoc-pdf-error-diagnosis\u002FSKILL.md",true,[66],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},".skill_id","OTHER","其他",40,"https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpandoc-pdf-error-diagnosis\u002F.skill_id",[73,86,94,110,136,153],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":39},"01M6KG8MF1S664SWBDENYRSCK8","zip-export-deliverable","Ensures codebase deliverables are properly exported as ZIP archives through a dedicated finalization step","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fzip-export-deliverable\u002FSKILL.md",[],[80,81,82,83,84,85],"zip export deliverable","zip","export","deliverables","codebase","as",{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":39},"01M6KG8GAZWHHEK7VNJDW0ME21","zip-deliverable-finalization","Ensure codebase deliverables are properly packaged as ZIP exports in a dedicated final step","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fzip-deliverable-finalization\u002FSKILL.md",[],[93,81,83,84,85],"zip deliverable finalization",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":39},"01M6KG8CMQQ1PYMNTSRZ9VS1MD","zero-iteration-failure-analysis","Identify and handle agent failures with 0 iterations as pre-execution system issues","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fzero-iteration-failure-analysis\u002FSKILL.md",[],[101,102,103,104,105,106,107,108,85,109],"failure analysis","ZeRO","analysis","iteration","zero iteration failure analysis","with","issues","execution","system",{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":121,"publishedAt":39},"01M6KG86W3PA07FT9W58YHHERM","write-file-fallback-report","Generate professional documents using write_file when primary data sources fail, leveraging embedded domain knowledge instead of external retrieval","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fwrite-file-fallback-report\u002FSKILL.md",[116],{"categoryNo":117,"categoryName":118,"taxonomyType":119,"taxonomyTypeDesc":120},"01JBSEEDCAT000000000000034","行政与办公人员","PROFESSION","适用职业",[122,123,124,125,126,127,128,129,130,131,132,133,134,135],"fallback","write","file","report","write file fallback report","domain","professional","sources","retrieval","generate","embedded","documents","data","knowledge",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":143,"publishedAt":39},"01M6KG82GAEY3GG77CMGCK1C2T","fallback-doc-with-delegation","Generate professional documents after tool failures using shell_agent for complex formats or write_file for simple text\u002Fmarkdown","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fwrite-file-fallback-report-enhanced\u002FSKILL.md",[142],{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[144,106,122,145,146,147,133,131,124,148,149,150,123,151,128,152,38],"fallback doc with delegation","doc","delegation","shell","markdown","tool","text","simple","formats",{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":160,"publishedAt":39},"01M6KG7WT7GX5NYCGEFHW22NV7","context-anchored-fallback-report","Generate documents with write_file when retrieval tools fail, with explicit guardrails against task context drift","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fwrite-file-fallback-report-enhanced-4bc5c2\u002FSKILL.md",[159],{"categoryNo":117,"categoryName":118,"taxonomyType":119,"taxonomyTypeDesc":120},[122,125,161,162,131,124,163,164,123,165,166,130,106,167,133],"context","context anchored fallback report","Guardrails","Tools","task","drift","context drift"]