[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XBWPE9VSKHMSNZREA1SYBX":3,"skill-same:01M6XBWPE9VSKHMSNZREA1SYBX":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},"01M6XBWPE9VSKHMSNZREA1SYBX","python-shell-workaround",null,"Workaround for executing Python code with external packages when sandbox fails","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\u002Fpython-shell-workaround\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27],"python","shell","python shell workaround","sandbox","packages","code","with","python code","for","when","2026-11-10 10:12:30",false,"---\nname: python-shell-workaround\ndescription: Workaround for executing Python code with external packages when sandbox fails\n---\n\n# Python Shell Workaround\n\n## When to Use This Skill\n\nUse this pattern when `execute_code_sandbox` fails with Python code that requires external packages (like `openpyxl`, `python-docx`, `pandas`, etc.) that may not be available in the sandbox environment.\n\n## The Pattern\n\nInstead of relying solely on `execute_code_sandbox`, use `run_shell` with inline Python commands as a fallback:\n\n```bash\npython3 -c \"your python code here\"\n```\n\n## Step-by-Step Instructions\n\n### Step 1: Detect Sandbox Failure\n\nWatch for errors like:\n- ModuleNotFoundError for common packages\n- Import errors for external libraries\n- Sandbox environment limitations\n\n### Step 2: Convert Python Code to Shell Command\n\nTransform your Python script into a one-liner or use a heredoc for longer scripts:\n\n**For simple code:**\n```bash\npython3 -c \"import openpyxl; wb = openpyxl.Workbook(); wb.save('file.xlsx')\"\n```\n\n**For complex code (using heredoc):**\n```bash\npython3 \u003C\u003C 'EOF'\nimport openpyxl\nfrom openpyxl.utils import get_column_letter\n\nwb = openpyxl.Workbook()\nws = wb.active\nws['A1'] = 'Header'\nwb.save('output.xlsx')\nprint('File created successfully')\nEOF\n```\n\n### Step 3: Execute with run_shell\n\nUse `run_shell` to execute the command:\n\n```\ntool: run_shell\ncommand: python3 -c \"import openpyxl; print('Package available')\"\n```\n\n### Step 4: Verify Output\n\nCheck the stdout\u002Fstderr from run_shell to confirm success, then proceed with subsequent steps.\n\n## Best Practices\n\n1. **Escape quotes properly**: Use single quotes inside double-quoted strings or vice versa\n2. **Use heredocs for multiline code**: Cleaner and easier to debug\n3. **Install packages if needed**: Add `pip install package` before your Python command if packages are missing\n4. **Chain commands safely**: Use `&&` to ensure prerequisites succeed before running Python code\n\n## Example Scenarios\n\n### Creating Excel Files\n```bash\npython3 \u003C\u003C 'EOF'\nimport openpyxl\nfrom openpyxl.worksheet.datavalidation import DataValidation\n\nwb = openpyxl.Workbook()\nws = wb.active\nws.title = \"Data\"\n\n# Add headers\nheaders = ['Name', 'Email', 'Status']\nfor col, header in enumerate(headers, 1):\n    ws.cell(row=1, column=col, value=header)\n\nwb.save('output.xlsx')\nEOF\n```\n\n### Creating Word Documents\n```bash\npython3 -c \"\nfrom docx import Document\ndoc = Document()\ndoc.add_heading('Report', 0)\ndoc.save('report.docx')\nprint('Document created')\n\"\n```\n\n## Limitations\n\n- Complex multiline scripts are harder to maintain as one-liners\n- Debugging is less convenient than in sandbox\n- Some packages may still not be available in the shell environment\n\n## Related Patterns\n\n- If packages are truly unavailable, consider installing them first: `pip install package_name && python3 -c \"...\"`\n- For persistent scripts, write to a `.py` file first, then execute with `python3 script.py`","# Python Shell Workaround\n\n## When to Use This Skill\n\nUse this pattern when `execute_code_sandbox` fails with Python code that requires external packages (like `openpyxl`, `python-docx`, `pandas`, etc.) that may not be available in the sandbox environment.\n\n## The Pattern\n\nInstead of relying solely on `execute_code_sandbox`, use `run_shell` with inline Python commands as a fallback:\n\n```bash\npython3 -c \"your python code here\"\n```\n\n## Step-by-Step Instructions\n\n### Step 1: Detect Sandbox Failure\n\nWatch for errors like:\n- ModuleNotFoundError for common packages\n- Import errors for external libraries\n- Sandbox environment limitations\n\n### Step 2: Convert Python Code to Shell Command\n\nTransform your Python script into a one-liner or use a heredoc for longer scripts:\n\n**For simple code:**\n```bash\npython3 -c \"import openpyxl; wb = openpyxl.Workbook(); wb.save('file.xlsx')\"\n```\n\n**For complex code (using heredoc):**\n```bash\npython3 \u003C\u003C 'EOF'\nimport openpyxl\nfrom openpyxl.utils import get_column_letter\n\nwb = openpyxl.Workbook()\nws = wb.active\nws['A1'] = 'Header'\nwb.save('output.xlsx')\nprint('File created successfully')\nEOF\n```\n\n### Step 3: Execute with run_shell\n\nUse `run_shell` to execute the command:\n\n```\ntool: run_shell\ncommand: python3 -c \"import openpyxl; print('Package available')\"\n```\n\n### Step 4: Verify Output\n\nCheck the stdout\u002Fstderr from run_shell to confirm success, then proceed with subsequent steps.\n\n## Best Practices\n\n1. **Escape quotes properly**: Use single quotes inside double-quoted strings or vice versa\n2. **Use heredocs for multiline code**: Cleaner and easier to debug\n3. **Install packages if needed**: Add `pip install package` before your Python command if packages are missing\n4. **Chain commands safely**: Use `&&` to ensure prerequisites succeed before running Python code\n\n## Example Scenarios\n\n### Creating Excel Files\n```bash\npython3 \u003C\u003C 'EOF'\nimport openpyxl\nfrom openpyxl.worksheet.datavalidation import DataValidation\n\nwb = openpyxl.Workbook()\nws = wb.active\nws.title = \"Data\"\n\n# Add headers\nheaders = ['Name', 'Email', 'Status']\nfor col, header in enumerate(headers, 1):\n    ws.cell(row=1, column=col, value=header)\n\nwb.save('output.xlsx')\nEOF\n```\n\n### Creating Word Documents\n```bash\npython3 -c \"\nfrom docx import Document\ndoc = Document()\ndoc.add_heading('Report', 0)\ndoc.save('report.docx')\nprint('Document created')\n\"\n```\n\n## Limitations\n\n- Complex multiline scripts are harder to maintain as one-liners\n- Debugging is less convenient than in sandbox\n- Some packages may still not be available in the shell environment\n\n## Related Patterns\n\n- If packages are truly unavailable, consider installing them first: `pip install package_name && python3 -c \"...\"`\n- For persistent scripts, write to a `.py` file first, then execute with `python3 script.py`",{"name":5,"description":7},"main","0650921d63895de3997bc81f1ff1d0ac67032072","gdpval_bench\u002Fskills\u002Fpython-shell-workaround","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 python-shell-workaround",{"tool":45,"command":46},"bunx","bunx skills add UF-gzj\u002Fopenspace-claude-evolution --skill python-shell-workaround",{"tool":48,"command":49},"pnpm","pnpm dlx skills add UF-gzj\u002Fopenspace-claude-evolution --skill python-shell-workaround","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpython-shell-workaround\u002FSKILL.md",true,[53],{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},".skill_id","OTHER","其他",37,"https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpython-shell-workaround\u002F.skill_id",[60,83,99,107,132,148],{"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,26,75,76,77,78,79,80,81,82,18],"check","write","write special chars ts check","typescript","filters","characters","Existing","type-checking","errors","script","output","type","files","only","template","file",{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"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",[],[90,91,68,82,92,18,93,94,95,96,97,81,98,24,72,26,76],"readback","write special chars readback","helper","post","via","scripts","cleanup","read","verification",{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"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",[],[106,68,72,19,76,94,81,82,18,26],"write special chars heredoc",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"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",[],[114,115,116,117,118,70,119,120,121,122,123,26,124,125,126,127,128,129,130,131],"reference","worldmonitor","worldmonitor reference","architecture","dashboard","css","scheduler","layer","hierarchy","source","extracting","panel","patterns","edge functions","integrations","open","api","data",{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":138,"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",[],[139,140,141,142,26,143,24,144,145,146,147],"virtual list","list","virtual","chunk","dom","rendering","recycling","implement","performance",{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"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",[],[155,156,157,158,159,160,82,161,162,163],"directory","verify directory structure","structure","verify","access","first","issues","diagnose","file access"]