[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XBKRBKXH5RCRGKT9YEQA2C":3,"skill-same:01M6XBKRBKXH5RCRGKT9YEQA2C":59},{"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":28,"linkOnly":29,"markdownContent":30,"markdownBody":31,"frontMatter":32,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":13,"repositoryHtmlUrl":36,"repositoryHomepageUrl":6,"ownerHtmlUrl":37,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":38,"install":39,"resources":52},"01M6XBKRBKXH5RCRGKT9YEQA2C","execute-code-fallback",null,"Fallback from execute_code_sandbox to run_shell when e2b sandbox is unavailable","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\u002Fexecute-code-fallback\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27],"code","execute","fallback","execute code fallback","sandbox","run","shell","e2b sandbox","e2b","when","2026-11-10 10:12:30",false,"---\nname: execute-code-fallback\ndescription: Fallback from execute_code_sandbox to run_shell when e2b sandbox is unavailable\n---\n\n# Execute Code Fallback Pattern\n\nWhen `execute_code_sandbox` fails due to e2b unavailability, immediately fall back to `run_shell` with embedded Python code. This ensures task continuity when the sandbox service is down.\n\n## When to Apply\n\nUse this pattern when you observe:\n- `execute_code_sandbox` returns errors mentioning \"e2b\", \"sandbox unavailable\", or connection timeouts\n- Repeated sandbox execution failures (2+ attempts)\n- Error messages indicating the code execution environment is unreachable\n\n## Fallback Procedure\n\n### Step 1: Detect the Failure\n\nIdentify that `execute_code_sandbox` has failed. Common error indicators:\n- \"e2b service unavailable\"\n- \"Sandbox connection failed\"\n- \"Execution environment not reachable\"\n- Timeout errors during code execution\n\n### Step 2: Switch to run_shell with Embedded Python\n\nInstead of:\n```python\nexecute_code_sandbox(code=\"...\")\n```\n\nUse:\n```bash\nrun_shell(command=\"python3 -c '...your Python code...'\")\n```\n\n### Step 3: Install Dependencies First (If Needed)\n\nIf your Python code requires external packages, install them first:\n\n```bash\nrun_shell(command=\"pip install pandas requests matplotlib\")\n```\n\nThen execute your main code:\n\n```bash\nrun_shell(command=\"python3 \u003C\u003C 'EOF'\nimport pandas as pd\nimport requests\n\n# Your code here\nprint(\"Success\")\nEOF\n\")\n```\n\n### Step 4: Use Heredoc for Multi-line Code\n\nFor complex Python scripts, use heredoc syntax for cleaner code:\n\n```bash\nrun_shell(command=\"python3 \u003C\u003C 'PYTHON_SCRIPT'\nimport json\nimport os\n\n# Complex logic here\ndata = {'key': 'value'}\nwith open('output.json', 'w') as f:\n    json.dump(data, f)\n\nprint('File created successfully')\nPYTHON_SCRIPT\n\")\n```\n\n## Complete Example\n\n**Scenario:** You need to process a CSV file and generate a report.\n\n**Original approach (sandbox):**\n```python\nexecute_code_sandbox(code=\"\"\"\nimport pandas as pd\ndf = pd.read_csv('data.csv')\nsummary = df.describe()\nprint(summary)\n\"\"\")\n```\n\n**Fallback approach (run_shell):**\n```bash\n# First install dependencies if needed\nrun_shell(command=\"pip install pandas --quiet\")\n\n# Then execute the code\nrun_shell(command=\"python3 \u003C\u003C 'EOF'\nimport pandas as pd\ndf = pd.read_csv('data.csv')\nsummary = df.describe()\nprint(summary)\nEOF\n\")\n```\n\n## Important Considerations\n\n1. **State Persistence**: Unlike `execute_code_sandbox`, `run_shell` executions may not share state between calls. Save intermediate results to files if needed.\n\n2. **Working Directory**: Ensure you're operating in the correct directory. Use `pwd` to verify or include `cd \u002Fpath\u002Fto\u002Fworkdir` in your commands.\n\n3. **Python Version**: Use `python3` explicitly to avoid ambiguity. Verify with `python3 --version` if needed.\n\n4. **Error Handling**: Check the stdout\u002Fstderr from `run_shell` to confirm success. Failed Python scripts will return non-zero exit codes.\n\n5. **Security**: Be cautious when embedding user-provided data into shell commands. Escape appropriately or use file-based input.\n\n6. **Performance**: For large computations, `run_shell` may be slower than sandbox. Consider breaking into smaller steps if timeouts occur.\n\n## Quick Reference\n\n| Task | Sandbox Approach | Fallback Approach |\n|------|-----------------|-------------------|\n| Simple calculation | `execute_code_sandbox(code=\"print(2+2)\")` | `run_shell(command=\"python3 -c 'print(2+2)'\")` |\n| Install + run | `execute_code_sandbox(code=\"import pkg; ...\")` | `run_shell(command=\"pip install pkg && python3 -c '...'\")` |\n| Multi-line script | `execute_code_sandbox(code=\"...\")` | `run_shell(command=\"python3 \u003C\u003C 'EOF'...EOF\")` |\n| File I\u002FO | `execute_code_sandbox(code=\"...\")` | `run_shell(command=\"python3 \u003C\u003C 'EOF'...EOF\")` |\n\n## Recovery Checklist\n\n- [ ] Confirm `execute_code_sandbox` failure (not a code bug)\n- [ ] Switch to `run_shell` immediately\n- [ ] Install required packages with `pip install`\n- [ ] Use heredoc for multi-line Python\n- [ ] Verify output and handle errors\n- [ ] Save intermediate results to files if multi-step","# Execute Code Fallback Pattern\n\nWhen `execute_code_sandbox` fails due to e2b unavailability, immediately fall back to `run_shell` with embedded Python code. This ensures task continuity when the sandbox service is down.\n\n## When to Apply\n\nUse this pattern when you observe:\n- `execute_code_sandbox` returns errors mentioning \"e2b\", \"sandbox unavailable\", or connection timeouts\n- Repeated sandbox execution failures (2+ attempts)\n- Error messages indicating the code execution environment is unreachable\n\n## Fallback Procedure\n\n### Step 1: Detect the Failure\n\nIdentify that `execute_code_sandbox` has failed. Common error indicators:\n- \"e2b service unavailable\"\n- \"Sandbox connection failed\"\n- \"Execution environment not reachable\"\n- Timeout errors during code execution\n\n### Step 2: Switch to run_shell with Embedded Python\n\nInstead of:\n```python\nexecute_code_sandbox(code=\"...\")\n```\n\nUse:\n```bash\nrun_shell(command=\"python3 -c '...your Python code...'\")\n```\n\n### Step 3: Install Dependencies First (If Needed)\n\nIf your Python code requires external packages, install them first:\n\n```bash\nrun_shell(command=\"pip install pandas requests matplotlib\")\n```\n\nThen execute your main code:\n\n```bash\nrun_shell(command=\"python3 \u003C\u003C 'EOF'\nimport pandas as pd\nimport requests\n\n# Your code here\nprint(\"Success\")\nEOF\n\")\n```\n\n### Step 4: Use Heredoc for Multi-line Code\n\nFor complex Python scripts, use heredoc syntax for cleaner code:\n\n```bash\nrun_shell(command=\"python3 \u003C\u003C 'PYTHON_SCRIPT'\nimport json\nimport os\n\n# Complex logic here\ndata = {'key': 'value'}\nwith open('output.json', 'w') as f:\n    json.dump(data, f)\n\nprint('File created successfully')\nPYTHON_SCRIPT\n\")\n```\n\n## Complete Example\n\n**Scenario:** You need to process a CSV file and generate a report.\n\n**Original approach (sandbox):**\n```python\nexecute_code_sandbox(code=\"\"\"\nimport pandas as pd\ndf = pd.read_csv('data.csv')\nsummary = df.describe()\nprint(summary)\n\"\"\")\n```\n\n**Fallback approach (run_shell):**\n```bash\n# First install dependencies if needed\nrun_shell(command=\"pip install pandas --quiet\")\n\n# Then execute the code\nrun_shell(command=\"python3 \u003C\u003C 'EOF'\nimport pandas as pd\ndf = pd.read_csv('data.csv')\nsummary = df.describe()\nprint(summary)\nEOF\n\")\n```\n\n## Important Considerations\n\n1. **State Persistence**: Unlike `execute_code_sandbox`, `run_shell` executions may not share state between calls. Save intermediate results to files if needed.\n\n2. **Working Directory**: Ensure you're operating in the correct directory. Use `pwd` to verify or include `cd \u002Fpath\u002Fto\u002Fworkdir` in your commands.\n\n3. **Python Version**: Use `python3` explicitly to avoid ambiguity. Verify with `python3 --version` if needed.\n\n4. **Error Handling**: Check the stdout\u002Fstderr from `run_shell` to confirm success. Failed Python scripts will return non-zero exit codes.\n\n5. **Security**: Be cautious when embedding user-provided data into shell commands. Escape appropriately or use file-based input.\n\n6. **Performance**: For large computations, `run_shell` may be slower than sandbox. Consider breaking into smaller steps if timeouts occur.\n\n## Quick Reference\n\n| Task | Sandbox Approach | Fallback Approach |\n|------|-----------------|-------------------|\n| Simple calculation | `execute_code_sandbox(code=\"print(2+2)\")` | `run_shell(command=\"python3 -c 'print(2+2)'\")` |\n| Install + run | `execute_code_sandbox(code=\"import pkg; ...\")` | `run_shell(command=\"pip install pkg && python3 -c '...'\")` |\n| Multi-line script | `execute_code_sandbox(code=\"...\")` | `run_shell(command=\"python3 \u003C\u003C 'EOF'...EOF\")` |\n| File I\u002FO | `execute_code_sandbox(code=\"...\")` | `run_shell(command=\"python3 \u003C\u003C 'EOF'...EOF\")` |\n\n## Recovery Checklist\n\n- [ ] Confirm `execute_code_sandbox` failure (not a code bug)\n- [ ] Switch to `run_shell` immediately\n- [ ] Install required packages with `pip install`\n- [ ] Use heredoc for multi-line Python\n- [ ] Verify output and handle errors\n- [ ] Save intermediate results to files if multi-step",{"name":5,"description":7},"main","0650921d63895de3997bc81f1ff1d0ac67032072","gdpval_bench\u002Fskills\u002Fexecute-code-fallback","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":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add UF-gzj\u002Fopenspace-claude-evolution --skill execute-code-fallback",{"tool":45,"command":46},"bunx","bunx skills add UF-gzj\u002Fopenspace-claude-evolution --skill execute-code-fallback",{"tool":48,"command":49},"pnpm","pnpm dlx skills add UF-gzj\u002Fopenspace-claude-evolution --skill execute-code-fallback","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fexecute-code-fallback\u002FSKILL.md",true,[53],{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},".skill_id","OTHER","其他",35,"https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fexecute-code-fallback\u002F.skill_id",[60,85,102,110,135,151],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":28},"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",[],[67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],"check","write","write special chars ts check","typescript","filters","characters","Existing","type-checking","for","errors","script","output","type","files","only","template","file","python",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":28},"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",[],[92,93,68,83,94,84,95,96,97,98,99,82,100,101,72,75,77],"readback","write special chars readback","helper","post","via","scripts","cleanup","read","verification","with",{"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":28},"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,68,72,24,77,96,82,83,84,75],"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":116,"publishedAt":28},"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,118,119,120,121,70,122,123,124,125,126,75,127,128,129,130,131,132,133,134],"reference","worldmonitor","worldmonitor reference","architecture","dashboard","css","scheduler","layer","hierarchy","source","extracting","panel","patterns","edge functions","integrations","open","api","data",{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":28},"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",[],[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":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":28},"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",[],[158,159,160,161,162,163,83,164,165,166],"directory","verify directory structure","structure","verify","access","first","issues","diagnose","file access"]