claude

refactoring

10 refactoring skills from Refactoring: Improving the Design of Existing Code by Martin Fowler — code smell diagnosis, method decomposition, conditional simplification, class responsibility realignment, data organization, type code refactoring, test suite construction, performance optimization, readiness assessment, and big refactoring planning.

42 on GitHubby BookForgev1.0.0CC-BY-SA-4.0updated 6 months ago

Not in a marketplace yet, so it loads for one session with --plugin-dir.

Plugin refactoring in bookforge-ai/bookforge-skills. Commands read from the repo's manifest — 1 month ago.

This plugin runs code on your machine — its hooks fire automatically on events like tool use. The exact commands are listed below; read them before installing.

What it installs

Skills (10)

  • big-refactoring-planner

    Plan and execute architectural-scale refactoring campaigns that take weeks to months — the four named patterns for large-scale structural restructuring from Fowler and Beck's Chapter 12. Use when: an inheritance hierarchy is doing two distinct jobs and subclass names share the same adjective prefix

  • build-refactoring-test-suite

    Build a sufficient automated test suite before refactoring existing code by applying a 6-step sequential construction workflow (test class → fixture → normal behavior → boundary conditions → expected errors → green-suite gate) and a bug-fix variant (write failing test first → reproduce → fix → verif

  • class-responsibility-realignment

    Redistribute methods and fields to the classes that own them, repair broken inheritance hierarchies, and extend unmodifiable library classes. Use when: a method uses another class's data far more than its own (Feature Envy — the method belongs in the other class); a single logical change forces edit

  • code-smell-diagnosis

    Scan a codebase or code fragment for the 22 named code smells from Fowler's refactoring catalog and produce a prioritized diagnosis report with the specific refactoring prescription for each smell. Use when: a developer wants to know what is wrong with existing code before touching it; a code review

  • conditional-simplification-strategy

    Select and apply the correct refactoring for complex or tangled conditional logic. Use when: a method has a complicated if-then-else that obscures why branching happens (not just what happens); a series of conditions all produce the same result; the same code fragment appears inside every branch; a

  • data-organization-refactoring

    Apply the correct data organization refactoring when code smells in data structure design are diagnosed — Primitive Obsession, Data Clumps, Data Class, or raw structural anti-patterns like magic numbers, positional arrays, and naked public fields. Covers the full Chapter 8 catalog: Replace Data Valu

  • method-decomposition-refactoring

    Decompose long, tangled methods into clean, composable units using the 9 composing-method refactorings from Fowler's catalog. Use when: a method has grown too long to understand at a glance; code contains a comment that explains what a block does (the comment is a signal to extract); a method cannot

  • profiling-driven-performance-optimization

    Optimize code performance by first refactoring to a well-factored structure, then running a profiler to find actual hot spots, and applying targeted optimizations only where the profiler points — never by guessing. Use this skill when users report the program is too slow, before any performance work

  • refactoring-readiness-assessment

    Assess whether a codebase situation warrants refactoring and determine the right approach before any structural changes begin. Use this skill when a developer is about to modify existing code and needs to decide: should I refactor first, refactor not at all, or rewrite entirely? Triggers include: de

  • type-code-refactoring-selector

    Select and execute the correct refactoring path for type codes — enumerations, integer constants, or string tags that flag object variants (e.g., ENGINEER/SALESMAN/MANAGER as ints, blood group as 0/1/2/3, ORDER_STATUS as strings). Applies Fowler's three-way decision tree to pick between Replace Type

Hooks (1)

  • SessionStart

    ${CLAUDE_PLUGIN_ROOT}/hooks/session-start

View source on GitHub

More from bookforge-ai/bookforge-skills

All 23 plugins →

16 skills for enterprise application architecture: pattern-family selectors, pattern implementers, and audit skills — extracted from Patterns of Enterprise Application Architecture by Martin Fowler.

16 skills · hooks

42

16 legacy code skills from Working Effectively with Legacy Code by Michael C. Feathers — the Legacy Code Change Algorithm, seam type selection, characterization test writing, dependency-breaking techniques, monster method decomposition, big class extraction, and more

16 skills · hooks

42

15 design pattern skills from Design Patterns: Elements of Reusable Object-Oriented Software

15 skills · hooks

42

14 agent skills for building secure and reliable systems — threat modeling, secure design, least-privilege access, blast radius containment, code review, deployment pipelines, incident response, and disaster recovery. From Building Secure and Reliable Systems by Adkins, Beyer, Blankinship, Lewandowski, Oprea, Stubblefield.

14 skills · hooks

42

Similar plugins

serena

claude

Semantic code analysis MCP server providing intelligent code understanding, refactoring suggestions, and codebase navigation through language server protocol integration.

1 MCP server

anthropics/claude-plugins-official 47,076

Test-driven development methodology with red-green-refactor cycles and code review

4 commands · 2 agents

wshobson/agents 42,461

Active coding discipline enforcer based on Karpathy's 4 principles: surface assumptions, simplify, make surgical changes, define verifiable goals. Ships 4 Python tools (complexity_checker, diff_surgeon, assumption_linter, goal_verifier), a review agent, /karpathy-check command, and pre-commit hook. All stdlib-only.

1 skill · 1 command · 1 agent

alirezarezvani/claude-skills 29,725

Agent coordination and meta-programming - multi-agent orchestration, workflow automation, and safe refactor governance. Works best with other voltagent plugins installed.

VoltAgent/awesome-claude-code-subagents 26,513

sepia

claudecodex

Installs the general Sepia router plus five separate entries: sepia-write, sepia-review, sepia-refactor, sepia-recreate, and sepia-hemingway.

6 skills

Nanako0129/sepia 3,799

13 MIT-licensed SKILL.md skills for everyday developer work: review-my-diff, repro-first-debugging, pr-description, safe-refactor, dependency-upgrade (shows the target version and files and waits for a yes before changing anything), explain-codebase, security-quick-review, prove-it-ran (make the agent show real test output before saying done), session-handoff, brag-doc-from-git, write-agents-md, agents-md-audit (with a small read-only Python audit script) and write-subagent. Skills only: no hooks, no MCP servers, no settings, no network calls.

13 skills

davepoon/buildwithclaude 3,741

Maintain refactoring?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex plugins23 plugins