[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XBS7BP0RKQ2RBE4YZ21ZG1":3,"skill-same:01M6XBS7BP0RKQ2RBE4YZ21ZG1":59},{"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":28,"linkOnly":29,"markdownContent":30,"markdownBody":31,"frontMatter":32,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":13,"repositoryHtmlUrl":36,"repositoryHomepageUrl":6,"ownerHtmlUrl":37,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":38,"install":39,"resources":52},"01M6XBS7BP0RKQ2RBE4YZ21ZG1","pdf-gen-fallback",null,"Reliable PDF generation using shell-based Python execution when sandbox 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-gen-fallback\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27],"PDF","fallback","pdf gen fallback","python","sandbox","execution","shell","generation","pdf generation","when","2026-11-10 10:12:30",false,"---\nname: pdf-gen-fallback\ndescription: Reliable PDF generation using shell-based Python execution when sandbox fails\n---\n\n# PDF Generation Fallback\n\nThis skill provides a reliable workflow for generating PDFs and documents when `execute_code_sandbox` returns opaque errors. Use direct `run_shell` with `python -c` as a fallback, with library availability checks and explicit error handling.\n\n## When to Use\n\n- `execute_code_sandbox` fails with cryptic error messages during document\u002FPDF generation\n- You need to generate PDFs, reports, or structured documents\n- Standard library execution is unreliable for document creation tasks\n\n## Step-by-Step Procedure\n\n### Step 1: Check Library Availability\n\nBefore attempting generation, verify that required libraries are installed:\n\n```bash\nrun_shell command=\"python -c \\\"import reportlab; print('reportlab available')\\\"\"\nrun_shell command=\"python -c \\\"import fpdf; print('fpdf available')\\\"\"\nrun_shell command=\"python -c \\\"import pypdf; print('pypdf available')\\\"\"\n```\n\n### Step 2: Attempt execute_code_sandbox First\n\nTry the sandbox approach initially (it's cleaner for iteration):\n\n```python\nexecute_code_sandbox code=\"\"\"\nfrom reportlab.lib.pagesizes import letter\nfrom reportlab.pdfgen import canvas\n\nc = canvas.Canvas(\"output.pdf\", pagesize=letter)\nc.drawString(100, 750, \"Document Content\")\nc.save()\nprint(\"ARTIFACT_PATH:\u002Fpath\u002Fto\u002Foutput.pdf\")\n\"\"\"\n```\n\n### Step 3: Detect Opaque Errors\n\nWatch for these failure indicators:\n- Generic \"execution failed\" messages\n- Import errors that don't match library availability checks\n- Timeout errors during document rendering\n- Missing artifact paths in output\n\n### Step 4: Fall Back to run_shell\n\nIf sandbox fails, use direct shell execution:\n\n```bash\nrun_shell command=\"python -c \\\"\nfrom reportlab.lib.pagesizes import letter\nfrom reportlab.pdfgen import canvas\nc = canvas.Canvas('output.pdf', pagesize=letter)\nc.drawString(100, 750, 'Document Content')\nc.save()\nprint('PDF created successfully')\n\\\"\"\n```\n\n### Step 5: Verify Output\n\nAfter generation, confirm the file exists:\n\n```bash\nrun_shell command=\"ls -la output.pdf && file output.pdf\"\n```\n\n## Complete Example Workflow\n\n```\n1. Check libraries: run_shell \"python -c \\\"import reportlab\\\"\"\n2. Try sandbox: execute_code_sandbox with PDF generation code\n3. If error detected: Fall back to run_shell with python -c\n4. Verify: run_shell \"ls -la *.pdf\"\n5. Read result: read_file filetype=\"pdf\" file_path=\"output.pdf\"\n```\n\n## Error Handling Tips\n\n- Capture stderr from run_shell to diagnose issues\n- Use absolute paths when possible to avoid working directory issues\n- For complex documents, write the Python script to a file first, then execute\n- Consider installing missing libraries: `run_shell command=\"pip install reportlab\"`\n\n## Library Alternatives\n\nIf reportlab is unavailable, try:\n- `fpdf` - Simpler API, good for basic PDFs\n- `weasyprint` - HTML\u002FCSS to PDF conversion\n- `pypdf` - PDF manipulation and merging\n\n## Common Pitfalls\n\n- Don't assume sandbox errors mean the approach is wrong—often it's环境 issues\n- Always verify the PDF was created before proceeding\n- Handle encoding issues explicitly (use utf-8)\n- For images in PDFs, ensure image files are accessible to the execution context","# PDF Generation Fallback\n\nThis skill provides a reliable workflow for generating PDFs and documents when `execute_code_sandbox` returns opaque errors. Use direct `run_shell` with `python -c` as a fallback, with library availability checks and explicit error handling.\n\n## When to Use\n\n- `execute_code_sandbox` fails with cryptic error messages during document\u002FPDF generation\n- You need to generate PDFs, reports, or structured documents\n- Standard library execution is unreliable for document creation tasks\n\n## Step-by-Step Procedure\n\n### Step 1: Check Library Availability\n\nBefore attempting generation, verify that required libraries are installed:\n\n```bash\nrun_shell command=\"python -c \\\"import reportlab; print('reportlab available')\\\"\"\nrun_shell command=\"python -c \\\"import fpdf; print('fpdf available')\\\"\"\nrun_shell command=\"python -c \\\"import pypdf; print('pypdf available')\\\"\"\n```\n\n### Step 2: Attempt execute_code_sandbox First\n\nTry the sandbox approach initially (it's cleaner for iteration):\n\n```python\nexecute_code_sandbox code=\"\"\"\nfrom reportlab.lib.pagesizes import letter\nfrom reportlab.pdfgen import canvas\n\nc = canvas.Canvas(\"output.pdf\", pagesize=letter)\nc.drawString(100, 750, \"Document Content\")\nc.save()\nprint(\"ARTIFACT_PATH:\u002Fpath\u002Fto\u002Foutput.pdf\")\n\"\"\"\n```\n\n### Step 3: Detect Opaque Errors\n\nWatch for these failure indicators:\n- Generic \"execution failed\" messages\n- Import errors that don't match library availability checks\n- Timeout errors during document rendering\n- Missing artifact paths in output\n\n### Step 4: Fall Back to run_shell\n\nIf sandbox fails, use direct shell execution:\n\n```bash\nrun_shell command=\"python -c \\\"\nfrom reportlab.lib.pagesizes import letter\nfrom reportlab.pdfgen import canvas\nc = canvas.Canvas('output.pdf', pagesize=letter)\nc.drawString(100, 750, 'Document Content')\nc.save()\nprint('PDF created successfully')\n\\\"\"\n```\n\n### Step 5: Verify Output\n\nAfter generation, confirm the file exists:\n\n```bash\nrun_shell command=\"ls -la output.pdf && file output.pdf\"\n```\n\n## Complete Example Workflow\n\n```\n1. Check libraries: run_shell \"python -c \\\"import reportlab\\\"\"\n2. Try sandbox: execute_code_sandbox with PDF generation code\n3. If error detected: Fall back to run_shell with python -c\n4. Verify: run_shell \"ls -la *.pdf\"\n5. Read result: read_file filetype=\"pdf\" file_path=\"output.pdf\"\n```\n\n## Error Handling Tips\n\n- Capture stderr from run_shell to diagnose issues\n- Use absolute paths when possible to avoid working directory issues\n- For complex documents, write the Python script to a file first, then execute\n- Consider installing missing libraries: `run_shell command=\"pip install reportlab\"`\n\n## Library Alternatives\n\nIf reportlab is unavailable, try:\n- `fpdf` - Simpler API, good for basic PDFs\n- `weasyprint` - HTML\u002FCSS to PDF conversion\n- `pypdf` - PDF manipulation and merging\n\n## Common Pitfalls\n\n- Don't assume sandbox errors mean the approach is wrong—often it's环境 issues\n- Always verify the PDF was created before proceeding\n- Handle encoding issues explicitly (use utf-8)\n- For images in PDFs, ensure image files are accessible to the execution context",{"name":5,"description":7},"main","0650921d63895de3997bc81f1ff1d0ac67032072","gdpval_bench\u002Fskills\u002Fpdf-gen-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":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add UF-gzj\u002Fopenspace-claude-evolution --skill pdf-gen-fallback",{"tool":45,"command":46},"bunx","bunx skills add UF-gzj\u002Fopenspace-claude-evolution --skill pdf-gen-fallback",{"tool":48,"command":49},"pnpm","pnpm dlx skills add UF-gzj\u002Fopenspace-claude-evolution --skill pdf-gen-fallback","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpdf-gen-fallback\u002FSKILL.md",true,[53],{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},".skill_id","OTHER","其他",30,"https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpdf-gen-fallback\u002F.skill_id",[60,84,101,109,134,150],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":28},"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",[],[67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,21],"check","write","write special chars ts check","typescript","filters","characters","Existing","type-checking","for","errors","script","output","type","files","only","template","file",{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":28},"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",[],[91,92,68,83,93,21,94,95,96,97,98,82,99,100,72,75,77],"readback","write special chars readback","helper","post","via","scripts","cleanup","read","verification","with",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":28},"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",[],[108,68,72,24,77,95,82,83,21,75],"write special chars heredoc",{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":28},"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",[],[116,117,118,119,120,70,121,122,123,124,125,75,126,127,128,129,130,131,132,133],"reference","worldmonitor","worldmonitor reference","architecture","dashboard","css","scheduler","layer","hierarchy","source","extracting","panel","patterns","edge functions","integrations","open","api","data",{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":28},"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",[],[141,142,143,144,75,145,100,146,147,148,149],"virtual list","list","virtual","chunk","dom","rendering","recycling","implement","performance",{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":28},"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",[],[157,158,159,160,161,162,83,163,164,165],"directory","verify directory structure","structure","verify","access","first","issues","diagnose","file access"]