Tooluck logoTooluck
SKILL.md

refactoring

Agent skill fromciembor/agent-rules-books

Apply Martin Fowler-inspired refactoring rules when improving existing code structure while preserving observable behavior.

How to install refactoring

install refactoring
# install the agent-rules-books pack with the skills CLI
npx skills add ciembor/agent-rules-books

# or add only this skill to Claude Code: copy the folder

refactoring/

# into

~/.claude/skills/refactoring/ (all projects)

.claude/skills/refactoring/ (one project)

refactoring/SKILL.md

MITFull file
1# Refactoring Skill
2
3Use this skill when a task involves behavior-preserving code improvement, code smells, small refactoring steps, test-backed cleanup, or separating refactoring from feature changes.
4
5Before making design or code decisions, read and apply [refactoring.mini.md](refactoring.mini.md). Use [refactoring.md](refactoring.md) only as a deeper reference when the mini rules are not enough for the current refactoring tradeoff.

Excerpt shown under the repository's MIT license.

More skills in agent-rules-books

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates