/architecture:deep-modulesfrom architecture
Applies deep-module discipline to one module's boundary: small interfaces hiding large implementations, seams, adapters. Use when the user says "design this module's interface", "decide where the seam goes", "shrink this API", or asks whether an abstraction earns its keep. Not for a contract others program against (api-design), a whole-system document (architecture-spec), or mechanical refactors.
Ships in architecture. 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.
Design a boundary that hides more complexity than it exposes. Evaluate what a caller must learn, not just the number of methods or lines of implementation.
The interface includes types, invariants, ordering, configuration, errors, and performance assumptions. A seam is where an implementation can vary behind that contract; an adapter satisfies it.
Write a short account of what callers must know. Then inspect real callers: which implementation details do they repeat, and which changes ripple outward? Move shared knowledge behind the boundary when that reduces total complexity.
Use the deletion test: if removing an abstraction eliminates ceremony without moving useful behavior anywhere, it may be a pass-through. If its knowledge would be duplicated among callers, it earns its place. Translation, policy enforcement, and isolation can justify a small adapter even with one current implementation; do not invent a second implementation to satisfy a rule.
Prefer interfaces stated in the consumer's terms. Group operations when they share an invariant, and separate them when they change for independent reasons. Fewer methods help only while the remaining methods stay understandable; a single operation with a bag of flags is not automatically deeper.
Keep policy inside the responsible module and external effects behind a controllable boundary. Inject dependencies when that makes behavior testable; ordinary value-only modules do not need an interface framework.
Example: expose a reservation operation that owns availability and atomic allocation rather than making every caller coordinate read-count-write steps.
Show a representative caller and test through the proposed interface. Check that the caller no longer needs hidden ordering or storage knowledge, failure behavior is explicit, and a realistic implementation change stays local. Keep refactoring within the requested scope. System-wide decisions belong to architecture-spec.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub smithdak/skillsmith --plugin architecture7 skills in this plugin
/api-designDesigns the contract for an interface others program against — REST, gRPC, GraphQL, events, or a library's public surface — consumers first, errors and compatibility before the happy path. Use when the user says "design the API for", "how should we version this endpoint", or "review our REST API". Not for one internal module's interface (deep-modules) or a whole-system spec (architecture-spec)./architecture-reviewJudges an existing system's structure: recovers claimed invariants, tests them against import-graph and churn evidence, and lands ranked findings with options and kill triggers. Use when the user says "review our architecture", "is this codebase structured well", or "where is the coupling". Not for repo inventory (codebase-survey), new specs (architecture-spec), or one interface (deep-modules)./architecture-specCo-authors a versioned architecture spec for a new or redesigned system: design invariants, open decisions, and kill/pivot triggers. Use when the user says "write an architecture spec", "spec out" a system, or "draft a design doc". Not for judging an existing system (architecture-review), one feature (feature-spec), one decision (decision-record), or reviewing a draft (falsification-review)./decision-recordSettles one technical or business decision and lands it as a numbered ADR: options, tradeoffs, choice and driver, and a revisit trigger. Use when the user says "write an ADR", "help us decide between X and Y and document it", or "record why we chose X so it doesn't get relitigated". Not for whole-system documents (architecture-spec), how to transition (migration-plan), or neutral comparisons./failure-mode-analysisRanks the failure modes of a system or design — per dependency: down, slow, partial, or wrong — by likelihood × impact × detectability, with mitigations and game-day tests. Use when the user says "what happens if redis goes down", "how resilient is this service", or "failure modes of this design". Not for attackers (threat-model), plans (premortem), or past failures (diagnose-bugs, postmortem)./migration-planPlans a live system's transition in reversible, verified phases — data store, runtime, service, or API cutover. Use when the user says "plan the migration off Mongo", "move to the new auth service without downtime", "phase this upgrade", or must change a running system in place. Not for whether to migrate (decision-record), risk-testing the plan (premortem), or manual cutover scripts (wizard).