/senior-dev-kit:refactor-safe [file or module to refactor]from Senior Dev Kit
Guides safe, behavior-preserving refactors with small diffs and test-first verification. Splits large changes into sequential steps and checks module boundaries.
Ships in Senior Dev Kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Behavior must be identical before and after. If tests don't exist: write them FIRST, then refactor.
One concern per diff: rename | move | extract | restructure — never combine two.
Run tests before edit, record baseline. Apply ONE mechanical transformation only. Run same tests after — must be identical pass/fail.
Diffs >150 lines → split into sequential mini-refactors. No features/bugfixes in same diff.
Read budget: refactored file + grep for symbol importers + existing test file. Imports updated across independent files → apply in one parallel batch.
Refactor that moves a module boundary (extract, restructure): run /arch-check before and after. The point of a boundary refactor is that violations go down — unmeasured, "cleaner" is an opinion.
Deep reference: ${CLAUDE_PLUGIN_ROOT}/agent_docs/testing-strategy.md (baseline coverage before refactor) · ${CLAUDE_PLUGIN_ROOT}/agent_docs/architecture.md (module boundary rules).
CONCERN: [rename | move | extract | restructure]
· [files changed — count]
TEST BEFORE: [N passed] → TEST AFTER: [N passed — ✓ identical]
RISK: low
What SKILL.md sets; muted values are Claude Code's defaults
Use automatically only when the change must leave behavior identical.
Three short reads, in order
npx claudepluginhub mtvrkan/senior-dev-kit --plugin senior-dev-kit30 skills in this plugin
/api-designUse for designing REST/GraphQL API contracts before implementing, and for planning breaking-change version transitions (v1→v2, deprecations). No code edits./bug-fixUse for localized bugs, runtime errors, white screens, failing tests, console errors, and regressions. Make the smallest safe fix./codebase-overviewUse to generate or refresh a codebase architecture overview — directory map, data flow, key component responsibilities — so future research reuses it instead of rediscovering the codebase.Other plugins' skills for the same job