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 smykla-skalskiv0.1.7MITIn 1 marketplace
Get a sequenced refactoring plan for a module, file or diff, reviewed through seven persona agents that disagree on purpose. A separate adversary agent red-teams the plan before it returns.
Trending plugins
7-day copy clicks
Claude hands work to one, or you mention it with @.
1 marketplace, most starred first
refactoring, code-smells, technical-debt, legacy-code, architecture, git-hotspots, personas, council
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Run a refactoring review through seven sourced refactoring-and-architecture persona agents - Martin Fowler, Robert C. Martin (Uncle Bob), Michael Feathers, Kent Beck, Sandi Metz, John Ousterhout, and Adam Tornhill. The council scans the target for code smells and git hotspots, reviews it through opposed lenses, synthesizes a safety-first sequenced refactoring plan, then runs a separate adversarial agent that red-teams the plan before returning it. Each persona is built from the writer's primary public corpus and argues from their actual positions - and they disagree with each other on purpose.
The plugin is a portable Agent Plugin with one Agent Skill and eight persona agents, so the same package works in Claude Code, Codex, Copilot CLI and opencode.
Claude Code (Copilot CLI is the same with copilot in place of claude):
claude plugin marketplace add smykla-skalski/sai
claude plugin install refactor-council@sai
Codex:
codex plugin marketplace add smykla-skalski/sai
codex plugin add refactor-council@sai
opencode, or any agent that reads Agent Skills, loads skills/refactor-council/ directly:
ln -s /path/to/sai/plugins/refactor-council/skills/refactor-council ~/.config/opencode/skills/refactor-council
Local checkout: claude --plugin-dir /path/to/sai/plugins/refactor-council/ (or copilot --plugin-dir ...)
In Claude Code and Copilot CLI use /refactor-council, in Codex $refactor-council, or ask in plain words ("how should I refactor src/billing?").
/refactor-council <path|@file|directory> [--no-scan] [--no-adversary] [--since 12.month] [--personas a,b,c]
/refactor-council src/billing/ # Scan + full council + adversary on a module
/refactor-council @src/payments/charge.py # Single file
/refactor-council diff --no-scan # Review the current git diff, skip scanning
/refactor-council src/legacy/ --personas feathers-legacy-reviewer,beck-tidy-first-reviewer,tornhill-hotspot-advisor --since 24.month
| Persona | Lens |
|---|---|
| Martin Fowler | Refactoring catalog + code smells; small behavior-preserving steps; two hats; Rule of Three; Strangler Fig |
| Robert C. Martin | SOLID; Clean Architecture & the Dependency Rule; small functions; naming; frameworks/DB as details |
| Michael Feathers | Legacy = code without tests; seams; characterization tests; Sprout/Wrap; get-it-under-test-first |
| Kent Beck | Structural vs behavioral changes; tidyings; coupling/optionality economics; baby steps |
| Sandi Metz | Duplication over the wrong abstraction; flocking rules; squint test; depend on stable things |
| John Ousterhout | Deep modules; complexity is the enemy; anti-over-decomposition; comments are load-bearing |
| Adam Tornhill | Behavioral code analysis; hotspots (complexity x churn); change coupling; where to refactor |
After synthesis a separate adversary agent stress-tests the plan: behavior preservation, safety net, wrong-abstraction risk, over-decomposition, cold-code/ROI, scope creep, sequencing, and latent correctness/security/perf the personas could not see. It returns SHIP / SHIP WITH CHANGES / HOLD.
| Agent | How the personas run |
|---|---|
| Claude Code | Named agents refactor-council:<persona> from agents/, all seven in parallel, then the adversary |
| Copilot CLI | Same named agents from agents/, delegated one at a time (parallel waves only on request) |
| Codex | Inline by default: the main agent adopts each persona from skills/refactor-council/references/agents/ in turn. Optional parallel mode with at most 5 subagents when agents.max_threads is raised |
| opencode | subagent tool (task on opencode 1) with the built-in general subagent and the persona file prepended, one at a time, or inline |
The persona bodies in agents/ and skills/refactor-council/references/agents/ are identical; tests/test_refactor_council_agents.py fails when they drift. The root plugin.json has no $schema key on purpose: with it, Copilot CLI stops registering the plugin's agents/ directory.
The value is the combination of opposed lenses:
Two heuristic, deterministic scanners run before the personas review:
Both live in skills/refactor-council/scripts/:
7-day copy clicks
npx claudepluginhub smykla-skalski/sai --plugin refactor-councilBuilt 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