用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/HKUDS/OpenSpace --skill fallback-code-execution命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Incremental audio production with duration mismatch handling, adaptive stem extension, and pre-mix alignment verification
Audio production with diagnostic analysis, timecode parsing from documents, and verified export workflow
Incremental audio production with duration alignment handling, per-stem verification, and adaptive extension strategies
基于 SOC 职业分类
正在显示 SKILL.md
| name | fallback-code-execution |
| description | Fallback workflow for running code via file write and shell when sandbox execution fails |
This skill defines a robust workaround for executing code (specifically Python) when the primary execute_code_sandbox tool fails repeatedly with unknown or transient errors. Instead of continuing to retry the failing tool, the agent switches to a manual file-write and shell-execution pattern.
Activate this workflow when:
execute_code_sandbox fails 2 or more times consecutively for the same logic.Use the write_file tool to save the Python script to a specific path in the workspace.
.py (e.g., scripts/generate_report.py).requirements.txt is updated or installed via shell beforehand.Example:
tool: write_file
path: workspace/scripts/process_data.py
content: |
import sys
# ... script logic ...
print("Success")
Use the run_shell tool to execute the script using the system Python interpreter.
python3 <path_to_script> or python <path_to_script>.Example:
tool: run_shell
command: python3 scripts/process_data.py
0.__file__ to avoid working directory issues.print() statements in the Python script to log progress, as shell output capture is sometimes more reliable than sandbox return values.Problem: execute_code_sandbox times out while generating a PDF.
Solution:
generate_pdf.py to workspace/scripts/.python3 workspace/scripts/generate_pdf.py via run_shell.output.pdf exists in the workspace.