[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XBPH9JDGTDK07M7XZJVVT6":3,"skill-same:01M6XBPH9JDGTDK07M7XZJVVT6":61},{"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":17,"publishedAt":30,"linkOnly":31,"markdownContent":32,"markdownBody":33,"frontMatter":34,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":13,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":40,"install":41,"resources":54},"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",[],[18,19,20,21,22,23,24,25,26,27,28,29],"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":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add UF-gzj\u002Fopenspace-claude-evolution --skill pandoc-pdf-error-diagnosis",{"tool":47,"command":48},"bunx","bunx skills add UF-gzj\u002Fopenspace-claude-evolution --skill pandoc-pdf-error-diagnosis",{"tool":50,"command":51},"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,[55],{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},".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",[62,85,102,111,136,152],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":30},"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",[],[69,70,71,72,73,74,75,76,29,27,77,78,79,80,81,82,83,84],"check","write","write special chars ts check","typescript","filters","characters","Existing","type-checking","script","output","type","files","only","template","file","python",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":30},"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",[],[92,93,70,83,94,84,95,96,97,98,99,82,100,101,74,29,77],"readback","write special chars readback","helper","post","via","scripts","cleanup","read","verification","with",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":30},"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",[],[109,70,74,110,77,96,82,83,84,29],"write special chars heredoc","shell",{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":30},"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",[],[118,119,120,121,122,72,123,124,125,126,127,29,128,129,130,131,132,133,134,135],"reference","worldmonitor","worldmonitor reference","architecture","dashboard","css","scheduler","layer","hierarchy","source","extracting","panel","patterns","edge functions","integrations","open","api","data",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":30},"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",[],[143,144,145,146,29,147,101,148,149,150,151],"virtual list","list","virtual","chunk","dom","rendering","recycling","implement","performance",{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":158,"publishedAt":30},"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",[],[159,160,161,162,163,164,83,165,166,167],"directory","verify directory structure","structure","verify","access","first","issues","diagnose","file access"]