[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XBRE1647JPSH0DTG6V1F8C":3,"skill-same:01M6XBRE1647JPSH0DTG6V1F8C":64},{"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":22,"publishedAt":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":13,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":43,"install":44,"resources":57},"01M6XBRE1647JPSH0DTG6V1F8C","pdf-engine-fallback",null,"Retry PDF generation with alternative engines when pandoc fails","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\u002Fpdf-engine-fallback\u002FSKILL.md",[17],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000002","文档处理","SCENARIO","使用场景",[23,24,25,26,27,28,29,30,31,32],"PDF","engine","fallback","pdf engine fallback","generation","pandoc","pdf generation","with","retry","when","2026-11-10 10:12:30",false,"---\nname: pdf-engine-fallback\ndescription: Retry PDF generation with alternative engines when pandoc fails\n---\n\n# PDF Engine Fallback\n\nThis skill provides a diagnostic-retry workflow for PDF generation when Pandoc's default PDF engine fails. It systematically checks available engines and retries with alternatives optimized for different content types (e.g., xelatex for Unicode).\n\n## When to Use\n\n- Pandoc PDF generation fails with errors\n- Document contains non-ASCII characters (Unicode, CJK, etc.)\n- Need robust PDF generation across different system configurations\n- Working in CI\u002FCD or automated document pipelines\n\n## Steps\n\n### 1. Attempt Initial PDF Generation\n\nFirst, try generating with pandoc's default engine:\n\n```bash\npandoc input.md -o output.pdf\n```\n\n### 2. Diagnose on Failure\n\nIf the initial attempt fails, check which PDF engines are available:\n\n```bash\n# Check for pdflatex\nwhich pdflatex && echo \"pdflatex: available\" || echo \"pdflatex: not found\"\n\n# Check for xelatex (better Unicode support)\nwhich xelatex && echo \"xelatex: available\" || echo \"xelatex: not found\"\n\n# Check for wkhtmltopdf (HTML-based rendering)\nwhich wkhtmltopdf && echo \"wkhtmltopdf: available\" || echo \"wkhtmltopdf: not found\"\n```\n\n### 3. Retry with Alternative Engine\n\nBased on available engines and document content, retry with an appropriate engine:\n\n```bash\n# For documents with Unicode\u002Fspecial characters - prefer xelatex\npandoc input.md -o output.pdf --pdf-engine=xelatex\n\n# Alternative: use pdflatex for simple Latin documents\npandoc input.md -o output.pdf --pdf-engine=pdflatex\n\n# For HTML-heavy content or complex layouts\npandoc input.md -o output.pdf --pdf-engine=wkhtmltopdf\n```\n\n### 4. Handle Missing Engines\n\nIf no PDF engines are available, install one:\n\n```bash\n# Ubuntu\u002FDebian - install texlive with xelatex\nsudo apt-get install texlive-xetex\n\n# Or install minimal teTeX\nsudo apt-get install texlive-latex-base texlive-latex-extra\n\n# macOS with Homebrew\nbrew install basictex\n```\n\n## Complete Fallback Script\n\n```bash\n#!\u002Fbin\u002Fbash\n# pdf-fallback.sh - Robust PDF generation with engine fallback\n\nINPUT_FILE=\"${1:-input.md}\"\nOUTPUT_FILE=\"${2:-output.pdf}\"\n\necho \"Attempting PDF generation: $INPUT_FILE -> $OUTPUT_FILE\"\n\n# Try default engine first\nif pandoc \"$INPUT_FILE\" -o \"$OUTPUT_FILE\" 2>\u002Fdev\u002Fnull; then\n    echo \"SUCCESS: PDF generated with default engine\"\n    exit 0\nfi\n\necho \"Default engine failed. Checking available engines...\"\n\n# Check and try engines in priority order\nif command -v xelatex &>\u002Fdev\u002Fnull; then\n    echo \"Retrying with xelatex (Unicode support)...\"\n    if pandoc \"$INPUT_FILE\" -o \"$OUTPUT_FILE\" --pdf-engine=xelatex; then\n        echo \"SUCCESS: PDF generated with xelatex\"\n        exit 0\n    fi\nfi\n\nif command -v pdflatex &>\u002Fdev\u002Fnull; then\n    echo \"Retrying with pdflatex...\"\n    if pandoc \"$INPUT_FILE\" -o \"$OUTPUT_FILE\" --pdf-engine=pdflatex; then\n        echo \"SUCCESS: PDF generated with pdflatex\"\n        exit 0\n    fi\nfi\n\nif command -v wkhtmltopdf &>\u002Fdev\u002Fnull; then\n    echo \"Retrying with wkhtmltopdf...\"\n    if pandoc \"$INPUT_FILE\" -o \"$OUTPUT_FILE\" --pdf-engine=wkhtmltopdf; then\n        echo \"SUCCESS: PDF generated with wkhtmltopdf\"\n        exit 0\n    fi\nfi\n\necho \"FAILURE: No available PDF engine succeeded\"\necho \"Install a PDF engine (texlive-xetex recommended) and retry\"\nexit 1\n```\n\n## Usage\n\n```bash\n# Make executable\nchmod +x pdf-fallback.sh\n\n# Run with defaults (input.md -> output.pdf)\n.\u002Fpdf-fallback.sh\n\n# Run with custom files\n.\u002Fpdf-fallback.sh report.md report.pdf\n```\n\n## Engine Selection Guide\n\n| Engine | Best For | Unicode | Speed |\n|--------|----------|---------|-------|\n| xelatex | Non-Latin scripts, modern fonts | Excellent | Moderate |\n| pdflatex | Simple Latin documents | Limited | Fast |\n| wkhtmltopdf | HTML\u002FCSS styling | Good | Fast |\n\n## Troubleshooting\n\n- **Font errors**: Install required fonts or use xelatex with system fonts\n- **Package errors**: Install missing LaTeX packages via `tlmgr`\n- **Large documents**: Try pdflatex for speed, xelatex for compatibility\n- **Citation issues**: Ensure pandoc-citeproc or citeproc is installed","# PDF Engine Fallback\n\nThis skill provides a diagnostic-retry workflow for PDF generation when Pandoc's default PDF engine fails. It systematically checks available engines and retries with alternatives optimized for different content types (e.g., xelatex for Unicode).\n\n## When to Use\n\n- Pandoc PDF generation fails with errors\n- Document contains non-ASCII characters (Unicode, CJK, etc.)\n- Need robust PDF generation across different system configurations\n- Working in CI\u002FCD or automated document pipelines\n\n## Steps\n\n### 1. Attempt Initial PDF Generation\n\nFirst, try generating with pandoc's default engine:\n\n```bash\npandoc input.md -o output.pdf\n```\n\n### 2. Diagnose on Failure\n\nIf the initial attempt fails, check which PDF engines are available:\n\n```bash\n# Check for pdflatex\nwhich pdflatex && echo \"pdflatex: available\" || echo \"pdflatex: not found\"\n\n# Check for xelatex (better Unicode support)\nwhich xelatex && echo \"xelatex: available\" || echo \"xelatex: not found\"\n\n# Check for wkhtmltopdf (HTML-based rendering)\nwhich wkhtmltopdf && echo \"wkhtmltopdf: available\" || echo \"wkhtmltopdf: not found\"\n```\n\n### 3. Retry with Alternative Engine\n\nBased on available engines and document content, retry with an appropriate engine:\n\n```bash\n# For documents with Unicode\u002Fspecial characters - prefer xelatex\npandoc input.md -o output.pdf --pdf-engine=xelatex\n\n# Alternative: use pdflatex for simple Latin documents\npandoc input.md -o output.pdf --pdf-engine=pdflatex\n\n# For HTML-heavy content or complex layouts\npandoc input.md -o output.pdf --pdf-engine=wkhtmltopdf\n```\n\n### 4. Handle Missing Engines\n\nIf no PDF engines are available, install one:\n\n```bash\n# Ubuntu\u002FDebian - install texlive with xelatex\nsudo apt-get install texlive-xetex\n\n# Or install minimal teTeX\nsudo apt-get install texlive-latex-base texlive-latex-extra\n\n# macOS with Homebrew\nbrew install basictex\n```\n\n## Complete Fallback Script\n\n```bash\n#!\u002Fbin\u002Fbash\n# pdf-fallback.sh - Robust PDF generation with engine fallback\n\nINPUT_FILE=\"${1:-input.md}\"\nOUTPUT_FILE=\"${2:-output.pdf}\"\n\necho \"Attempting PDF generation: $INPUT_FILE -> $OUTPUT_FILE\"\n\n# Try default engine first\nif pandoc \"$INPUT_FILE\" -o \"$OUTPUT_FILE\" 2>\u002Fdev\u002Fnull; then\n    echo \"SUCCESS: PDF generated with default engine\"\n    exit 0\nfi\n\necho \"Default engine failed. Checking available engines...\"\n\n# Check and try engines in priority order\nif command -v xelatex &>\u002Fdev\u002Fnull; then\n    echo \"Retrying with xelatex (Unicode support)...\"\n    if pandoc \"$INPUT_FILE\" -o \"$OUTPUT_FILE\" --pdf-engine=xelatex; then\n        echo \"SUCCESS: PDF generated with xelatex\"\n        exit 0\n    fi\nfi\n\nif command -v pdflatex &>\u002Fdev\u002Fnull; then\n    echo \"Retrying with pdflatex...\"\n    if pandoc \"$INPUT_FILE\" -o \"$OUTPUT_FILE\" --pdf-engine=pdflatex; then\n        echo \"SUCCESS: PDF generated with pdflatex\"\n        exit 0\n    fi\nfi\n\nif command -v wkhtmltopdf &>\u002Fdev\u002Fnull; then\n    echo \"Retrying with wkhtmltopdf...\"\n    if pandoc \"$INPUT_FILE\" -o \"$OUTPUT_FILE\" --pdf-engine=wkhtmltopdf; then\n        echo \"SUCCESS: PDF generated with wkhtmltopdf\"\n        exit 0\n    fi\nfi\n\necho \"FAILURE: No available PDF engine succeeded\"\necho \"Install a PDF engine (texlive-xetex recommended) and retry\"\nexit 1\n```\n\n## Usage\n\n```bash\n# Make executable\nchmod +x pdf-fallback.sh\n\n# Run with defaults (input.md -> output.pdf)\n.\u002Fpdf-fallback.sh\n\n# Run with custom files\n.\u002Fpdf-fallback.sh report.md report.pdf\n```\n\n## Engine Selection Guide\n\n| Engine | Best For | Unicode | Speed |\n|--------|----------|---------|-------|\n| xelatex | Non-Latin scripts, modern fonts | Excellent | Moderate |\n| pdflatex | Simple Latin documents | Limited | Fast |\n| wkhtmltopdf | HTML\u002FCSS styling | Good | Fast |\n\n## Troubleshooting\n\n- **Font errors**: Install required fonts or use xelatex with system fonts\n- **Package errors**: Install missing LaTeX packages via `tlmgr`\n- **Large documents**: Try pdflatex for speed, xelatex for compatibility\n- **Citation issues**: Ensure pandoc-citeproc or citeproc is installed",{"name":5,"description":7},"main","0650921d63895de3997bc81f1ff1d0ac67032072","gdpval_bench\u002Fskills\u002Fpdf-engine-fallback","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":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add UF-gzj\u002Fopenspace-claude-evolution --skill pdf-engine-fallback",{"tool":50,"command":51},"bunx","bunx skills add UF-gzj\u002Fopenspace-claude-evolution --skill pdf-engine-fallback",{"tool":53,"command":54},"pnpm","pnpm dlx skills add UF-gzj\u002Fopenspace-claude-evolution --skill pdf-engine-fallback","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpdf-engine-fallback\u002FSKILL.md",true,[58],{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},".skill_id","OTHER","其他",33,"https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpdf-engine-fallback\u002F.skill_id",[65,90,106,115,145,161],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":33},"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",[],[72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89],"check","write","write special chars ts check","typescript","filters","characters","Existing","type-checking","for","errors","script","output","type","files","only","template","file","python",{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":33},"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",[],[97,98,73,88,99,89,100,101,102,103,104,87,105,30,77,80,82],"readback","write special chars readback","helper","post","via","scripts","cleanup","read","verification",{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":33},"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",[],[113,73,77,114,82,101,87,88,89,80],"write special chars heredoc","shell",{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":126,"publishedAt":33},"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",[121],{"categoryNo":122,"categoryName":123,"taxonomyType":124,"taxonomyTypeDesc":125},"01JBSEEDCAT000000000000033","数据分析师","PROFESSION","适用职业",[127,128,129,130,131,75,132,133,134,135,136,80,137,138,139,140,141,142,143,144],"reference","worldmonitor","worldmonitor reference","architecture","dashboard","css","scheduler","layer","hierarchy","source","extracting","panel","patterns","edge functions","integrations","open","api","data",{"skillNo":146,"name":147,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":151,"publishedAt":33},"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",[],[152,153,154,155,80,156,30,157,158,159,160],"virtual list","list","virtual","chunk","dom","rendering","recycling","implement","performance",{"skillNo":162,"name":163,"nameZh":6,"description":164,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":165,"categories":166,"keywords":167,"publishedAt":33},"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",[],[168,169,170,171,172,173,88,174,175,176],"directory","verify directory structure","structure","verify","access","first","issues","diagnose","file access"]