/armory:module-deepeningfrom armory
Finds shallow modules worth deepening and designs their interfaces. Scan mode produces an offline HTML report of candidates; design mode compares alternative interfaces and recommends one. Read-only, asks one question at a time, stops at an agreed decision.
Ships in armory. 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.
Read when SKILL.md points to them.
Find deepening opportunities, refactors that turn shallow modules into deep ones, and decide the shape of one deepened module with the user. A deep module puts a lot of behaviour behind a small interface at a clean seam, so callers get leverage, maintainers get locality, and tests cross the same interface callers do. The aims are testability and AI-navigability: an agent should be able to understand and safely change one concept by reading one module.
This skill decides. It does not implement. Every session ends at an agreed decision (or an explicit rejection) and hands implementation to separate work.
| Situation | Package |
|---|---|
| Find where shallow modules cause friction, or pick what to deepen next | module-deepening (scan) |
| Shape the interface of one chosen module, or decide where its seam goes | module-deepening (design) |
| Scored review across structure, scalability, security, performance, operations, data | architecture-reviewer |
| Prioritized, agent-executable implementation plans for a repository | codebase-advisor |
| Simplify a function or file without changing its interface | code-refiner or /refactor |
| A domain term is ambiguous or code contradicts the domain model | domain-modeling |
| Record a decision that already qualifies as an ADR | adr-writer |
CONTEXT.md or ADRs. The only file this skill writes is the scan report, and it goes to the OS temp directory, never into the repository.references/vocabulary.md. Use its terms exactly (module, interface, implementation, depth, deep, shallow, seam, adapter, leverage, locality) in every question, card and recommendation. Do not drift into "component", "service", "API" or "boundary".docs/agents/domain.md when present (it routes to the authoritative files), then CONTEXT.md or CONTEXT-MAP.md and the context-local CONTEXT.md for the area in scope. Name modules after those concepts: "the Order intake module", not "the FooBarHandler" and not "the Order service". If no domain context exists, say so once and use the names the code already uses.docs/agents/domain.md or the repository's existing ADR directory. Do not re-litigate them unless the friction is real enough to warrant reopening (see the report's ADR callout rule).git log to find hot spots. Outside a git repository, ask the user for a direction, scan those files without history and record that hot-spot evidence is unavailable.git log --oneline -n 200 --name-only -- <paths in that direction> only to find the hot spots inside it. Otherwise run git log --oneline -n 200 --name-only over the whole repository (widen the window if the history is short or scattered) and list the files and directories that keep recurring. Outside a git repository, skip git log entirely: scope to the direction the user gave (ask for one if they gave none), inspect those files directly and record "hot-spot evidence unavailable: not a git repository". Record the scope, the hot spots you chose (or why there are none) and why.references/deepening.md (in-process, local-substitutable, ports & adapters, true external). The category becomes the card's tag and decides how the deepened module would be tested.references/report-format.md first; it defines the offline scaffold, card fields, diagrams, strength badges and tone. Write architecture-review-<timestamp>.html to $TMPDIR (fallback /tmp), open it with the platform opener and print its absolute path.Scan is complete when the report exists at a printed absolute path, every card carries every required field, the top recommendation names one candidate, and the user has been asked to pick. A candidate list in chat without the report is not completion.
Zero candidates is also a complete scan. If nothing passes the deletion test, write the report with the scope and every module examined, each with the reason it was dropped, and no cards or top recommendation. Print its path, say no deepening candidate was found, and stop: skip steps 7–8 and do not ask the user to pick.
references/deepening.md, and a rough illustrative code sketch that makes the constraints concrete (labelled as a sketch, not a proposal).references/design-it-twice.md and produce at least three radically different interfaces under distinct constraints (minimal interface, maximum flexibility, common caller first, and ports & adapters when a dependency crosses a seam). Each design has the five-part output that reference defines.Design is complete when the user has made a decision on a specific recommended design:
Three designs without a recommendation is not completion.
Handle these inline as decisions crystallize, without leaving the session:
CONTEXT.md, or a fuzzy term sharpened during the conversation, goes to the domain-modeling package by name with the proposed term and the scenario that settled it. Do not edit CONTEXT.md here. If domain-modeling is not installed, list the proposed entry in the output as an unapplied change.domain-modeling's conjunctive ADR-candidate test: the decision is hard to reverse (concrete migration or consumer cost), surprising without context (a future reader would reasonably expect otherwise) and the result of a real trade-off (genuine alternatives weighed and one chosen for specific reasons). All three must hold on actual evidence. Only then offer: "Want this recorded as an ADR so future reviews don't re-suggest it?" and hand the summary to adr-writer by name. Skip ephemeral reasons ("not worth it right now") and self-evident ones.codebase-advisor for an agent-executable plan, or to the /tdd command to build the agreed interface test-first. Do not implement.Scan mode:
Report: /absolute/path/architecture-review-20261026-143005.html (opened)
Scope: <named direction | hot spots from git log: paths>
Candidates: <n> — <title> [Strong|Worth exploring|Speculative, dependency category]
Top recommendation: <title>, <one sentence why>
Question: Which of these would you like to explore?
Design mode: the problem frame, each design (interface, usage example, what hides behind the seam, dependency strategy and adapters, trade-offs), the comparison and the recommendation, then the questions one at a time.
Decision (either mode, at the stop):
Decision: <agreed interface and seam | candidate rejected>
Module: <domain name> — files: <paths>
Interface: <entry points, invariants, error modes>
Seam and adapters: <placement; adapters justified (production, test)>
Tests: <new tests at the interface; old shallow-module tests to delete>
Handoffs: domain-modeling <terms | none>; ADR candidate <yes: summary | no: which condition failed>; implementation → codebase-advisor | /tdd
Not done here: code changes
| Situation | Action |
|---|---|
| Not a git repository | If the user gave a direction, scan those files without git log; otherwise ask for one. Record the scope as user-provided and hot-spot evidence as unavailable because this is not a git repository |
| History too short or scattered to show hot spots | Widen the git log window and scan again, as in Scan mode step 1; if it still shows none, ask the user for a direction and record that |
No CONTEXT.md, CONTEXT-MAP.md or docs/agents/domain.md | Use names from the code; offer domain-modeling once if terms are ambiguous |
| Scan finds no candidate that passes the deletion test | Write the zero-candidate report (scope and every module examined with its drop reason), print its path and stop without asking for a pick; do not invent speculative cards to fill the report |
$TMPDIR unset or unwritable | Fall back to /tmp; if that fails, stop and report the error rather than writing into the repository |
No browser opener available (open, xdg-open, start) | Print the absolute path and say the report was not opened |
| No sub-agent support | Explore directly and run design-it-twice sequentially per its fallback; say so in the output |
| User asks for the refactor to be done | Decline the edit; hand off to codebase-advisor or /tdd with the decision |
| Candidate contradicts an ADR | Surface it only if the friction warrants reopening; mark it with the ADR callout |
| Load when | Reference | Supplies |
|---|---|---|
| Before either mode | references/vocabulary.md | Glossary, principles, relationships, rejected framings, designing for testability |
| Classifying dependencies, placing a seam or planning tests | references/deepening.md | Four dependency categories, seam discipline, replace-don't-layer testing |
| Design mode step 3 | references/design-it-twice.md | Parallel sub-agent briefs, the five-part design output, sequential fallback, comparison |
| Scan mode step 6 | references/report-format.md | Offline HTML scaffold, card fields, diagram patterns, tone rules |
For source attribution or a deliberate upstream comparison, read references/upstream/provenance.md. The MIT notice is in this package's LICENSE.
CHANGELOG.md (opens in a new tab)LICENSE (opens in a new tab)evals/cases.yaml (opens in a new tab)references/deepening.md (opens in a new tab)references/design-it-twice.md (opens in a new tab)references/report-format.md (opens in a new tab)references/upstream/provenance.md (opens in a new tab)references/vocabulary.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mathews-tom/armory --plugin armory94 skills in this plugin
/adr-writerGenerates Architecture Decision Records capturing context, rationale, alternatives, and consequences in numbered status-tracked format. Triggers on: "write an ADR", "document this decision", "architecture decision record", "decision record", "design decision", "ADR for"./agent-builderBuild AI agents and automate Claude Code programmatically via the Claude Agent SDK and headless CLI mode. Covers Python SDK, claude -p, SDK MCP servers, hooks, sessions. Triggers on: "build an agent", "agent SDK", "headless mode", "automate Claude", "programmatic agent"./animateCreate Manim (Python) animated explainers: algorithm step-throughs, math and equation walkthroughs, pipeline and data-flow diagrams, comparisons and timelines, rendered to MP4, WebM or GIF with optional audio overlay. Includes a template path that renders validated config data with no model call, plus output checks (ffprobe duration, fps, dimensions, full decode, sampled-frame review receipt). Use when asked to "create a video", "animate this", "make an explainer", "manim animation", "animate this algorithm", or "motion graphic". NOT for HTML/CSS/GSAP or Hyperframes video, NOT for React or Remotion video, and NOT for a launch or promo video of the user's own project, use launch-video.Other plugins' skills for the same job