From hb
Audits a codebase for architectural friction using deep-module principles, identifying shallow modules, coupling issues, and testability problems via guided exploration and refactor proposals.
How this skill is triggered — by the user, by Claude, or both
Slash command
/hb:architecture-auditThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Audit a codebase for architectural friction and propose refactors toward **deep modules** (simple interface, large implementation). Deep modules are more testable, more AI-navigable, and let you test at the seam instead of inside.
Audit a codebase for architectural friction and propose refactors toward deep modules (simple interface, large implementation). Deep modules are more testable, more AI-navigable, and let you test at the seam instead of inside.
Uses the deep-module vocabulary and principles — see codebase-design for the canonical glossary (module, interface, depth, seam, adapter, leverage, locality) and core principles (deletion test, interface-as-test-surface, one-adapter-is-hypothetical). Use those terms exactly in every suggestion. For audit-specific examples and anti-patterns (pass-through, temporal decomposition, classitis, signs a module is too shallow), see references/deep-modules.md.
Use the Agent tool with subagent_type=Explore to navigate the codebase organically. Note where you experience friction:
The friction you encounter IS the signal.
Show a numbered list. For each candidate:
Do NOT propose interfaces yet. Ask: "Which candidate would you like to explore?" — list each candidate as an option with its cluster name as label and coupling summary as description. Use AskUserQuestion when available; otherwise present as a numbered list.
Write a user-facing explanation of the chosen candidate:
Show this to the user, then immediately proceed to Step 5. User reads while sub-agents work.
Spawn 3+ sub-agents in parallel using the Agent tool. Each produces a radically different interface. Give each a separate technical brief (file paths, coupling details, dependency category). Assign distinct constraints:
Each sub-agent outputs:
Present designs sequentially, compare in prose, then give your own recommendation. Be opinionated — if elements from multiple designs combine well, propose a hybrid.
Ask: "Which interface design should we use?" — list each design as an option with preview showing the interface signature. Add "Your recommendation" as first option (Recommended) with the hybrid/recommended design in preview. Use AskUserQuestion when available; otherwise present as a numbered list.
Save a markdown file named architecture-<cluster-name>.md using the template in references/improvement-template.md. If .specs/prds/ exists, save there; otherwise, save in prds/.
Fill with concrete details: file paths, function names, migration steps. Share the file path with the user when done.
npx claudepluginhub helderberto/agent-skills --plugin hbExplores codebases to identify architectural friction and opportunities to deepen shallow modules, improving testability, refactoring, and AI navigability.
Finds architectural friction and proposes refactoring opportunities that make a codebase more testable and AI-navigable. Informed by domain language in CONTEXT.md and ADRs.
Analyzes codebase architecture, identifies shallow modules, and proposes deepening refactors to improve testability and AI-navigability using precise vocabulary (Module, Interface, Depth, Seam, Adapter).