/dev-team:domain-analysisfrom dev-team
Analyzes existing codebases to assess domain health, map bounded contexts, identify coupling, trace event flows, and produce a friction report that pinpoints architectural delivery blockers.
Ships in dev-team. 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.
Role: worker. This command produces a domain-health report — it is analytical, not prescriptive; it does not redesign code or write implementation.
Assess the domain health of an existing multi-component system. Produce a structured report covering bounded context boundaries, context map relationships, domain event flows, value stream throughput, and a friction report identifying where the architecture inhibits continuous delivery.
This skill is analytical, not prescriptive. It describes what is, not what should be built. For greenfield design, use skills/domain-driven-design/SKILL.md. For code-level violations (anemic model, missing DTOs, wrong layer), use agents/domain-review.md.
Before starting, determine scope from the user's request:
Every finding must be grounded in something you actually read. When reporting a God Object, a missing ACL, a coupling trap, or a friction item, cite the specific file:line or file where the evidence was observed. Do not assert that a pattern exists based on naming conventions alone — open the file and confirm it.
Classify each finding by confidence:
Graph-assisted evidence gathering. Prefer CodeGraph/Repowise over raw Grep
for tracing imports, call relationships, and cross-context dependencies — they're
cheaper and more accurate than re-deriving the call graph from text search. See
knowledge/codegraph-vs-graphify.md
for tool selection and the fallback contract.
Start here — structure reveals intent without reading implementation. Look at folder names, module names, and package boundaries first, then confirm with data schemas.
User in Auth, Orders, and Billing with diverging fields) — these signal missing context boundariesFor each inter-context relationship, classify the integration pattern. This matters because the pattern determines who can change what without coordinating with a neighbor.
| Pattern | Signal in code |
|---|---|
| Anti-Corruption Layer | Translator/mapper class at the boundary; explicit model conversion |
| Shared Kernel | Shared library or package co-owned by two contexts |
| Customer/Supplier | Downstream negotiates with upstream via contracts or versioned APIs |
| Conformist | Downstream uses upstream's model with no translation |
| Open Host Service | Published protocol (REST, gRPC, event schema) consumed by many |
| Separate Ways | No code path between two contexts that a naive reading would expect to integrate — sometimes deliberate and correct, not always a gap |
Flag missing ACLs: direct dependencies between contexts that pass domain objects across boundaries without translation. These are the highest-risk coupling points — a schema change in one context silently breaks another.
Domain events are the seams that let contexts evolve independently. Missing events are missing seams.
OrderPlaced, InventoryReserved) crossing component boundariesTrace a single unit of value through the system. Begin from a specific entrypoint you can point to in the code (e.g., a CLI command, an HTTP handler, a message consumer) — name it explicitly. Do not construct a hypothetical flow; trace the actual one.
Identify feedback loops and cascading-change risks — the architectural patterns that make every deploy a coordination exercise.
Where is the team's modeling effort actually going, and does that match where the value is? This is the strategic prioritization lens — it tells you where deeper design pays off and where it is waste.
Classify each bounded context:
| Class | Signal | What it means |
|---|---|---|
| Core | Bespoke, frequently-changed business logic central to why the product exists | Invest the best design here |
| Supporting | Business-specific but not differentiating | Build simply; adequate is fine |
| Generic | Solved problems — auth, notifications, currency, scheduling, file storage | Buy/adopt; custom code here is usually waste |
Flag effort misallocation — the friction this lens exists to find:
suspected unless commit frequency or bespoke complexity makes it observedTable: context name, owning file/package, primary aggregate or concern, upstream/downstream relationships.
List each: type name, contexts it appears in, diverging semantics, evidence (file:line). Omit types that appear in multiple places with consistent meaning.
Table of context relationships and their integration patterns. Flag missing ACLs with ⚠ and cite the import or call that crosses the boundary without translation.
Table: event name, emitting context, consuming contexts, sync/async. If no domain events exist, say so explicitly — do not omit the section.
State the entrypoint (file and function/command). Then list the ordered handoffs with coupling severity (low / medium / high) and confidence tier.
Table: context name, class (Core / Supporting / Generic), evidence for the class, confidence tier. Add a one-line Domain Vision for the context judged Core. Flag any over-built Generic or neglected Core as a Friction Report item with the effort-misallocation category.
Each item: category tag, specific files/components involved, confidence tier, and a concrete fix direction. Use this format:
[category] file-a → file-b (confidence: observed)
Description of the coupling or gap.
Fix: <specific action, e.g., "introduce ACL", "extract context", "replace sync call with domain event">
Categories: deployment-coupling | data-coupling | semantic-coupling | event-gap | effort-misallocation
Example:
[semantic-coupling] output.ts → enricher.ts (confidence: observed, output.ts:3)
output.ts imports classifyDDD() from enricher.ts — business logic that runs at render time
belongs in the enrichment phase. This creates a reverse dependency: Output depends on
Enrichment internals.
Fix: run classifyDDD during enrichment and store results on contextMap.dddInsights;
output.ts reads the pre-computed field.
agents/domain-review.mdWhat SKILL.md sets; muted values are Claude Code's defaults
103 skills in this plugin
/adr-toolsCreate and manage Architecture Decision Records using the npryce adr-tools CLI. Use when the user asks to "add an ADR", "record this decision", "create an ADR", "supersede ADR N", "link ADRs", "generate the ADR table of contents", or any request involving the `adr` command. Pairs with the adr-author agent — this skill is the mechanics (commands, files, links); adr-author is the decision framework (when an ADR is warranted) and the prose authoring./agent-auditAudit code-review agents, skills, and hooks for structural compliance. Use this when adding or modifying any agent, skill, or hook file, or for a periodic health check of the toolkit. Trigger phrases: "audit the agents", "check compliance", "validate the skills", "are the agents correct", or any time agent/skill files change./agent-evalRun eval fixtures against review agents and grade results. Use this after adding or modifying a review agent, to validate detection accuracy, or when the user says "run the evals", "test the agents", "check for regressions", or "how accurate is the agent"./agent-readinessScore how ready the current repository is for AI-assisted development against the Agent-Readiness Scorecard. Use when the user asks "how agent-ready is this repo", "score this repo for agents", "agent readiness", or wants a tiered readiness report. Scores YOUR project repo's readiness — not the dev-team plugin's own review agents and routing (for that, use /harness-audit)./api-designContract-first API design for stable, evolvable interfaces. Use whenever defining a new API endpoint, inter-service boundary, or modifying an existing contract. Includes backward compatibility checklist and error contract specification./apply-fixesApply correction prompts generated by /code-review. Use this whenever the user wants to apply, fix, or action the results of a code review — phrases like "apply the fixes", "fix the issues", "apply corrections", or after /code-review has run and produced a corrections/ directory.npx claudepluginhub bdfinst/agentic-dev-team --plugin dev-teamOther plugins' skills for the same job