← Back to Skills Marketplace
michealxie001

OpenClaw Refactoring

by michealxie001 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
102
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install openclaw-refactoring
Description
Automated refactoring assistant. Performs safe code transformations including rename, extract method, inline variable, and move code. Provides refactoring su...
Usage Guidance
What to consider before installing/running: - The implementation appears to provide a Python rename engine and a suggestion engine only. SKILL.md advertises many more features (extract, inline, move, batch-move, JS support) and references files (extract.py, utils.py) that are not present. Do not assume those extra features exist. - Test on a disposable/git branch first. Always run with --dry-run (preview) and ensure Git is used (stash/commit) before executing destructive operations. - The tool writes backups under .refactoring/backup — verify backups are created and that undo works before relying on it for large changes. - The rename implementation uses AST plus fallback text-search and performs column-offset text substitutions; this can be brittle for edge cases (strings, generated code, complex formatting). Run your test suite after refactors. - If you require extract/inline/move or JavaScript support, inspect the repository or contact the publisher — these features are documented but not implemented in the provided code. - If anything in the output looks unexpected (modifications outside your intended scope), stop and restore from backup/Git. If you want higher assurance, manually review the code in scripts/rename.py and scripts/suggest.py before running.
Capability Analysis
Type: OpenClaw Skill Name: openclaw-refactoring Version: 1.0.0 The 'openclaw-refactoring' skill bundle is a legitimate tool for automated code refactoring. It uses Python's AST module and regex to identify and rename symbols, provide code smell suggestions, and manage backups for undo operations. The code (main.py, rename.py, suggest.py) relies exclusively on the Python standard library, contains no network activity, and includes safety features like dry-run modes and file backups.
Capability Assessment
Purpose & Capability
The skill claims multiple refactoring features (rename, extract method, inline, move, batch operations, multi-language support) in SKILL.md, but the shipped code implements primarily a Python rename engine and a suggestion engine. The SKILL.md mentions additional scripts (extract.py, utils.py) and commands (extract, inline, move, batch-move) that are not present or not implemented in scripts/main.py. This is a mismtach between advertised capability and actual implementation.
Instruction Scope
Runtime instructions are local (run python scripts against your repo), create backups under .refactoring/backup, and recommend Git integration and dry-run. Those instructions are within scope for a refactoring tool. However the docs show CLI flags and commands (e.g. --symbol/--to, extract, inline) that differ from the actual main.py interface (which uses --old-name/-o and --new-name/-n and does not implement extract/inline/move subcommands). The mismatch could lead a user to run commands that don't exist or to expect behavior not implemented.
Install Mechanism
There is no install specification (instruction-only skill with bundled scripts). Nothing is downloaded or written by an installer step beyond the included files, so install mechanism risk is low.
Credentials
The skill requires no environment variables, no credentials, and no special config paths. Its file I/O is limited to scanning and modifying files under the provided root and writing backups under .refactoring/backup, which is proportionate to a refactoring tool.
Persistence & Privilege
The skill is not always-included and doesn't request system-level privileges. It creates backups in a local .refactoring directory and can undo changes; this is expected behavior for an on-disk refactoring tool and does not modify other skills or system-wide config.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install openclaw-refactoring
  3. After installation, invoke the skill by name or use /openclaw-refactoring
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Automated refactoring with rename, suggestions, and undo support. Python AST-based analysis.
Metadata
Slug openclaw-refactoring
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is OpenClaw Refactoring?

Automated refactoring assistant. Performs safe code transformations including rename, extract method, inline variable, and move code. Provides refactoring su... It is an AI Agent Skill for Claude Code / OpenClaw, with 102 downloads so far.

How do I install OpenClaw Refactoring?

Run "/install openclaw-refactoring" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is OpenClaw Refactoring free?

Yes, OpenClaw Refactoring is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does OpenClaw Refactoring support?

OpenClaw Refactoring is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created OpenClaw Refactoring?

It is built and maintained by michealxie001 (@michealxie001); the current version is v1.0.0.

💬 Comments