[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XBPH9JDGTDK07M7XZJVVT6":3,"skill-same:01M6XBPH9JDGTDK07M7XZJVVT6":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"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":6,"updatedAt":48,"install":49,"resources":62},"01M6XBPH9JDGTDK07M7XZJVVT6","pandoc-pdf-error-diagnosis",null,"Systematic diagnostic workflow for resolving pandoc PDF conversion errors","UF-gzj\u002Fopenspace-claude-evolution","UF-gzj","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F272393507?v=4","01M6XBCZB755P01VVYGQWPYZY3","01M6XBCZFJA5AREA17WGETA3FW",0,"MIT","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\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","0650921d63895de3997bc81f1ff1d0ac67032072","gdpval_bench\u002Fskills\u002Fpandoc-pdf-error-diagnosis","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution","https:\u002F\u002Fgithub.com\u002FUF-gzj","2026-04-16 09:31:03",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add UF-gzj\u002Fopenspace-claude-evolution --skill pandoc-pdf-error-diagnosis",{"tool":55,"command":56},"bunx","bunx skills add UF-gzj\u002Fopenspace-claude-evolution --skill pandoc-pdf-error-diagnosis",{"tool":58,"command":59},"pnpm","pnpm dlx skills add UF-gzj\u002Fopenspace-claude-evolution --skill pandoc-pdf-error-diagnosis","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpandoc-pdf-error-diagnosis\u002FSKILL.md",true,[63],{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},".skill_id","OTHER","其他",40,"https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpandoc-pdf-error-diagnosis\u002F.skill_id",[70,93,110,119,149,165],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":38},"01M6XCCXD3NCM2YKR3WNGBASPC","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\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-ts-check\u002FSKILL.md",[],[77,78,79,80,81,82,83,84,37,35,85,86,87,88,89,90,91,92],"check","write","write special chars ts check","typescript","filters","characters","Existing","type-checking","script","output","type","files","only","template","file","python",{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":38},"01M6XCCT7E3J922Q345PBGSHPN","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\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-readback\u002FSKILL.md",[],[100,101,78,91,102,92,103,104,105,106,107,90,108,109,82,37,85],"readback","write special chars readback","helper","post","via","scripts","cleanup","read","verification","with",{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":38},"01M6XCCMQX1R8B6FECWB3P63T7","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\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-heredoc\u002FSKILL.md",[],[117,78,82,118,85,104,90,91,92,37],"write special chars heredoc","shell",{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":130,"publishedAt":38},"01M6XCCG41M994JJEX6VN52PEP","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\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fworldmonitor-reference\u002FSKILL.md",[125],{"categoryNo":126,"categoryName":127,"taxonomyType":128,"taxonomyTypeDesc":129},"01JBSEEDCAT000000000000033","数据分析师","PROFESSION","适用职业",[131,132,133,134,135,80,136,137,138,139,140,37,141,142,143,144,145,146,147,148],"reference","worldmonitor","worldmonitor reference","architecture","dashboard","css","scheduler","layer","hierarchy","source","extracting","panel","patterns","edge functions","integrations","open","api","data",{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":38},"01M6XCCCHWNKG2W4VH9E6A10HF","virtual-list","Implement efficient virtual scrolling for rendering large lists with DOM recycling, chunk-based rendering, and performance optimizations","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\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":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":169,"categories":170,"keywords":171,"publishedAt":38},"01M6XCC7X8PKMR2DEW91XGHYSV","verify-directory-structure","Diagnose and resolve file access issues by first verifying the directory structure.","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fverify-directory-structure\u002FSKILL.md",[],[172,173,174,175,176,177,91,178,179,180],"directory","verify directory structure","structure","verify","access","first","issues","diagnose","file access"]