[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KJ8BXYTJVV7WN1W6R29J71":3,"skill-same:01M6KJ8BXYTJVV7WN1W6R29J71":70},{"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":25,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":13,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M6KJ8BXYTJVV7WN1W6R29J71","pandoc-pdf-error-diagnosis",null,"Systematic diagnostic workflow for resolving pandoc PDF conversion errors","AG064\u002FOpenSpace","AG064","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184930299?v=4","01M6KHVFG7TB73NHX3RDYSTMH2","01M6KHVFMM7XA2PZA9Z83PHS3V",0,"MIT","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpandoc-pdf-error-diagnosis\u002FSKILL.md",[17,22],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000002","文档处理","SCENARIO","使用场景",{"categoryNo":23,"categoryName":24,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发",[26,27,28,29,30,31,32,33,34,35,36,37],"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","ff671ef61ed6587c49bd54c81cdc751c0b99e363","gdpval_bench\u002Fskills\u002Fpandoc-pdf-error-diagnosis","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace","https:\u002F\u002Fgithub.com\u002FAG064","AG064, E.Mi.\r\n\r\nA person who thinks all the time, yet all they have to think about is nothing. I want to improve the world and work on open source projects","2026-10-08 06:53:48",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add AG064\u002FOpenSpace --skill pandoc-pdf-error-diagnosis",{"tool":56,"command":57},"bunx","bunx skills add AG064\u002FOpenSpace --skill pandoc-pdf-error-diagnosis",{"tool":59,"command":60},"pnpm","pnpm dlx skills add AG064\u002FOpenSpace --skill pandoc-pdf-error-diagnosis","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpandoc-pdf-error-diagnosis\u002FSKILL.md",true,[64],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},".skill_id","OTHER","其他",40,"https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpandoc-pdf-error-diagnosis\u002F.skill_id",[71,93,110,119,149,165],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":38},"01M6KKMPWA0B5SCCH766F8M5EA","write-special-chars-ts-check","Workaround for write_file failures caused by special characters (apostrophes, backticks, template literals) using a Python heredoc script, plus a reliable TypeScript type-checking step that filters output to only the newly-written files to avoid being misled by pre-existing errors.","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-ts-check\u002FSKILL.md",[],[78,79,80,81,82,83,37,35,84,85,86,87,88,89,90,91,92],"write special chars ts check","check","write","filters","Existing","type-checking","script","output","type","files","only","template","file","python","typescript",{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":38},"01M6KKMJXVBNVEY3TRK055F4A7","write-special-chars-readback","Workaround for write_file failures caused by special characters (apostrophes, backticks, template literals) using a Python heredoc script, with mandatory post-write verification via read_file and cleanup of \u002Ftmp helper scripts.","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-readback\u002FSKILL.md",[],[100,101,80,89,102,103,90,91,104,105,106,107,108,37,84,109],"readback","write special chars readback","cleanup","read","scripts","verification","via","post","helper","with",{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":38},"01M6KKMEGX9M9NC105J0W3Q5B9","write-special-chars-heredoc","Workaround for write_file failures caused by special characters (apostrophes, backticks, template literals) by using a Python heredoc script executed via shell.","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-heredoc\u002FSKILL.md",[],[80,117,91,37,106,89,118,90,84],"write special chars heredoc","shell",{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":130,"publishedAt":38},"01M6KKM8EJ2AATVHZBNB916WT0","worldmonitor-reference","Curated architecture index of the WorldMonitor open-source dashboard. Reference for extracting patterns — vanilla TypeScript, Panel class hierarchy, service layer, CSS grid, API edge functions, refresh scheduler, and 60+ data source integrations.","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fworldmonitor-reference\u002FSKILL.md",[125],{"categoryNo":126,"categoryName":127,"taxonomyType":128,"taxonomyTypeDesc":129},"01JBSEEDCAT000000000000033","数据分析师","PROFESSION","适用职业",[131,132,133,134,92,135,136,137,138,139,37,140,141,142,143,144,145,146,147,148],"reference","worldmonitor","worldmonitor reference","dashboard","css","architecture","extracting","hierarchy","source","layer","panel","patterns","edge functions","integrations","open","api","data","scheduler",{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":38},"01M6KKM39PHYK627F19GE2B9XN","virtual-list","Implement efficient virtual scrolling for rendering large lists with DOM recycling, chunk-based rendering, and performance optimizations","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fvirtual-list\u002FSKILL.md",[],[156,157,158,159,37,160,109,161,162,163,164],"virtual list","list","virtual","chunk","dom","rendering","recycling","implement","performance",{"skillNo":166,"name":167,"nameZh":6,"description":168,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":169,"categories":170,"keywords":171,"publishedAt":38},"01M6KKKY7T2P61Y0JH54CDEJKQ","verify-directory-structure","Diagnose and resolve file access issues by first verifying the directory structure.","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fverify-directory-structure\u002FSKILL.md",[],[172,173,174,175,176,177,90,178,179,180],"directory","verify","structure","verify directory structure","access","first","issues","diagnose","file access"]