[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XBY8PJ844Z57J16SS36AEQ":3,"skill-same:01M6XBY8PJ844Z57J16SS36AEQ":62},{"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":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":13,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":41,"install":42,"resources":55},"01M6XBY8PJ844Z57J16SS36AEQ","robust-file-creation",null,"Fallback to run_shell and write_file when execute_code_sandbox or shell_agent fail on filesystem operations","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\u002Frobust-file-creation\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30],"file","creation","robust file creation","sandbox","run","code","shell","filesystem","write","execute","operations","fallback","when","2026-11-10 10:12:30",false,"---\nname: robust-file-creation\ndescription: Fallback to run_shell and write_file when execute_code_sandbox or shell_agent fail on filesystem operations\n---\n\n# Robust File Creation Strategy\n\nWhen creating complex project structures, automated tools like `execute_code_sandbox` and `shell_agent` may fail with 'unknown error' on filesystem operations. This skill provides a reliable fallback strategy using explicit shell commands.\n\n## When to Use\n\nApply this pattern when:\n- `execute_code_sandbox` fails with unknown error on file\u002Fdirectory creation\n- `shell_agent` fails to complete filesystem operations after retries\n- You need to create nested directory structures with multiple files\n- Task progress is blocked by filesystem tool failures\n\n## Fallback Procedure\n\n### Step 1: Detect the Failure\nWhen either `execute_code_sandbox` or `shell_agent` fails on filesystem operations (especially after automatic retries), immediately switch to the manual hybrid approach.\n\n### Step 2: Create Directories Explicitly\nUse `run_shell` with `mkdir -p` for each required directory:\n\n```bash\nrun_shell command=\"mkdir -p \u002Fpath\u002Fto\u002Fnested\u002Fdirectory\"\n```\n\nThe `-p` flag ensures parent directories are created automatically.\n\n### Step 3: Write Files Individually\nUse `write_file` tool for each file with explicit path and content:\n\n```\nwrite_file path=\"\u002Fpath\u002Fto\u002Ffile.py\" content=\"...\"\n```\n\nDo not attempt to batch multiple file creations in a single operation.\n\n### Step 4: Verify Creation (Optional)\nConfirm the structure was created correctly:\n\n```bash\nrun_shell command=\"ls -la \u002Fpath\u002Fto\u002Fdirectory\"\n# or\nrun_shell command=\"tree \u002Fpath\u002Fto\u002Fdirectory\"\n```\n\n## Complete Example Flow\n\n```\n[execute_code_sandbox fails on project setup]\n        ↓\n[run_shell mkdir -p src\u002Fcomponents]\n[run_shell mkdir -p src\u002Futils]\n[run_shell mkdir -p tests]\n        ↓\n[write_file path=\"src\u002Fmain.py\" content=\"...\"]\n[write_file path=\"src\u002Fcomponents\u002Fwidget.py\" content=\"...\"]\n[write_file path=\"tests\u002Ftest_main.py\" content=\"...\"]\n        ↓\n[run_shell ls -la src\u002F  # verify]\n```\n\n## Best Practices\n\n1. **Create all directories first** before writing any files to avoid path errors\n2. **Write files one at a time** rather than attempting batch operations\n3. **Use absolute or clearly relative paths** to avoid ambiguity\n4. **Verify after creation** when working on critical deliverables\n5. **Document the structure** in comments or SKILL.md if it's complex\n\n## Why This Works\n\n- `run_shell` executes commands directly without the abstraction layer that can fail\n- `write_file` is a primitive operation with fewer failure modes\n- Separating directory creation from file writing isolates potential failure points\n- Explicit commands are easier to debug when issues occur\n\n## Anti-Patterns to Avoid\n\n❌ Don't keep retrying the same failing `execute_code_sandbox` command\n❌ Don't attempt to create complex nested structures in a single Python script via sandbox\n❌ Don't assume directories exist before writing files to them\n❌ Don't skip verification on critical project scaffolding","# Robust File Creation Strategy\n\nWhen creating complex project structures, automated tools like `execute_code_sandbox` and `shell_agent` may fail with 'unknown error' on filesystem operations. This skill provides a reliable fallback strategy using explicit shell commands.\n\n## When to Use\n\nApply this pattern when:\n- `execute_code_sandbox` fails with unknown error on file\u002Fdirectory creation\n- `shell_agent` fails to complete filesystem operations after retries\n- You need to create nested directory structures with multiple files\n- Task progress is blocked by filesystem tool failures\n\n## Fallback Procedure\n\n### Step 1: Detect the Failure\nWhen either `execute_code_sandbox` or `shell_agent` fails on filesystem operations (especially after automatic retries), immediately switch to the manual hybrid approach.\n\n### Step 2: Create Directories Explicitly\nUse `run_shell` with `mkdir -p` for each required directory:\n\n```bash\nrun_shell command=\"mkdir -p \u002Fpath\u002Fto\u002Fnested\u002Fdirectory\"\n```\n\nThe `-p` flag ensures parent directories are created automatically.\n\n### Step 3: Write Files Individually\nUse `write_file` tool for each file with explicit path and content:\n\n```\nwrite_file path=\"\u002Fpath\u002Fto\u002Ffile.py\" content=\"...\"\n```\n\nDo not attempt to batch multiple file creations in a single operation.\n\n### Step 4: Verify Creation (Optional)\nConfirm the structure was created correctly:\n\n```bash\nrun_shell command=\"ls -la \u002Fpath\u002Fto\u002Fdirectory\"\n# or\nrun_shell command=\"tree \u002Fpath\u002Fto\u002Fdirectory\"\n```\n\n## Complete Example Flow\n\n```\n[execute_code_sandbox fails on project setup]\n        ↓\n[run_shell mkdir -p src\u002Fcomponents]\n[run_shell mkdir -p src\u002Futils]\n[run_shell mkdir -p tests]\n        ↓\n[write_file path=\"src\u002Fmain.py\" content=\"...\"]\n[write_file path=\"src\u002Fcomponents\u002Fwidget.py\" content=\"...\"]\n[write_file path=\"tests\u002Ftest_main.py\" content=\"...\"]\n        ↓\n[run_shell ls -la src\u002F  # verify]\n```\n\n## Best Practices\n\n1. **Create all directories first** before writing any files to avoid path errors\n2. **Write files one at a time** rather than attempting batch operations\n3. **Use absolute or clearly relative paths** to avoid ambiguity\n4. **Verify after creation** when working on critical deliverables\n5. **Document the structure** in comments or SKILL.md if it's complex\n\n## Why This Works\n\n- `run_shell` executes commands directly without the abstraction layer that can fail\n- `write_file` is a primitive operation with fewer failure modes\n- Separating directory creation from file writing isolates potential failure points\n- Explicit commands are easier to debug when issues occur\n\n## Anti-Patterns to Avoid\n\n❌ Don't keep retrying the same failing `execute_code_sandbox` command\n❌ Don't attempt to create complex nested structures in a single Python script via sandbox\n❌ Don't assume directories exist before writing files to them\n❌ Don't skip verification on critical project scaffolding",{"name":5,"description":7},"main","0650921d63895de3997bc81f1ff1d0ac67032072","gdpval_bench\u002Fskills\u002Frobust-file-creation","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":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add UF-gzj\u002Fopenspace-claude-evolution --skill robust-file-creation",{"tool":48,"command":49},"bunx","bunx skills add UF-gzj\u002Fopenspace-claude-evolution --skill robust-file-creation",{"tool":51,"command":52},"pnpm","pnpm dlx skills add UF-gzj\u002Fopenspace-claude-evolution --skill robust-file-creation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Frobust-file-creation\u002FSKILL.md",true,[56],{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},".skill_id","OTHER","其他",34,"https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Frobust-file-creation\u002F.skill_id",[63,86,103,111,141,157],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":31},"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",[],[70,26,71,72,73,74,75,76,77,78,79,80,81,82,83,84,18,85],"check","write special chars ts check","typescript","filters","characters","Existing","type-checking","for","errors","script","output","type","files","only","template","python",{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":31},"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",[],[93,94,26,18,95,85,96,97,98,99,100,84,101,102,74,77,79],"readback","write special chars readback","helper","post","via","scripts","cleanup","read","verification","with",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":31},"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",[],[110,26,74,24,79,97,84,18,85,77],"write special chars heredoc",{"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":122,"publishedAt":31},"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",[117],{"categoryNo":118,"categoryName":119,"taxonomyType":120,"taxonomyTypeDesc":121},"01JBSEEDCAT000000000000033","数据分析师","PROFESSION","适用职业",[123,124,125,126,127,72,128,129,130,131,132,77,133,134,135,136,137,138,139,140],"reference","worldmonitor","worldmonitor reference","architecture","dashboard","css","scheduler","layer","hierarchy","source","extracting","panel","patterns","edge functions","integrations","open","api","data",{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":31},"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",[],[148,149,150,151,77,152,102,153,154,155,156],"virtual list","list","virtual","chunk","dom","rendering","recycling","implement","performance",{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":31},"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",[],[164,165,166,167,168,169,18,170,171,172],"directory","verify directory structure","structure","verify","access","first","issues","diagnose","file access"]