[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KJX6F4C45J0PDW66EZVXJF":3,"skill-same:01M6KJX6F4C45J0PDW66EZVXJF":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":30,"linkOnly":31,"markdownContent":32,"markdownBody":33,"frontMatter":34,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":13,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":6,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M6KJX6F4C45J0PDW66EZVXJF","robust-file-creation",null,"Fallback to run_shell and write_file when execute_code_sandbox or shell_agent fail on filesystem operations","AG064\u002FOpenSpace","AG064","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184930299?v=4","01M6KHVFG7TB73NHX3RDYSTMH2","01M6KHVFMM7XA2PZA9Z83PHS3V",0,"MIT","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Frobust-file-creation\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29],"file","creation","robust file creation","sandbox","run","code","shell","filesystem","write","execute","operations","fallback","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","ff671ef61ed6587c49bd54c81cdc751c0b99e363","gdpval_bench\u002Fskills\u002Frobust-file-creation","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace","https:\u002F\u002Fgithub.com\u002FAG064","AG064, E.Mi.\r\n\r\nA person who thinks all the time, yet all they have to think about is nothing. I want to improve the world and work on open source projects","2026-10-08 06:53:48",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add AG064\u002FOpenSpace --skill robust-file-creation",{"tool":48,"command":49},"bunx","bunx skills add AG064\u002FOpenSpace --skill robust-file-creation",{"tool":51,"command":52},"pnpm","pnpm dlx skills add AG064\u002FOpenSpace --skill robust-file-creation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\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\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Frobust-file-creation\u002F.skill_id",[63,85,102,110,135,151],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":30},"01M6KKMPWA0B5SCCH766F8M5EA","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\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-ts-check\u002FSKILL.md",[],[70,71,26,72,73,74,75,76,77,78,79,80,81,82,18,83,84],"write special chars ts check","check","filters","Existing","type-checking","for","errors","script","output","type","files","only","template","python","typescript",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":30},"01M6KKMJXVBNVEY3TRK055F4A7","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\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-readback\u002FSKILL.md",[],[92,93,26,82,94,95,18,83,96,97,98,99,100,75,77,101],"readback","write special chars readback","cleanup","read","scripts","verification","via","post","helper","with",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":30},"01M6KKMEGX9M9NC105J0W3Q5B9","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\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-heredoc\u002FSKILL.md",[],[26,109,83,75,98,82,24,18,77],"write special chars heredoc",{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":30},"01M6KKM8EJ2AATVHZBNB916WT0","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\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fworldmonitor-reference\u002FSKILL.md",[],[117,118,119,120,84,121,122,123,124,125,75,126,127,128,129,130,131,132,133,134],"reference","worldmonitor","worldmonitor reference","dashboard","css","architecture","extracting","hierarchy","source","layer","panel","patterns","edge functions","integrations","open","api","data","scheduler",{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":30},"01M6KKM39PHYK627F19GE2B9XN","virtual-list","Implement efficient virtual scrolling for rendering large lists with DOM recycling, chunk-based rendering, and performance optimizations","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fvirtual-list\u002FSKILL.md",[],[142,143,144,145,75,146,101,147,148,149,150],"virtual list","list","virtual","chunk","dom","rendering","recycling","implement","performance",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":30},"01M6KKKY7T2P61Y0JH54CDEJKQ","verify-directory-structure","Diagnose and resolve file access issues by first verifying the directory structure.","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fverify-directory-structure\u002FSKILL.md",[],[158,159,160,161,162,163,18,164,165,166],"directory","verify","structure","verify directory structure","access","first","issues","diagnose","file access"]