[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XBPMYS347HSPB1R08HFTWW":3,"skill-same:01M6XBPMYS347HSPB1R08HFTWW":60},{"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":29,"linkOnly":30,"markdownContent":31,"markdownBody":32,"frontMatter":33,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":13,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":39,"install":40,"resources":53},"01M6XBPMYS347HSPB1R08HFTWW","pandoc-pdf-error-recovery",null,"Systematic approach to diagnose and recover from pandoc PDF conversion unknown 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-recovery\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28],"PDF","error recovery","recovery","pandoc","error","pandoc pdf error recovery","diagnose","conversion","systematic","errors","unknown","2026-11-10 10:12:30",false,"---\nname: pandoc-pdf-error-recovery\ndescription: Systematic approach to diagnose and recover from pandoc PDF conversion unknown errors\n---\n\n# Pandoc PDF Error Recovery\n\n## Overview\n\nWhen pandoc fails to convert documents to PDF with an \"unknown error\" or similar vague message, follow this systematic diagnostic and recovery workflow.\n\n## Step-by-Step Procedure\n\n### 1. Verify Pandoc Installation\n\nFirst confirm pandoc is installed and accessible:\n\n```bash\npandoc --version\n```\n\nIf this fails, install pandoc before proceeding:\n- macOS: `brew install pandoc`\n- Linux: `sudo apt-get install pandoc` or `sudo yum install pandoc`\n- Windows: Download from https:\u002F\u002Fpandoc.org\u002Finstalling.html\n\n### 2. Check Available PDF Engines\n\nIdentify which PDF rendering engines are available on the system:\n\n```bash\nwhich pdflatex xelatex lualatex wkhtmltopdf context\n```\n\nCommon engines and their typical use cases:\n- **pdflatex**: Standard LaTeX, fast but limited Unicode support\n- **xelatex**: Full Unicode support, recommended for most modern documents\n- **lualatex**: Lua scripting support, good for complex layouts\n- **wkhtmltopdf**: HTML\u002FCSS rendering, good for web-style documents\n- **context**: ConTeXt typesetting system\n\n### 3. Attempt Conversion with Explicit Engine\n\nTry conversion with xelatex first (most versatile for general documents):\n\n```bash\npandoc input.md -o output.pdf --pdf-engine=xelatex 2>&1 | tee conversion.log\n```\n\nThe `2>&1 | tee` pattern captures both stdout and stderr to a log file for analysis.\n\n### 4. Analyze Error Output\n\nIf conversion fails, examine the captured log:\n\n```bash\ncat conversion.log\n```\n\nCommon error patterns and solutions:\n- **Missing LaTeX packages**: Install with `tlmgr install \u003Cpackage>` or system package manager\n- **Font issues**: Specify fonts with `-V mainfont=\"Font Name\"`\n- **Missing engine**: Fall back to available engine (go to Step 5)\n\n### 5. Try Alternative Engines\n\nSystematically try other available engines:\n\n```bash\n# Fallback to pdflatex\npandoc input.md -o output.pdf --pdf-engine=pdflatex 2>&1 | tee conversion-pdflatex.log\n\n# Or try wkhtmltopdf for HTML-rich content\npandoc input.md -o output.pdf --pdf-engine=wkhtmltopdf 2>&1 | tee conversion-wkhtmltopdf.log\n\n# Or try lualatex for complex documents\npandoc input.md -o output.pdf --pdf-engine=lualatex 2>&1 | tee conversion-lualatex.log\n```\n\n### 6. Install Missing Dependencies\n\nIf all engines fail or are missing, install required packages:\n\n```bash\n# Full TeX Live installation (comprehensive but large)\nsudo apt-get install texlive-full\n\n# Or minimal installation with common packages\nsudo apt-get install texlive-latex-base texlive-fonts-recommended\n\n# For xelatex font support\nsudo apt-get install fonts-noto fonts-dejavu\n```\n\n### 7. Simplify and Retry\n\nIf errors persist, try conversion with minimal options:\n\n```bash\npandoc input.md -o output.pdf --pdf-engine=xelatex --standalone\n```\n\nRemove complex formatting, custom headers, or advanced LaTeX features that may be causing issues.\n\n## Quick Reference Command\n\nComplete diagnostic one-liner:\n\n```bash\npandoc --version && which pdflatex xelatex wkhtmltopdf && pandoc input.md -o output.pdf --pdf-engine=xelatex -v\n```\n\n## Tips\n\n- Always capture stderr (`2>&1`) to see the actual error message\n- Use `-v` (verbose) flag for more detailed output during troubleshooting\n- For non-English documents, xelatex or lualatex are usually required\n- HTML\u002FCSS-heavy documents may work better with wkhtmltopdf\n- Check system disk space - PDF generation can require significant temporary space","# Pandoc PDF Error Recovery\n\n## Overview\n\nWhen pandoc fails to convert documents to PDF with an \"unknown error\" or similar vague message, follow this systematic diagnostic and recovery workflow.\n\n## Step-by-Step Procedure\n\n### 1. Verify Pandoc Installation\n\nFirst confirm pandoc is installed and accessible:\n\n```bash\npandoc --version\n```\n\nIf this fails, install pandoc before proceeding:\n- macOS: `brew install pandoc`\n- Linux: `sudo apt-get install pandoc` or `sudo yum install pandoc`\n- Windows: Download from https:\u002F\u002Fpandoc.org\u002Finstalling.html\n\n### 2. Check Available PDF Engines\n\nIdentify which PDF rendering engines are available on the system:\n\n```bash\nwhich pdflatex xelatex lualatex wkhtmltopdf context\n```\n\nCommon engines and their typical use cases:\n- **pdflatex**: Standard LaTeX, fast but limited Unicode support\n- **xelatex**: Full Unicode support, recommended for most modern documents\n- **lualatex**: Lua scripting support, good for complex layouts\n- **wkhtmltopdf**: HTML\u002FCSS rendering, good for web-style documents\n- **context**: ConTeXt typesetting system\n\n### 3. Attempt Conversion with Explicit Engine\n\nTry conversion with xelatex first (most versatile for general documents):\n\n```bash\npandoc input.md -o output.pdf --pdf-engine=xelatex 2>&1 | tee conversion.log\n```\n\nThe `2>&1 | tee` pattern captures both stdout and stderr to a log file for analysis.\n\n### 4. Analyze Error Output\n\nIf conversion fails, examine the captured log:\n\n```bash\ncat conversion.log\n```\n\nCommon error patterns and solutions:\n- **Missing LaTeX packages**: Install with `tlmgr install \u003Cpackage>` or system package manager\n- **Font issues**: Specify fonts with `-V mainfont=\"Font Name\"`\n- **Missing engine**: Fall back to available engine (go to Step 5)\n\n### 5. Try Alternative Engines\n\nSystematically try other available engines:\n\n```bash\n# Fallback to pdflatex\npandoc input.md -o output.pdf --pdf-engine=pdflatex 2>&1 | tee conversion-pdflatex.log\n\n# Or try wkhtmltopdf for HTML-rich content\npandoc input.md -o output.pdf --pdf-engine=wkhtmltopdf 2>&1 | tee conversion-wkhtmltopdf.log\n\n# Or try lualatex for complex documents\npandoc input.md -o output.pdf --pdf-engine=lualatex 2>&1 | tee conversion-lualatex.log\n```\n\n### 6. Install Missing Dependencies\n\nIf all engines fail or are missing, install required packages:\n\n```bash\n# Full TeX Live installation (comprehensive but large)\nsudo apt-get install texlive-full\n\n# Or minimal installation with common packages\nsudo apt-get install texlive-latex-base texlive-fonts-recommended\n\n# For xelatex font support\nsudo apt-get install fonts-noto fonts-dejavu\n```\n\n### 7. Simplify and Retry\n\nIf errors persist, try conversion with minimal options:\n\n```bash\npandoc input.md -o output.pdf --pdf-engine=xelatex --standalone\n```\n\nRemove complex formatting, custom headers, or advanced LaTeX features that may be causing issues.\n\n## Quick Reference Command\n\nComplete diagnostic one-liner:\n\n```bash\npandoc --version && which pdflatex xelatex wkhtmltopdf && pandoc input.md -o output.pdf --pdf-engine=xelatex -v\n```\n\n## Tips\n\n- Always capture stderr (`2>&1`) to see the actual error message\n- Use `-v` (verbose) flag for more detailed output during troubleshooting\n- For non-English documents, xelatex or lualatex are usually required\n- HTML\u002FCSS-heavy documents may work better with wkhtmltopdf\n- Check system disk space - PDF generation can require significant temporary space",{"name":5,"description":7},"main","0650921d63895de3997bc81f1ff1d0ac67032072","gdpval_bench\u002Fskills\u002Fpandoc-pdf-error-recovery","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":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add UF-gzj\u002Fopenspace-claude-evolution --skill pandoc-pdf-error-recovery",{"tool":46,"command":47},"bunx","bunx skills add UF-gzj\u002Fopenspace-claude-evolution --skill pandoc-pdf-error-recovery",{"tool":49,"command":50},"pnpm","pnpm dlx skills add UF-gzj\u002Fopenspace-claude-evolution --skill pandoc-pdf-error-recovery","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpandoc-pdf-error-recovery\u002FSKILL.md",true,[54],{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},".skill_id","OTHER","其他",39,"https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpandoc-pdf-error-recovery\u002F.skill_id",[61,85,102,111,136,152],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":29},"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",[],[68,69,70,71,72,73,74,75,76,27,77,78,79,80,81,82,83,84],"check","write","write special chars ts check","typescript","filters","characters","Existing","type-checking","for","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":29},"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,69,83,94,84,95,96,97,98,99,82,100,101,73,76,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":29},"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,69,73,110,77,96,82,83,84,76],"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":29},"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,71,123,124,125,126,127,76,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":29},"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,76,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":29},"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,24,166],"directory","verify directory structure","structure","verify","access","first","issues","file access"]