Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By jskswamyv1.3.1In 1 marketplace
Semantic refactoring opportunity detection. Scans committed code for structural duplication (Fowler catalog), code smells (Fowler/Beck), GoF design pattern opportunities, SOLID/DRY principle violations, and language-idiomatic anti-patterns (Go, Python, TypeScript). Creates beads issues with TDD-first refactoring plans. Run on demand with /refactor:scan.
Claude hands work to one, or you mention it with @.
1 marketplace, most starred first
refactoring, duplication, fowler, beads, codebase-memory, tdd, semantic-search
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Semantic refactoring opportunity detection for Claude Code. On demand (for example after a task completes), scans committed code against the codebase-memory index to find cross-package duplication, code smells, and design pattern opportunities. Creates actionable beads issues with TDD-first refactoring plans.
PATH. Scans and scanner agents prefer MCP and automatically fall back to codebase-memory-mcp cli when MCP is missing or unreachable./codebase:index to ensure the index is fresh./craft:build automatically runs /refactor:scan --scope diff before closing a story, or you can run /refactor:scan manually at any time./refactor:scan # scan changes since upstream
/refactor:scan --base abc1234 # scan changes since specific SHA
/craft:build/craft:build runs /refactor:scan --scope diff on the story's commit range, filters candidates with ponytail, and lets you fix findings immediately or park them as wisps via /craft:park.
any type, manual null guards, .then() chainsScanner agent queries codebase-memory-mcp for semantic similarity + analyzes the diff for structural patterns. Provides breadth — covers the entire codebase cheaply via the index.
Validator agent reads actual source files for confirmed candidates. Provides depth — checks test coverage, deduplicates against existing issues, creates beads issues with TDD-first plans.
Refactoring scan complete.
Issues created:
beads-xxx P2 Extract writeJSON to internal/framework
beads-yyy P3 Parameterize FaultParam as generic FaultParam[T]
Dismissed (false positives): 1
Deferred (trivial): 0
Each created issue includes:
Beyond the default diff-anchored scan, /refactor:scan supports two broader scopes:
/refactor:scan --scope=package internal/api
/refactor:scan --scope=all
Both scopes produce architectural beads issues (root-cause findings that group many surface-level symptoms), not per-symptom issues. The pipeline is:
--scope=all) reads the codebase-memory-mcp index and writes raw candidates to .refactor-scan/<ts>/candidates/<pkg>.yaml..refactor-scan/<ts>/findings.md.findings.md to keep, drop, or promote findings. Reply proceed to continue or abort to stop.--notes.If a session drops mid-scan, just re-run /refactor:scan (with the same scope). The command auto-detects the in-flight working dir and offers to resume from the right stage:
| State on disk | Resume action |
|---|---|
candidates/*.yaml exist, no findings.md | Resume from synthesis |
findings.md exists, no .proceeded | Resume at review gate |
.proceeded exists, no .completed | Resume at validator (skips already-created issues) |
.completed exists | Print final report |
Use --fresh to force a new scan instead of resuming. Use --clean to remove completed scans older than 30 days.
npx claudepluginhub jskswamy/skills --plugin refactorBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground