From claude-agent-dev
Expert architecture review and system design for problems spanning 2+ files or crossing module boundaries — circular dependencies, God modules, or boundary violations (bleed). Not for single-file cleanup (see refactor). Trigger on: 'architecture review', 'restructure across modules', 'too coupled', 'design this system', 'where should this code live', 'God class', 'circular deps', 'dependency mapping', 'domain boundaries'.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-agent-dev:architectingThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
```dot
evals/evals.jsonreferences/ADR_TEMPLATE.mdreferences/DOMAIN_INTERVIEW.mdreferences/INTERFACE_SHAPES.mdreferences/MIGRATION_STRATEGIES.mdreferences/SEAMS_BY_EXAMPLE.mdreferences/architecture-patterns.mdreferences/brief-schema.jsonreferences/dispatch-template.mdscripts/check_locality.pyscripts/detect_bleed.pyscripts/detect_hotspots.pyscripts/git_coupling.pyscripts/scaffold_boundary.pyscripts/tests/test_scripts.pyscripts/tests/test_utils.pyscripts/utils/__init__.pyscripts/utils/extractor.pyscripts/utils/graph.pyscripts/utils/walk.pydigraph architecting {
rankdir=TB;
node [shape=box, style=rounded, fontname="Helvetica"];
edge [fontname="Helvetica", fontsize=10];
Trigger [label="Trigger: Review/Design Request", shape=diamond];
ModeA [label="Mode A: DIAGNOSE\n(Existing Code)"];
ModeB [label="Mode B: DESIGN\n(New Feature)"];
// Mode A Flow
ExploreA [label="1. Explore\n(Scripts/Manual)"];
PresentA [label="2. Present\nOpportunities"];
AlignA [label="3. Align\n(Interview/Seam)"];
ADRA [label="4. Record ADR"];
HandoffA [label="Handoff:\nrefactor/planning"];
// Mode B Flow
IdentifyB [label="1. Identify\nDomain vs Mechanism"];
SelectB [label="2. Select Pattern"];
StressB [label="3. Stress Test\n(Swap Test)"];
ADRB [label="4. Record ADR"];
ScaffoldB [label="5. Scaffold\n(Brief/Scripts)"];
Trigger -> ModeA [label="existing code"];
Trigger -> ModeB [label="new module"];
ModeA -> ExploreA -> PresentA -> AlignA -> ADRA -> HandoffA;
ModeB -> IdentifyB -> SelectB -> StressB -> ADRB -> ScaffoldB;
}
trigger: Architecture review, design request, or structural issues (God modules, circular deps).
action: Route & Confirm
Route and confirm via AskUserQuestion (or 2-option markdown block) — the tool supplies a free-text "Other" automatically, so don't add one manually:
routing:
| Mode | Focus |
|---|---|
| A: DIAGNOSE | Existing code. God modules, bleed, git coupling, circular deps. |
| B: DESIGN | New feature/module. Boundary integrity, reversibility, patterns. |
action: MODE A — DIAGNOSE
check_locality.py, detect_bleed.py, git_coupling.py, detect_hotspots.py.general-purpose agent using references/dispatch-template.md.references/DOMAIN_INTERVIEW.md.docs/adr/ using references/ADR_TEMPLATE.md.architecture-brief.json (see references/brief-schema.json). Handoff to refactor or planning.action: MODE B — DESIGN
references/architecture-patterns.md.docs/adr/ using references/ADR_TEMPLATE.md.architecture-brief.json (see references/brief-schema.json). Run scaffold_boundary.py or manually create structure.heuristics:
next skills:
refactor: To implement localized improvements found during diagnosis.planning: To create a formal spec for a new architectural design or major seam extraction.multi-agent-development: To execute the implementation of complex architectural changes.diagnose: If Mode A exploration surfaces a live bug (not just structural smell) that needs root-cause isolation before the architectural fix.constraint:
utils/, common/, or shared/ (use domain-based grouping).Provides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub j0hanz/claude-agent-dev-plugin