[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XBYQAKFS37FGR6V85HB6JF":3,"skill-same:01M6XBYQAKFS37FGR6V85HB6JF":64},{"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":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":13,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":43,"install":44,"resources":57},"01M6XBYQAKFS37FGR6V85HB6JF","run-shell-fallback",null,"Use run_shell with inline Python as a reliable fallback when execute_code_sandbox or read_file fail","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\u002Frun-shell-fallback\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],"run","shell","fallback","run shell fallback","python","sandbox","code","file","read","execute","use","as","with","inline","when","2026-11-10 10:12:30",false,"---\nname: run-shell-fallback\ndescription: Use run_shell with inline Python as a reliable fallback when execute_code_sandbox or read_file fail\n---\n\n# Run Shell Fallback Pattern\n\nThis skill provides a reliable workaround when `execute_code_sandbox` or `read_file` fail with 'unknown error' by switching to `run_shell` with inline Python code.\n\n## When to Use\n\nApply this pattern when you encounter:\n- `execute_code_sandbox` fails with \"unknown error\" or timeout\n- `read_file` fails to read accessible files with \"unknown error\"\n- Sandbox environment is unreliable for your specific task\n\n## How to Implement\n\n### 1. File Reading Fallback\n\nWhen `read_file` fails, use `run_shell` with Python or `cat`:\n\n**For text files:**\n```bash\nrun_shell(command=\"cat \u002Fpath\u002Fto\u002Ffile.txt\")\n```\n\n**For structured parsing (Python one-liner):**\n```bash\nrun_shell(command=\"python3 -c \\\"import json; print(json.load(open('\u002Fpath\u002Fto\u002Ffile.json')))\\\"\")\n```\n\n**For multi-line Python processing:**\n```bash\nrun_shell(command=\"python3 \u003C\u003C 'EOF'\nwith open('\u002Fpath\u002Fto\u002Ffile.txt', 'r') as f:\n    content = f.read()\n    # Process content here\n    print(content.upper())\nEOF\")\n```\n\n### 2. Code Execution Fallback\n\nWhen `execute_code_sandbox` fails, use `run_shell` with inline Python:\n\n**Simple one-liners:**\n```bash\nrun_shell(command=\"python3 -c \\\"print('Hello'); import os; print(os.getcwd())\\\"\")\n```\n\n**Multi-line scripts (heredoc):**\n```bash\nrun_shell(command=\"python3 \u003C\u003C 'EOF'\nimport os\nimport json\n\ndef process_data(data):\n    return {k: v.upper() if isinstance(v, str) else v for k, v in data.items()}\n\nwith open('input.json') as f:\n    data = json.load(f)\n    \nresult = process_data(data)\nprint(json.dumps(result, indent=2))\nEOF\")\n```\n\n**With inline file write:**\n```bash\nrun_shell(command=\"python3 \u003C\u003C 'EOF'\nresult = {'status': 'success', 'count': 42}\nwith open('output.json', 'w') as f:\n    json.dump(result, f, indent=2)\nprint('File written successfully')\nEOF\")\n```\n\n### 3. Decision Flow\n\n```\n1. Attempt execute_code_sandbox or read_file\n2. If failure with 'unknown error':\n   a. Determine task type (code execution vs file reading)\n   b. Choose inline Python approach (-c for simple, heredoc for complex)\n   c. Execute via run_shell\n   d. Parse output as needed\n3. Continue with task using results from run_shell\n```\n\n## Best Practices\n\n1. **Escape quotes properly** in `-c` commands: Use `\\\"` for double quotes inside the command string\n\n2. **Use heredoc for complex scripts**: When code exceeds 2-3 lines or needs multiple imports, use `\u003C\u003C 'EOF'` syntax\n\n3. **Quote EOF marker**: Use `\u003C\u003C 'EOF'` (with quotes) to prevent variable expansion in the heredoc\n\n4. **Capture stdout**: Design your inline Python to print results to stdout for easy capture\n\n5. **Error handling**: Add try\u002Fexcept blocks in your inline Python to catch and report errors clearly\n\n6. **File paths**: Use absolute paths when possible, or ensure working directory is correct\n\n## Examples\n\n### Example 1: Read and parse JSON after read_file failure\n```bash\nrun_shell(command=\"python3 -c \\\"import json; data=json.load(open('config.json')); print(data['key'])\\\"\")\n```\n\n### Example 2: Process CSV data after execute_code_sandbox failure\n```bash\nrun_shell(command=\"python3 \u003C\u003C 'EOF'\nimport csv\nwith open('data.csv', 'r') as f:\n    reader = csv.DictReader(f)\n    rows = list(reader)\n    print(f\\\"Total rows: {len(rows)}\\\")\n    for row in rows[:5]:\n        print(row)\nEOF\")\n```\n\n### Example 3: Transform and write output file\n```bash\nrun_shell(command=\"python3 \u003C\u003C 'EOF'\nimport json\nwith open('input.json') as f:\n    data = json.load(f)\ntransformed = [item.upper() if isinstance(item, str) else item for item in data]\nwith open('output.json', 'w') as f:\n    json.dump(transformed, f, indent=2)\nprint('Transformation complete')\nEOF\")\n```\n\n## Limitations\n\n- run_shell executes in the shell environment, not the sandbox - ensure paths and dependencies are available\n- Output is limited to stdout\u002Fstderr - use file writes for large data\n- Complex multi-file projects may require creating temporary script files first","# Run Shell Fallback Pattern\n\nThis skill provides a reliable workaround when `execute_code_sandbox` or `read_file` fail with 'unknown error' by switching to `run_shell` with inline Python code.\n\n## When to Use\n\nApply this pattern when you encounter:\n- `execute_code_sandbox` fails with \"unknown error\" or timeout\n- `read_file` fails to read accessible files with \"unknown error\"\n- Sandbox environment is unreliable for your specific task\n\n## How to Implement\n\n### 1. File Reading Fallback\n\nWhen `read_file` fails, use `run_shell` with Python or `cat`:\n\n**For text files:**\n```bash\nrun_shell(command=\"cat \u002Fpath\u002Fto\u002Ffile.txt\")\n```\n\n**For structured parsing (Python one-liner):**\n```bash\nrun_shell(command=\"python3 -c \\\"import json; print(json.load(open('\u002Fpath\u002Fto\u002Ffile.json')))\\\"\")\n```\n\n**For multi-line Python processing:**\n```bash\nrun_shell(command=\"python3 \u003C\u003C 'EOF'\nwith open('\u002Fpath\u002Fto\u002Ffile.txt', 'r') as f:\n    content = f.read()\n    # Process content here\n    print(content.upper())\nEOF\")\n```\n\n### 2. Code Execution Fallback\n\nWhen `execute_code_sandbox` fails, use `run_shell` with inline Python:\n\n**Simple one-liners:**\n```bash\nrun_shell(command=\"python3 -c \\\"print('Hello'); import os; print(os.getcwd())\\\"\")\n```\n\n**Multi-line scripts (heredoc):**\n```bash\nrun_shell(command=\"python3 \u003C\u003C 'EOF'\nimport os\nimport json\n\ndef process_data(data):\n    return {k: v.upper() if isinstance(v, str) else v for k, v in data.items()}\n\nwith open('input.json') as f:\n    data = json.load(f)\n    \nresult = process_data(data)\nprint(json.dumps(result, indent=2))\nEOF\")\n```\n\n**With inline file write:**\n```bash\nrun_shell(command=\"python3 \u003C\u003C 'EOF'\nresult = {'status': 'success', 'count': 42}\nwith open('output.json', 'w') as f:\n    json.dump(result, f, indent=2)\nprint('File written successfully')\nEOF\")\n```\n\n### 3. Decision Flow\n\n```\n1. Attempt execute_code_sandbox or read_file\n2. If failure with 'unknown error':\n   a. Determine task type (code execution vs file reading)\n   b. Choose inline Python approach (-c for simple, heredoc for complex)\n   c. Execute via run_shell\n   d. Parse output as needed\n3. Continue with task using results from run_shell\n```\n\n## Best Practices\n\n1. **Escape quotes properly** in `-c` commands: Use `\\\"` for double quotes inside the command string\n\n2. **Use heredoc for complex scripts**: When code exceeds 2-3 lines or needs multiple imports, use `\u003C\u003C 'EOF'` syntax\n\n3. **Quote EOF marker**: Use `\u003C\u003C 'EOF'` (with quotes) to prevent variable expansion in the heredoc\n\n4. **Capture stdout**: Design your inline Python to print results to stdout for easy capture\n\n5. **Error handling**: Add try\u002Fexcept blocks in your inline Python to catch and report errors clearly\n\n6. **File paths**: Use absolute paths when possible, or ensure working directory is correct\n\n## Examples\n\n### Example 1: Read and parse JSON after read_file failure\n```bash\nrun_shell(command=\"python3 -c \\\"import json; data=json.load(open('config.json')); print(data['key'])\\\"\")\n```\n\n### Example 2: Process CSV data after execute_code_sandbox failure\n```bash\nrun_shell(command=\"python3 \u003C\u003C 'EOF'\nimport csv\nwith open('data.csv', 'r') as f:\n    reader = csv.DictReader(f)\n    rows = list(reader)\n    print(f\\\"Total rows: {len(rows)}\\\")\n    for row in rows[:5]:\n        print(row)\nEOF\")\n```\n\n### Example 3: Transform and write output file\n```bash\nrun_shell(command=\"python3 \u003C\u003C 'EOF'\nimport json\nwith open('input.json') as f:\n    data = json.load(f)\ntransformed = [item.upper() if isinstance(item, str) else item for item in data]\nwith open('output.json', 'w') as f:\n    json.dump(transformed, f, indent=2)\nprint('Transformation complete')\nEOF\")\n```\n\n## Limitations\n\n- run_shell executes in the shell environment, not the sandbox - ensure paths and dependencies are available\n- Output is limited to stdout\u002Fstderr - use file writes for large data\n- Complex multi-file projects may require creating temporary script files first",{"name":5,"description":7},"main","0650921d63895de3997bc81f1ff1d0ac67032072","gdpval_bench\u002Fskills\u002Frun-shell-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":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add UF-gzj\u002Fopenspace-claude-evolution --skill run-shell-fallback",{"tool":50,"command":51},"bunx","bunx skills add UF-gzj\u002Fopenspace-claude-evolution --skill run-shell-fallback",{"tool":53,"command":54},"pnpm","pnpm dlx skills add UF-gzj\u002Fopenspace-claude-evolution --skill run-shell-fallback","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Frun-shell-fallback\u002FSKILL.md",true,[58],{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},".skill_id","OTHER","其他",32,"https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Frun-shell-fallback\u002F.skill_id",[65,88,103,111,141,157],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":33},"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",[],[72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,25,22],"check","write","write special chars ts check","typescript","filters","characters","Existing","type-checking","for","errors","script","output","type","files","only","template",{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":33},"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",[],[95,96,73,25,97,22,98,99,100,101,26,87,102,30,77,80,82],"readback","write special chars readback","helper","post","via","scripts","cleanup","verification",{"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":33},"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,73,77,19,82,99,87,25,22,80],"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":33},"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,75,128,129,130,131,132,80,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":33},"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,80,152,30,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":33},"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,25,170,171,172],"directory","verify directory structure","structure","verify","access","first","issues","diagnose","file access"]