[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KFG6EGCEMVN2AE3CB0DSMP":3,"skill-same:01M6KFG6EGCEMVN2AE3CB0DSMP":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":14,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":44,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M6KFG6EGCEMVN2AE3CB0DSMP","fallback-file-creation",null,"Fallback pattern for reliable file creation when code execution tools fail","xyliu-cs\u002FOpenSpace-GDPval","xyliu-cs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F89236536?v=4","01M6KF8Z1V4TXS86CKSH48BY8T","xy","01M6KF8Z67443W0SHXM85JEF0B",0,"MIT","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Ffallback-file-creation\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000002","文档处理","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33],"file","fallback","creation","fallback file creation","code","Tools","execution","pattern","code execution","for","2026-11-10 10:12:30",false,"---\nname: fallback-file-creation\ndescription: Fallback pattern for reliable file creation when code execution tools fail\n---\n\n# Fallback File Creation Workflow\n\nUse this skill when `execute_code_sandbox` or `shell_agent` fails repeatedly for file creation tasks. This pattern provides a manual but reliable approach to create and verify files.\n\n## When to Use\n\n- Code execution tools fail after multiple retries\n- You need to create specific file formats (PDF, DOCX, etc.)\n- Direct shell commands are more reliable than generated scripts\n- You need explicit verification of file outputs\n\n## Step-by-Step Instructions\n\n### Step 1: Verify Working Directory\n\nBefore any file operations, confirm your current location:\n\n```bash\npwd\nls -la\n```\n\nThis ensures you're creating files in the correct workspace directory.\n\n### Step 2: Create Scripts via Heredoc\n\nUse shell heredocs to create scripts with properly escaped syntax:\n\n```bash\ncat > \u002Fpath\u002Fto\u002Fscript.sh \u003C\u003C 'EOF'\n#!\u002Fbin\u002Fbash\n# Your script content here\n# Variables are NOT expanded inside 'EOF' (quoted)\necho \"Creating file...\"\n# Commands to generate output\nEOF\n```\n\n**Key escaping rules:**\n- Use `'EOF'` (quoted) to prevent variable expansion inside the heredoc\n- Use `EOF` (unquoted) if you want shell variables to expand\n- Escape any `$`, backticks, or special characters if using unquoted EOF\n\n### Step 3: Execute with Explicit Path\n\nAlways run scripts with their full or explicit relative path:\n\n```bash\nchmod +x \u002Fpath\u002Fto\u002Fscript.sh\n\u002Fpath\u002Fto\u002Fscript.sh\n# or\nbash \u002Fpath\u002Fto\u002Fscript.sh\n```\n\nAvoid relying on `.` or implicit paths.\n\n### Step 4: Verify Output\n\nAfter execution, verify files were created correctly:\n\n```bash\n# Check file exists and size\nls -lh \u002Fpath\u002Fto\u002Foutput.file\n\n# For PDFs: inspect metadata\npdfinfo \u002Fpath\u002Fto\u002Foutput.pdf\n\n# For DOCX: check structure\nunzip -l \u002Fpath\u002Fto\u002Foutput.docx | head -20\n\n# For any file: check content preview\nfile \u002Fpath\u002Fto\u002Foutput.file\nhead -c 500 \u002Fpath\u002Fto\u002Foutput.file\n```\n\n### Step 5: Iterative Debugging\n\nIf verification fails:\n\n1. Check error messages from script execution\n2. Verify all dependencies are available (`which command`)\n3. Test individual commands from the script manually\n4. Re-run with verbose output (`bash -x script.sh`)\n\n## Example: Creating a PDF Document\n\n```bash\n# Step 1: Verify directory\npwd\nls -la\n\n# Step 2: Create conversion script\ncat > \u002Fworkspace\u002Fcreate_pdf.sh \u003C\u003C 'EOF'\n#!\u002Fbin\u002Fbash\ncd \u002Fworkspace\nlibreoffice --headless --convert-to pdf checklist.odt --outdir .\nEOF\n\n# Step 3: Execute\nchmod +x \u002Fworkspace\u002Fcreate_pdf.sh\n\u002Fworkspace\u002Fcreate_pdf.sh\n\n# Step 4: Verify\nls -lh \u002Fworkspace\u002Fchecklist.pdf\npdfinfo \u002Fworkspace\u002Fchecklist.pdf\n```\n\n## Example: Creating a DOCX Document\n\n```bash\n# Step 1: Verify directory\npwd\nls -la\n\n# Step 2: Create document script\ncat > \u002Fworkspace\u002Fcreate_docx.sh \u003C\u003C 'EOF'\n#!\u002Fbin\u002Fbash\ncd \u002Fworkspace\npandoc -f markdown -t docx action_tracker.md -o action_tracker.docx\nEOF\n\n# Step 3: Execute\nchmod +x \u002Fworkspace\u002Fcreate_docx.sh\n\u002Fworkspace\u002Fcreate_docx.sh\n\n# Step 4: Verify\nls -lh \u002Fworkspace\u002Faction_tracker.docx\nunzip -l \u002Fworkspace\u002Faction_tracker.docx | head -20\n```\n\n## Best Practices\n\n1. **Always verify before and after** - Check directory state before starting and after completion\n2. **Use absolute or explicit paths** - Avoid ambiguity in file locations\n3. **Quote heredoc delimiters** - Use `'EOF'` to prevent unwanted variable expansion\n4. **Make scripts executable** - Always `chmod +x` before running\n5. **Inspect file metadata** - Use format-specific tools (pdfinfo, unzip -l, file) to verify content\n6. **Keep scripts simple** - Each script should do one thing well\n7. **Clean up temporary files** - Remove intermediate files after successful completion\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|----------|\n| Script not found | Use full path: `\u002Fworkspace\u002Fscript.sh` |\n| Permission denied | Run `chmod +x script.sh` |\n| File not created | Check script output, verify working directory in script |\n| Wrong file format | Verify conversion tool supports target format |\n| Corrupted output | Re-run with verbose mode, check intermediate files |","# Fallback File Creation Workflow\n\nUse this skill when `execute_code_sandbox` or `shell_agent` fails repeatedly for file creation tasks. This pattern provides a manual but reliable approach to create and verify files.\n\n## When to Use\n\n- Code execution tools fail after multiple retries\n- You need to create specific file formats (PDF, DOCX, etc.)\n- Direct shell commands are more reliable than generated scripts\n- You need explicit verification of file outputs\n\n## Step-by-Step Instructions\n\n### Step 1: Verify Working Directory\n\nBefore any file operations, confirm your current location:\n\n```bash\npwd\nls -la\n```\n\nThis ensures you're creating files in the correct workspace directory.\n\n### Step 2: Create Scripts via Heredoc\n\nUse shell heredocs to create scripts with properly escaped syntax:\n\n```bash\ncat > \u002Fpath\u002Fto\u002Fscript.sh \u003C\u003C 'EOF'\n#!\u002Fbin\u002Fbash\n# Your script content here\n# Variables are NOT expanded inside 'EOF' (quoted)\necho \"Creating file...\"\n# Commands to generate output\nEOF\n```\n\n**Key escaping rules:**\n- Use `'EOF'` (quoted) to prevent variable expansion inside the heredoc\n- Use `EOF` (unquoted) if you want shell variables to expand\n- Escape any `$`, backticks, or special characters if using unquoted EOF\n\n### Step 3: Execute with Explicit Path\n\nAlways run scripts with their full or explicit relative path:\n\n```bash\nchmod +x \u002Fpath\u002Fto\u002Fscript.sh\n\u002Fpath\u002Fto\u002Fscript.sh\n# or\nbash \u002Fpath\u002Fto\u002Fscript.sh\n```\n\nAvoid relying on `.` or implicit paths.\n\n### Step 4: Verify Output\n\nAfter execution, verify files were created correctly:\n\n```bash\n# Check file exists and size\nls -lh \u002Fpath\u002Fto\u002Foutput.file\n\n# For PDFs: inspect metadata\npdfinfo \u002Fpath\u002Fto\u002Foutput.pdf\n\n# For DOCX: check structure\nunzip -l \u002Fpath\u002Fto\u002Foutput.docx | head -20\n\n# For any file: check content preview\nfile \u002Fpath\u002Fto\u002Foutput.file\nhead -c 500 \u002Fpath\u002Fto\u002Foutput.file\n```\n\n### Step 5: Iterative Debugging\n\nIf verification fails:\n\n1. Check error messages from script execution\n2. Verify all dependencies are available (`which command`)\n3. Test individual commands from the script manually\n4. Re-run with verbose output (`bash -x script.sh`)\n\n## Example: Creating a PDF Document\n\n```bash\n# Step 1: Verify directory\npwd\nls -la\n\n# Step 2: Create conversion script\ncat > \u002Fworkspace\u002Fcreate_pdf.sh \u003C\u003C 'EOF'\n#!\u002Fbin\u002Fbash\ncd \u002Fworkspace\nlibreoffice --headless --convert-to pdf checklist.odt --outdir .\nEOF\n\n# Step 3: Execute\nchmod +x \u002Fworkspace\u002Fcreate_pdf.sh\n\u002Fworkspace\u002Fcreate_pdf.sh\n\n# Step 4: Verify\nls -lh \u002Fworkspace\u002Fchecklist.pdf\npdfinfo \u002Fworkspace\u002Fchecklist.pdf\n```\n\n## Example: Creating a DOCX Document\n\n```bash\n# Step 1: Verify directory\npwd\nls -la\n\n# Step 2: Create document script\ncat > \u002Fworkspace\u002Fcreate_docx.sh \u003C\u003C 'EOF'\n#!\u002Fbin\u002Fbash\ncd \u002Fworkspace\npandoc -f markdown -t docx action_tracker.md -o action_tracker.docx\nEOF\n\n# Step 3: Execute\nchmod +x \u002Fworkspace\u002Fcreate_docx.sh\n\u002Fworkspace\u002Fcreate_docx.sh\n\n# Step 4: Verify\nls -lh \u002Fworkspace\u002Faction_tracker.docx\nunzip -l \u002Fworkspace\u002Faction_tracker.docx | head -20\n```\n\n## Best Practices\n\n1. **Always verify before and after** - Check directory state before starting and after completion\n2. **Use absolute or explicit paths** - Avoid ambiguity in file locations\n3. **Quote heredoc delimiters** - Use `'EOF'` to prevent unwanted variable expansion\n4. **Make scripts executable** - Always `chmod +x` before running\n5. **Inspect file metadata** - Use format-specific tools (pdfinfo, unzip -l, file) to verify content\n6. **Keep scripts simple** - Each script should do one thing well\n7. **Clean up temporary files** - Remove intermediate files after successful completion\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|----------|\n| Script not found | Use full path: `\u002Fworkspace\u002Fscript.sh` |\n| Permission denied | Run `chmod +x script.sh` |\n| File not created | Check script output, verify working directory in script |\n| Wrong file format | Verify conversion tool supports target format |\n| Corrupted output | Re-run with verbose mode, check intermediate files |",{"name":5,"description":7},"main","af1b40a42167d09c30b3a63000aa14ace4c1e229","gdpval_bench\u002Fskills\u002Ffallback-file-creation","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval","https:\u002F\u002Fgithub.com\u002Fxyliu-cs","https:\u002F\u002Fxyliu-cs.github.io","PhD Student in CS, CUHK-Shenzhen.","2026-04-06 20:32:15",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add xyliu-cs\u002FOpenSpace-GDPval --skill fallback-file-creation",{"tool":53,"command":54},"bunx","bunx skills add xyliu-cs\u002FOpenSpace-GDPval --skill fallback-file-creation",{"tool":56,"command":57},"pnpm","pnpm dlx skills add xyliu-cs\u002FOpenSpace-GDPval --skill fallback-file-creation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Ffallback-file-creation\u002FSKILL.md",true,[61],{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},".skill_id","OTHER","其他",36,"https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Ffallback-file-creation\u002F.skill_id",[68,81,89,104,128,147],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":34},"01M6KG8MF1S664SWBDENYRSCK8","zip-export-deliverable","Ensures codebase deliverables are properly exported as ZIP archives through a dedicated finalization step","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fzip-export-deliverable\u002FSKILL.md",[],[75,76,77,78,79,80],"zip export deliverable","zip","export","deliverables","codebase","as",{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":34},"01M6KG8GAZWHHEK7VNJDW0ME21","zip-deliverable-finalization","Ensure codebase deliverables are properly packaged as ZIP exports in a dedicated final step","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fzip-deliverable-finalization\u002FSKILL.md",[],[88,76,78,79,80],"zip deliverable finalization",{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":34},"01M6KG8CMQQ1PYMNTSRZ9VS1MD","zero-iteration-failure-analysis","Identify and handle agent failures with 0 iterations as pre-execution system issues","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fzero-iteration-failure-analysis\u002FSKILL.md",[],[96,97,98,99,100,101,102,30,80,103],"failure analysis","ZeRO","analysis","iteration","zero iteration failure analysis","with","issues","system",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":115,"publishedAt":34},"01M6KG86W3PA07FT9W58YHHERM","write-file-fallback-report","Generate professional documents using write_file when primary data sources fail, leveraging embedded domain knowledge instead of external retrieval","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fwrite-file-fallback-report\u002FSKILL.md",[110],{"categoryNo":111,"categoryName":112,"taxonomyType":113,"taxonomyTypeDesc":114},"01JBSEEDCAT000000000000034","行政与办公人员","PROFESSION","适用职业",[25,116,24,117,118,119,120,121,122,123,124,125,126,127],"write","report","write file fallback report","domain","professional","sources","retrieval","generate","embedded","documents","data","knowledge",{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":137,"publishedAt":34},"01M6KG82GAEY3GG77CMGCK1C2T","fallback-doc-with-delegation","Generate professional documents after tool failures using shell_agent for complex formats or write_file for simple text\u002Fmarkdown","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fwrite-file-fallback-report-enhanced\u002FSKILL.md",[134],{"categoryNo":135,"categoryName":136,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[138,101,25,139,140,141,125,123,24,142,143,144,116,145,120,146,33],"fallback doc with delegation","doc","delegation","shell","markdown","tool","text","simple","formats",{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":154,"publishedAt":34},"01M6KG7WT7GX5NYCGEFHW22NV7","context-anchored-fallback-report","Generate documents with write_file when retrieval tools fail, with explicit guardrails against task context drift","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fwrite-file-fallback-report-enhanced-4bc5c2\u002FSKILL.md",[153],{"categoryNo":111,"categoryName":112,"taxonomyType":113,"taxonomyTypeDesc":114},[25,117,155,156,123,24,157,29,116,158,159,122,101,160,125],"context","context anchored fallback report","Guardrails","task","drift","context drift"]