Refactor Simple — Code Quality skill for Claude Code
Quick refactoring check for Python code focusing on.
How to install Refactor Simple
Installs to ~/.claude/commands/wirasm-mcp-crawl4ai-rag-refactor-simple.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/Wirasm/mcp-crawl4ai-rag/HEAD/.claude/commands/refactor-simple.md -o ~/.claude/commands/wirasm-mcp-crawl4ai-rag-refactor-simple.md Restart Claude Code, or start a new session, for it to be picked up.
What Refactor Simple does
Quick refactoring check for Python code focusing on:
- Vertical slice boundaries
- Function complexity
- Type safety with Pydantic v2
- Single responsibility
Scan for:
- Functions >20 lines that need decomposition
- long files that need decomposition
- Missing Pydantic models for I/O
- Cross-feature imports violating vertical slices
- Classes with multiple responsibilities
- Missing type hints
Desired architecture:
- Vertical slice boundaries
- Single responsibility
- Type safety with Py
Alternatives in Code Quality
- Refactor — We are about to refactor code 1.6k ★
- Refactor Claude Md — Refactor CLAUDE.md by extracting sections to dedicated docs with path-scoped rules 1.6k ★
- Claude Code Log — A Python CLI tool that converts Claude Code transcript JSONL files into readable HTML format 849 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Fowler Refactor Skill
Martin Fowler refactoring patterns agent skill for Claude Code / OpenCode
Refactor Safely
Plan and execute safe refactoring using dependency analysis
Twin Sparrow Code Quality Skill
Review, refactor, and harden code for correctness, maintainability, testability, and operational safety across
Logic Diff
Check two code versions for semantic equivalence — use after a refactor or rewrite
Cr Fx
Interactive remediation of code review findings using parallel specialist agents. Elicits user input at key de
Deepreview Quick
Token-efficient single-pass code review for small diffs
Related Agents
Simple Code Reviewer
Lightweight code reviewer for quick quality checks. Use PROACTIVELY after code changes to catch common issues.
Unity Fixer Lite
Quick bug fixes — for simple issues like missing references, typos, import errors, or obvious one-line fixes.
Architect Low
Quick code questions & simple lookups (Haiku)