[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XBYZMG2J0G6J2HA22PF4Z3":3,"skill-same:01M6XBYZMG2J0G6J2HA22PF4Z3":63},{"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":32,"linkOnly":33,"markdownContent":34,"markdownBody":35,"frontMatter":36,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":13,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":42,"install":43,"resources":56},"01M6XBYZMG2J0G6J2HA22PF4Z3","safe-script-execution",null,"Fallback workflow for code execution when automated tools fail, using shell heredoc with verification","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\u002Fsafe-script-execution\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31],"safe","execution","script","safe script execution","workflow","code","verification","Tools","shell","fallback","code execution","with","for","when","2026-11-10 10:12:30",false,"---\nname: safe-script-execution\ndescription: Fallback workflow for code execution when automated tools fail, using shell heredoc with verification\n---\n\n# Safe Script Execution Fallback\n\n## When to Use This Skill\n\nUse this pattern when `execute_code_sandbox` or `shell_agent` repeatedly fails to produce expected outputs. This manual fallback provides explicit control over script creation and execution with built-in verification.\n\n## Step-by-Step Instructions\n\n### Step 1: Verify Working Directory\n\nBefore creating any scripts, confirm your current location and permissions:\n\n```bash\npwd\nls -la\n```\n\nDocument the absolute path. All subsequent file operations should use explicit paths from this point.\n\n### Step 2: Create Script via Heredoc\n\nUse shell heredoc syntax to create scripts. This avoids issues with multi-line string escaping:\n\n```bash\ncat > \u002Ffull\u002Fpath\u002Fto\u002Fscript.py \u003C\u003C 'HEREDOC_END'\n#!\u002Fusr\u002Fbin\u002Fenv python3\n# Your script content here\n# Single quotes around delimiter prevent variable expansion\nprint(\"Hello from script\")\nHEREDOC_END\n```\n\n**Key escaping rules:**\n- Use single quotes around heredoc delimiter (`'EOF'`) to prevent shell variable expansion\n- If script contains the delimiter string, choose a different unique delimiter\n- For bash scripts containing special characters, escape `$`, backticks, and `!`\n\n### Step 3: Make Executable and Run with Explicit Path\n\n```bash\nchmod +x \u002Ffull\u002Fpath\u002Fto\u002Fscript.py\n\u002Ffull\u002Fpath\u002Fto\u002Fscript.py\n```\n\nAlways use the full absolute path, never rely on `.` or relative paths.\n\n### Step 4: Verify Output\n\nConfirm files were created and inspect their properties:\n\n```bash\n# Check file exists with size\nls -lh \u002Ffull\u002Fpath\u002Fto\u002Foutput.file\n\n# For PDFs, inspect metadata\npdfinfo \u002Ffull\u002Fpath\u002Fto\u002Foutput.pdf 2>\u002Fdev\u002Fnull || file \u002Ffull\u002Fpath\u002Fto\u002Foutput.pdf\n\n# For Word docs, check file type\nfile \u002Ffull\u002Fpath\u002Fto\u002Foutput.docx\n```\n\n### Step 5: Error Handling\n\nIf execution fails:\n1. Check script syntax: `python3 -m py_compile \u002Fpath\u002Fto\u002Fscript.py`\n2. Check permissions: `ls -l \u002Fpath\u002Fto\u002Fscript.py`\n3. Check available disk space: `df -h .`\n4. Review stderr output carefully\n\n## Example: PDF Generation Fallback\n\n```bash\n# Step 1: Verify directory\npwd\nls -la\n\n# Step 2: Create Python script\ncat > \u002Fworkspace\u002Fgenerate_pdf.py \u003C\u003C 'SCRIPT_END'\nfrom reportlab.lib.pagesizes import letter\nfrom reportlab.pdfgen import canvas\n\nc = canvas.Canvas(\"\u002Fworkspace\u002Foutput.pdf\", pagesize=letter)\nc.drawString(100, 750, \"Generated PDF\")\nc.save()\nSCRIPT_END\n\n# Step 3: Execute\nchmod +x \u002Fworkspace\u002Fgenerate_pdf.py\npython3 \u002Fworkspace\u002Fgenerate_pdf.py\n\n# Step 4: Verify\nls -lh \u002Fworkspace\u002Foutput.pdf\npdfinfo \u002Fworkspace\u002Foutput.pdf 2>\u002Fdev\u002Fnull || echo \"PDF created, pdfinfo unavailable\"\n```\n\n## Anti-Patterns to Avoid\n\n- ❌ Don't use relative paths like `.\u002Fscript.py` - always use absolute paths\n- ❌ Don't rely on unquoted heredoc delimiters if script contains variables\n- ❌ Don't skip verification steps - always confirm output exists and has expected size\n- ❌ Don't assume working directory - always `pwd` first\n\n## Troubleshooting Checklist\n\n- [ ] Working directory confirmed with `pwd`\n- [ ] Script file exists after heredoc creation (`ls -l`)\n- [ ] Script has execute permissions (`chmod +x`)\n- [ ] Output file exists with non-zero size (`ls -lh`)\n- [ ] File type verified (`file` command or type-specific inspection)","# Safe Script Execution Fallback\n\n## When to Use This Skill\n\nUse this pattern when `execute_code_sandbox` or `shell_agent` repeatedly fails to produce expected outputs. This manual fallback provides explicit control over script creation and execution with built-in verification.\n\n## Step-by-Step Instructions\n\n### Step 1: Verify Working Directory\n\nBefore creating any scripts, confirm your current location and permissions:\n\n```bash\npwd\nls -la\n```\n\nDocument the absolute path. All subsequent file operations should use explicit paths from this point.\n\n### Step 2: Create Script via Heredoc\n\nUse shell heredoc syntax to create scripts. This avoids issues with multi-line string escaping:\n\n```bash\ncat > \u002Ffull\u002Fpath\u002Fto\u002Fscript.py \u003C\u003C 'HEREDOC_END'\n#!\u002Fusr\u002Fbin\u002Fenv python3\n# Your script content here\n# Single quotes around delimiter prevent variable expansion\nprint(\"Hello from script\")\nHEREDOC_END\n```\n\n**Key escaping rules:**\n- Use single quotes around heredoc delimiter (`'EOF'`) to prevent shell variable expansion\n- If script contains the delimiter string, choose a different unique delimiter\n- For bash scripts containing special characters, escape `$`, backticks, and `!`\n\n### Step 3: Make Executable and Run with Explicit Path\n\n```bash\nchmod +x \u002Ffull\u002Fpath\u002Fto\u002Fscript.py\n\u002Ffull\u002Fpath\u002Fto\u002Fscript.py\n```\n\nAlways use the full absolute path, never rely on `.` or relative paths.\n\n### Step 4: Verify Output\n\nConfirm files were created and inspect their properties:\n\n```bash\n# Check file exists with size\nls -lh \u002Ffull\u002Fpath\u002Fto\u002Foutput.file\n\n# For PDFs, inspect metadata\npdfinfo \u002Ffull\u002Fpath\u002Fto\u002Foutput.pdf 2>\u002Fdev\u002Fnull || file \u002Ffull\u002Fpath\u002Fto\u002Foutput.pdf\n\n# For Word docs, check file type\nfile \u002Ffull\u002Fpath\u002Fto\u002Foutput.docx\n```\n\n### Step 5: Error Handling\n\nIf execution fails:\n1. Check script syntax: `python3 -m py_compile \u002Fpath\u002Fto\u002Fscript.py`\n2. Check permissions: `ls -l \u002Fpath\u002Fto\u002Fscript.py`\n3. Check available disk space: `df -h .`\n4. Review stderr output carefully\n\n## Example: PDF Generation Fallback\n\n```bash\n# Step 1: Verify directory\npwd\nls -la\n\n# Step 2: Create Python script\ncat > \u002Fworkspace\u002Fgenerate_pdf.py \u003C\u003C 'SCRIPT_END'\nfrom reportlab.lib.pagesizes import letter\nfrom reportlab.pdfgen import canvas\n\nc = canvas.Canvas(\"\u002Fworkspace\u002Foutput.pdf\", pagesize=letter)\nc.drawString(100, 750, \"Generated PDF\")\nc.save()\nSCRIPT_END\n\n# Step 3: Execute\nchmod +x \u002Fworkspace\u002Fgenerate_pdf.py\npython3 \u002Fworkspace\u002Fgenerate_pdf.py\n\n# Step 4: Verify\nls -lh \u002Fworkspace\u002Foutput.pdf\npdfinfo \u002Fworkspace\u002Foutput.pdf 2>\u002Fdev\u002Fnull || echo \"PDF created, pdfinfo unavailable\"\n```\n\n## Anti-Patterns to Avoid\n\n- ❌ Don't use relative paths like `.\u002Fscript.py` - always use absolute paths\n- ❌ Don't rely on unquoted heredoc delimiters if script contains variables\n- ❌ Don't skip verification steps - always confirm output exists and has expected size\n- ❌ Don't assume working directory - always `pwd` first\n\n## Troubleshooting Checklist\n\n- [ ] Working directory confirmed with `pwd`\n- [ ] Script file exists after heredoc creation (`ls -l`)\n- [ ] Script has execute permissions (`chmod +x`)\n- [ ] Output file exists with non-zero size (`ls -lh`)\n- [ ] File type verified (`file` command or type-specific inspection)",{"name":5,"description":7},"main","0650921d63895de3997bc81f1ff1d0ac67032072","gdpval_bench\u002Fskills\u002Fsafe-script-execution","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":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add UF-gzj\u002Fopenspace-claude-evolution --skill safe-script-execution",{"tool":49,"command":50},"bunx","bunx skills add UF-gzj\u002Fopenspace-claude-evolution --skill safe-script-execution",{"tool":52,"command":53},"pnpm","pnpm dlx skills add UF-gzj\u002Fopenspace-claude-evolution --skill safe-script-execution","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fsafe-script-execution\u002FSKILL.md",true,[57],{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},".skill_id","OTHER","其他",35,"https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fsafe-script-execution\u002F.skill_id",[64,87,102,110,140,156],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":32},"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",[],[71,72,73,74,75,76,77,78,30,79,20,80,81,82,83,84,85,86],"check","write","write special chars ts check","typescript","filters","characters","Existing","type-checking","errors","output","type","files","only","template","file","python",{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":32},"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",[],[94,95,72,85,96,86,97,98,99,100,101,84,24,29,76,30,20],"readback","write special chars readback","helper","post","via","scripts","cleanup","read",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":32},"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",[],[109,72,76,26,20,98,84,85,86,30],"write special chars heredoc",{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":121,"publishedAt":32},"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],{"categoryNo":117,"categoryName":118,"taxonomyType":119,"taxonomyTypeDesc":120},"01JBSEEDCAT000000000000033","数据分析师","PROFESSION","适用职业",[122,123,124,125,126,74,127,128,129,130,131,30,132,133,134,135,136,137,138,139],"reference","worldmonitor","worldmonitor reference","architecture","dashboard","css","scheduler","layer","hierarchy","source","extracting","panel","patterns","edge functions","integrations","open","api","data",{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":32},"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",[],[147,148,149,150,30,151,29,152,153,154,155],"virtual list","list","virtual","chunk","dom","rendering","recycling","implement","performance",{"skillNo":157,"name":158,"nameZh":6,"description":159,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":162,"publishedAt":32},"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",[],[163,164,165,166,167,168,85,169,170,171],"directory","verify directory structure","structure","verify","access","first","issues","diagnose","file access"]