← 返回 Skills 市场
147
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install code-run-auto-fix
功能描述
自动运行并调试 Python、C 和 x86_64 汇编代码,错误时自动修复并返回可执行版本。
使用说明 (SKILL.md)
代码自动执行与修复 Skill\r
\r
功能介绍\r
支持自动运行 Python / C / 汇编代码,捕获报错后使用龙虾平台内置 LLM 自动修复,并直接返回修复后的完整代码,实现代码运行-报错-修复-更新全自动化闭环。\r \r
支持语言\r
- Python\r
- C 语言\r
- x86_64 汇编\r \r
提供工具\r
- run_python:执行并自动修复 Python 代码\r
- run_c:编译、执行并自动修复 C 代码\r
- run_assembly:汇编、链接、执行并自动修复 x86_64 汇编代码\r \r
使用说明\r
用户传入代码 → 自动运行 → 捕获错误 → 龙虾 LLM 修复 → 返回最终可运行代码
安全使用建议
This skill does what it says (runs and auto-fixes code), but be cautious: it executes arbitrary user-supplied programs (compiled C/assembly and Python) on the host. Before installing, consider: 1) Only run this in an isolated, sandboxed environment (container/VM) because binaries could read files, access network, or perform malicious actions. 2) Require the registry metadata to list required system binaries (python3, gcc, nasm, ld) so you can ensure they exist in the sandbox. 3) Ask the publisher to document any resource limits (timeouts, memory), the exact behavior of clawhub.llm.generate, and whether the platform enforces sandboxing. 4) If you cannot guarantee isolation, do not install or invoke this skill with untrusted code. The mismatch between declared dependencies and actual runtime requirements is the main incoherence here.
功能分析
Type: OpenClaw Skill
Name: code-run-auto-fix
Version: 1.0.0
The skill provides tools (run_python, run_c, run_assembly in skill.py) designed to execute arbitrary code and automatically 'fix' it using an LLM. While this behavior is consistent with the stated purpose in SKILL.md, the capability to compile and run C and Assembly code, combined with an automated execution loop based on LLM-generated output, creates a high-risk environment for arbitrary code execution. No evidence of intentional malice, such as data exfiltration or hardcoded backdoors, was found.
能力评估
Purpose & Capability
The skill implements running and repairing Python, C, and x86_64 assembly by writing temp files, invoking python3, gcc, nasm, ld, linking and executing binaries — this is consistent with the stated purpose. However, the registry metadata claims no required system binaries while the code clearly depends on python3, gcc, nasm, ld (and a working linker). The missing declaration of these runtime dependencies is an incoherence and should be corrected.
Instruction Scope
SKILL.md and the code instruct the agent to accept arbitrary user code, execute it, capture errors, call clawhub.llm to produce fixed code, then execute again. The instructions do not mention any sandboxing, I/O/network restrictions, or resource limits beyond a default subprocess timeout. Running arbitrary compiled code on the host can access files, network, and other resources — the scope is broader than the SKILL.md documents (no safety/sandbox guidance).
Install Mechanism
There is no install spec (instruction-only/MCP script) which reduces installation risk. requirements.txt lists mcp[server] and clawhub — expected for an MCP skill that calls clawhub.llm. No downloads from external URLs or archive extraction are present. Still, the skill will rely on host-provided native tools (gcc, nasm, ld, python3) at runtime, which are not declared in the registry metadata.
Credentials
The skill does not request any environment variables or external credentials in requires.env, which is proportionate. It calls clawhub.llm.generate — likely relying on the platform's internal LLM bindings rather than explicit API keys, which can be acceptable but should be documented. There are no declared secrets, but the skill's runtime behavior (executing arbitrary code) creates high potential for data exposure even without explicit credential requests.
Persistence & Privilege
always is false and the skill does not request elevated or persistent platform privileges. It registers three tools via an MCP server and runs as a normal skill process. It does write temporary files and deletes them; it does not modify other skills or global agent config.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install code-run-auto-fix - 安装完成后,直接呼叫该 Skill 的名称或使用
/code-run-auto-fix触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
自动运行 Python / C / 汇编代码,捕获报错后使用龙虾内置 LLM 自动修复,并直接返回修复后的代码,实现代码自动纠错闭环。
元数据
常见问题
代码自动运行和修复 是什么?
自动运行并调试 Python、C 和 x86_64 汇编代码,错误时自动修复并返回可执行版本。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 147 次。
如何安装 代码自动运行和修复?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install code-run-auto-fix」即可一键安装,无需额外配置。
代码自动运行和修复 是免费的吗?
是的,代码自动运行和修复 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
代码自动运行和修复 支持哪些平台?
代码自动运行和修复 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 代码自动运行和修复?
由 zyk-404(@zyk-404)开发并维护,当前版本 v1.0.0。
推荐 Skills