← 返回 Skills 市场
OpenClaw Refactoring
作者
michealxie001
· GitHub ↗
· v1.1.0
· MIT-0
94
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install oc-refactoring
功能描述
Automated refactoring assistant. Performs safe code transformations including rename, extract method, inline variable, and move code. Provides refactoring su...
安全使用建议
This package appears to be a local refactoring tool for Python that creates backups and edits files. Before installing/using it: 1) Note that SKILL.md references files (extract.py, utils.py) that are missing — some advertised features may be unimplemented. 2) The suggestion engine will try to load a C parser from a sibling 'c-support/lib' directory on disk — check where that would point in your environment so it doesn't unexpectedly import unrelated code. 3) Always run with --dry-run first and use a Git repo (or a copy of your project) so you can inspect changes and backups under .refactoring/backup. 4) Inspect the actual scripts in this package before running them on important repositories. If you need the (claimed) C/C++ support, obtain and inspect the c-support dependency from a trusted source; do not rely on implicit imports from arbitrary sibling directories. If you want a cleaner install surface, prefer a packaged tool (pip/brew) from a trusted registry or run this in an isolated environment.
功能分析
Type: OpenClaw Skill
Name: oc-refactoring
Version: 1.1.0
The skill bundle provides a legitimate automated refactoring tool for Python and C/C++ code. It includes functionality for renaming symbols, generating refactoring suggestions based on code smells (e.g., complexity, long methods), and managing backups for undoing changes. The code uses standard libraries like `ast` for parsing and `shutil` for file operations, with no evidence of malicious intent, data exfiltration, or unauthorized execution.
能力评估
Purpose & Capability
The name/description match the shipped code for Python renames and suggestions. However SKILL.md lists additional modules (extract.py, utils.py) that are not present in the file manifest; the roadmap also marks many features unimplemented. This mismatch suggests the documentation overclaims features or files were omitted from the package.
Instruction Scope
Runtime instructions are primarily local CLI operations (preview, backup, undo) which is appropriate. However suggest.py attempts to import a C parser from a sibling 'c-support/lib' outside the skill directory (Path(__file__).parent.parent.parent / 'c-support' / 'lib'), which means the skill will try to load code from nearby filesystem locations not declared in the manifest. SKILL.md also instructs use of git stash/commit (which can modify the repo); while the tool itself doesn't appear to run git automatically, users following the instructions will alter their repositories. No network calls or credential access are present.
Install Mechanism
No install spec; this is instruction+script only and doesn't download or execute remote archives. That's low-risk from an installation perspective.
Credentials
The skill declares no required environment variables, no credentials, and no config paths. The code likewise does not request secrets or network credentials. It writes backups under the project (.refactoring/backup) which is proportionate to its function.
Persistence & Privilege
The skill is not force-enabled (always:false) and does not modify other skills or global agent settings. It creates local backups and can undo changes; those are normal for a refactoring tool.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install oc-refactoring - 安装完成后,直接呼叫该 Skill 的名称或使用
/oc-refactoring触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
Added C/C++ support: refactoring suggestions, magic number detection, goto detection
元数据
常见问题
OpenClaw Refactoring 是什么?
Automated refactoring assistant. Performs safe code transformations including rename, extract method, inline variable, and move code. Provides refactoring su... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 94 次。
如何安装 OpenClaw Refactoring?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install oc-refactoring」即可一键安装,无需额外配置。
OpenClaw Refactoring 是免费的吗?
是的,OpenClaw Refactoring 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
OpenClaw Refactoring 支持哪些平台?
OpenClaw Refactoring 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 OpenClaw Refactoring?
由 michealxie001(@michealxie001)开发并维护,当前版本 v1.1.0。
推荐 Skills