[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KJY5BS1QWXCCZ5GAT3D8WZ":3,"skill-same:01M6KJY5BS1QWXCCZ5GAT3D8WZ":63},{"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":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":41,"updatedAt":42,"install":43,"resources":56},"01M6KJY5BS1QWXCCZ5GAT3D8WZ","safe-script-execution",null,"Fallback workflow for code execution when automated tools fail, using shell heredoc with verification","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\u002Fsafe-script-execution\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30],"safe","execution","script","safe script execution","workflow","code","verification","Tools","shell","fallback","code execution","with","for","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","ff671ef61ed6587c49bd54c81cdc751c0b99e363","gdpval_bench\u002Fskills\u002Fsafe-script-execution","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":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add AG064\u002FOpenSpace --skill safe-script-execution",{"tool":49,"command":50},"bunx","bunx skills add AG064\u002FOpenSpace --skill safe-script-execution",{"tool":52,"command":53},"pnpm","pnpm dlx skills add AG064\u002FOpenSpace --skill safe-script-execution","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\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\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fsafe-script-execution\u002F.skill_id",[64,86,101,109,134,150],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":31},"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",[],[71,72,73,74,75,76,30,77,20,78,79,80,81,82,83,84,85],"write special chars ts check","check","write","filters","Existing","type-checking","errors","output","type","files","only","template","file","python","typescript",{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":31},"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",[],[93,94,73,82,95,96,83,84,97,24,98,99,100,30,20,29],"readback","write special chars readback","cleanup","read","scripts","via","post","helper",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":31},"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",[],[73,108,84,30,98,82,26,83,20],"write special chars heredoc",{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":31},"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",[],[116,117,118,119,85,120,121,122,123,124,30,125,126,127,128,129,130,131,132,133],"reference","worldmonitor","worldmonitor reference","dashboard","css","architecture","extracting","hierarchy","source","layer","panel","patterns","edge functions","integrations","open","api","data","scheduler",{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":31},"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",[],[141,142,143,144,30,145,29,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":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":31},"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",[],[157,158,159,160,161,162,83,163,164,165],"directory","verify","structure","verify directory structure","access","first","issues","diagnose","file access"]