Wirasm

Refactor Simple — Code Quality skill for Claude Code

Code Quality community

Quick refactoring check for Python code focusing on.

How to install Refactor Simple

Installs to ~/.claude/commands/wirasm-mcp-crawl4ai-rag-refactor-simple.md

Terminal
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:

  1. Functions >20 lines that need decomposition
  2. long files that need decomposition
  3. Missing Pydantic models for I/O
  4. Cross-feature imports violating vertical slices
  5. Classes with multiple responsibilities
  6. 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 Repository