/eng:righting-software-system-designfrom eng
Opt-in, collaborative system-design workflow based on Juval Löwy's iDesign methodology in *Righting Software*. Conducts a multi-phase interview (framing → use cases → volatility analysis → components → call-chain validation → report) that surfaces unknown-unknowns and produces a written recommendation at `decompositions/{system-name}/report.md`. **Run only when the user explicitly invites this workflow** — not for general architecture questions, lightweight design conversations, or quick "where should X live?" questions. Valid triggers: the user names the skill directly, references *Righting Software* / Juval Löwy / iDesign / "The Method" / volatility-based decomposition and asks to run a full session, asks for a "deep" or "structured" or "Löwy-style" system design session, or accepts a prior suggestion to run it. Wait for an explicit yes before entering Phase 0. The skill is interrogative — a back-and-forth interview that challenges each volatility candidate and proposes ones the user hasn't considered.
Ships in eng. 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.
A collaborative iDesign decomposition session faithful to Juval Löwy's Righting Software. The skill conducts a turn-by-turn interview that establishes business framing, identifies core use cases, interrogatively surfaces volatility, maps it to the iDesign service hierarchy (Manager → Engine → ResourceAccess → Resource + Utilities), and validates the result by composing call chains for each core use case.
The deeper goal — beyond producing a clean architecture — is to help the user surface unknown-unknowns about their own system. The volatility discovery techniques here (solutions-masquerading-as-requirements, design-for-your-competitors, volatility-and-longevity, the anti-design effort) are themselves tools for finding what the user didn't know to ask. Use them actively; don't wait for the user to volunteer the right information.
This is a heavyweight, multi-hour workflow. It is not the default on-ramp for architecture conversations. Most "where should this live?" or "should I split this service?" questions deserve a normal conversation, not this entire process.
Run this skill only when the user has explicitly invited it. That means one of:
righting-software-system-design) or
asked for it by referenceIt is appropriate to suggest this skill when the user's question is genuinely heavy enough to warrant it — a clean-slate new system, a monolith-to-services extraction, or recurring "every change touches everything" pain that has resisted lighter analysis. Frame the suggestion clearly: "There's a guided volatility-based decomposition workflow (a few hours of back-and-forth, produces a written report). Want to run it, or would you rather just talk through this informally?"
If the user declines or wants something lighter, don't run this skill. Have the normal conversation instead. This workflow earns its weight on the right problems and drowns lighter ones.
Once the user opts in, proceed to Starting a session below.
The skill has one optional-but-recommended external dependency:
winget install terrastruct.d2 (Windows),
brew install d2 (macOS), or download from https://d2lang.com.Phases 0–4 use only Mermaid (renders in any markdown viewer), so D2 is not required to start a session — only to produce the final report's polished diagrams. The skill will check D2 availability when it reaches Phase 5 and tell the user once if it's missing, then continue with the SVG fallback.
These four rules govern every decision in the session. Refer back to them constantly.
Decompose by volatility, not functionality. Every component must answer: what single axis of change does this encapsulate? If the answer is a verb or use-case step (Validate, Price, Ship, Notify), the boundary is functional and wrong. If the answer is a crisp axis of change (tax law, partner API, pricing rule, regulator), the boundary is correct.
There is no feature. Features are always and everywhere aspects of integration, not implementation. The system supports a use case by integrating components — never by housing the use case in a component named after it. If the user asks "where does feature X live?", the correct answer is always a call chain across components, never a single component.
Never design against the requirements. Requirements change. Design against the smallest set of components that supports all core use cases through different compositions. When requirements change, the composition (Manager workflow code) changes — not the decomposition.
Strive for the smallest set. The architect's mission is the smallest set of components that can compose to support every core use case. Typical well-designed systems land at ~10–20 components total (2–5 Managers, 2–3 Engines, 3–8 ResourceAccess + Resources, ~6 Utilities). A 1-component design is unvalidatable; a 100-component design is functional decomposition.
This skill is not a generator — it is a Socratic interview. The shape of each turn:
AskUserQuestion; otherwise a numbered list).The user is the domain expert; you are the methodology expert. The job is to apply Löwy's rules to their context, not to teach iDesign as a lecture.
Before anything else, suggest a short kebab-case name for the system
being decomposed. "I'm trying to figure out how to structure our order
pipeline" → suggest order-pipeline. Let the user override.
Then ask, as a structured choice:
Is this a new system or a refactor of an existing one?
- New system — greenfield, no legacy
- Refactor — existing system being restructured
The methodology is identical either way, but the final report differs (greenfield gets a build sequence; refactor gets a current-→-target mapping with extraction priorities).
All persistent artifacts live in decompositions/{system-name}/:
| File | Purpose |
|---|---|
decompositions/{system-name}/report.md | The growing recommendation report — the headline artifact |
decompositions/{system-name}/use-cases.md | (Optional) raw use cases with swim lanes, if they grow long |
Write everything important to report.md as the session progresses.
Chat is the conversation surface; the file is the durable record.
If a decomposition was previously run on this system, pick
a distinct system name (order-pipeline-v2, order-pipeline-rework,
etc.) so the prior report isn't overwritten. The directory layout is
intentional: each session gets its own decompositions/{system-name}/
subtree.
Goal: Establish the business framing that compels volatility-based decomposition. This phase exists because Löwy's hardest political problem is getting management to accept the methodology — and the trick is to have the business itself instruct the architect to design correctly.
Without this framing, the rest of the session produces a defensible design that the org will still reject. With it, the design is the business's logical conclusion.
Ask: "In one sentence, what is this system?"
Push for terseness. "Read it like a legal statement." A good vision is one sentence, business-perspective, no implementation language.
Examples from the book:
If the user gives a paragraph, distill it together. If the user gives a feature list, push back — features are not vision.
Ask: "What does the business need from this system? Itemize."
Rules:
If the user lists fewer than three, probe: "What about scalability? Localization? Compliance? Speed of feature delivery? Audit trails? Recovery from incidents?" — propose candidates from common business concerns.
This is the most important sentence in the whole session.
Draft: "Design and build a collection of software components that the development team can assemble into applications and features."
Adjust the wording to the user's context, but preserve the structure: the mission is to build components that compose into features — NOT to build the features themselves. This is the rhetorical move that makes volatility-based decomposition the business's idea.
Add a ## Framing section to report.md with the vision, the
objectives (as a numbered list), and the mission statement. End the
section with the chain:
Vision → Objectives → Mission Statement → Architecture
Stop and check in:
"Here's the framing. Does the mission statement actually capture how you want the team to think about this system? Anything missing from the objectives? Once you're happy, we'll move to use cases."
Wait for the user.
Goal: Capture the required behaviors (not functionalities) of the system, identify the small number of core use cases, and build a shared glossary. This phase is where the user's mental model becomes visible.
Ask: "Walk me through how the system will be used. Don't worry about order or completeness yet — just what needs to happen."
Capture each as a short list with: trigger, primary actor, sequence, outcome, error paths. Use plain text — diagrams come later if needed.
Surface unknown-unknowns aggressively here. Löwy's quote: "the users interact with or observe just a small part of the system, which represents the tip of the iceberg. The bulk of the system remains below the waterline." Probe for:
Propose candidates from your knowledge of similar systems. "In most marketplace systems I've seen, there's also a dispute resolution flow. Does that apply here?"
For any use case involving multiple roles or subsystems, redraw it as an activity diagram with swim lanes — one lane per role/entity (Client, Member, Market, Regulator, etc.). This isn't decoration; the swim lanes themselves become candidate subsystem boundaries in Phase 3.
If the lanes are obvious from text, you can describe them; if not,
sketch a Mermaid flowchart or just a structured outline.
Build a glossary by answering the Four Questions:
| Question | What it captures |
|---|---|
| Who | Actors — users, external systems, schedulers |
| What | Top-level required behaviors / capabilities |
| How | Activities the system performs (the verbs) |
| Where | Data and external dependencies — where state lives |
These map roughly to architectural layers later (Who→Clients, What→Managers, How→Engines + ResourceAccess, Where→Resources). The What list especially hints at subsystem boundaries.
This is the most consequential step in Phase 1.
"Most systems have 2–6 core use cases. The rest are variations. Looking at what we've collected, which use cases capture the essence of the business? If this system did nothing else, which would still need to work?"
The core use cases:
Example from TradeMe: of ~8 listed use cases (Add Tradesman, Request Tradesman, Match, Assign, Terminate, Pay, Create Project, Close Project), only Match Tradesman is a core use case. The rest are plumbing.
Add to report.md:
## Glossary (Four Questions)## Use Cases — list with brief sequences## Core Use Cases — the 2–6, with a short paragraph each explaining
why this captures the essenceIf use cases grow long, split them into use-cases.md and link.
Stop and check in:
"I've documented use cases and called out what I think are the core ones. Read through and tell me: are the core use cases actually core? Anything I've missed below the waterline? Once we agree on the cores, we'll dig into volatility."
Wait for the user.
Goal: Identify what's actually volatile (and what isn't), through challenge and discovery rather than passive elicitation. This is the phase where unknown-unknowns are most likely to surface.
This phase produces a Volatilities List — candidate areas of change with rationale. It does not yet name components.
Löwy defines exactly two axes:
The axes should be independent. If a candidate volatility can't be cleanly assigned to one axis or the other, that's a signal of functional decomposition in disguise — investigate further.
Note: you may have seen "five axes" frameworks (requirements / technology / integration / data / policy) elsewhere. That isn't from Righting Software — Löwy's book defines only the two axes above. The five categories can be useful prompts during Step 2c (axes sweep), but they aren't the framework.
Before listing any volatility, share this distinction with the user:
Variable: something that changes but is handled in code with conditional logic. Adding a new attribute to a customer record is variable.
Volatile: something open-ended whose changes ripple across the system unless encapsulated. Swapping payment providers is volatile.
Only encapsulate volatility, not variability. Most candidates the user volunteers will be variability. Filter ruthlessly.
Don't just ask "what changes?" — that gets opinions. Use these lenses to discover volatility the user hadn't named:
This is Löwy's primary volatility-discovery technique. Many "requirements" the user states are actually solutions to a deeper need. Peel them recursively:
"Send an email confirmation." → real requirement is notify (could be email, SMS, push). Volatility: notification transport.
"Cooking in the kitchen." → real requirement is feed the occupants. → real-real requirement is occupants' well-being.
For each candidate volatility, ask:
Volatility-based decomposition can be over-applied. Reject candidates that fail any of these tests:
When rejecting a candidate, state the rejection reason explicitly in the report. The user should be able to defend each rejection later.
For each surviving candidate, document:
Activities that change for the same reason belong together; activities that change for different reasons belong apart, even if they look related.
This list is the input to Phase 3, which is where components get named. A single component will often own several entries from this list when they ripple together (e.g., a Manager owning the workflow volatility of a whole use-case family), though a component owning one standalone axis is also valid. Cluster axes here when they share a reason for change — that's exactly what this step is for — but don't assign component boundaries yet. Leave each clustered axis named so the report's audit trail from volatilities to components stays intact, and let Phase 3 decide which clusters become which components.
Add a ## Volatility Analysis section to report.md:
### Rejected as not architecturally volatile
| Candidate | Reason |
|--------------------|-----------------------------------------------------------------|
| Adding new fields to a tradesman record | Variable, not volatile — handled by schema migration |
| Branching into healthcare staffing | Nature of the business — would redefine the company |
| Optimization algorithms for project matching | Speculative — company isn't in the optimization business |
Stop and check in:
"Here's the volatility analysis with the candidates I've accepted and rejected. The rejections are as important as the accepts — challenge any of them you disagree with. Anything I've split that should be merged, merged that should be split, or missed entirely?"
Wait for the user. Expect to iterate here.
For deeper coverage of volatility-discovery techniques, see
references/volatility-techniques.md.
Goal: Map the validated volatility list to the iDesign service hierarchy, using the Four Questions as a check.
A component can encapsulate one volatility or several. Both are valid;
the choice depends on whether the volatilities genuinely ripple
together. Righting Software is explicit that many-to-one is common —
the TradeMe MarketManager owns three volatilities (managing projects,
matching tradesmen to projects, charging fees for the match) because
they're a family of logically related use cases sharing one
workflow-sequence axis. The same book also shows single-volatility
Managers: TradeMe's EducationManager encapsulates only the education
workflow, with searching and regulatory compliance pushed to other
components.
There's a directional bias toward consolidation, driven by the smallest-set principle (first principles #4). The book frames this as minimizing the amount of work in detailed design and implementation: 1 component is too few (a monolith hides complexity inside) and 300 components is too many (integration cost explodes). The right answer lives around an order of magnitude of 10. The bias has a hard limit: cohesion. Volatilities that change for related reasons belong together; volatilities that change for unrelated reasons stay apart even when merging them would lower the count. Cramming unrelated axes into one component isn't consolidation — it's functional decomposition with a smaller N.
Common shapes (per Righting Software, Ch. 3 and Ch. 5):
EducationManager).RegulationEngine and SearchEngine are each one activity
volatility.If your Phase 2 list has 15 volatilities and your Phase 3 proposal has 15 components, the design probably hasn't done any consolidation work — look for related axes that could share a component. But don't force merges; an N-to-N mapping that genuinely reflects N unrelated axes is better than a low count built on weak cohesion.
| Type | Encapsulates | Calls |
|---|---|---|
| Clients | Volatility in entry points (UIs, APIs, schedulers) | Managers |
| Managers | Volatility in the sequence / workflow of use cases | Engines, ResourceAccess, Utilities |
| Engines | Volatility in activities — business rules, calculations | ResourceAccess, Utilities |
| ResourceAccess | Volatility in how a Resource is accessed AND in the Resource itself | Resources, Utilities |
| Resources | The actual data/external systems (DB, cache, external APIs) | — |
| Utilities | Cross-cutting infrastructure (Logging, Security, Pub/Sub) | (anyone, via the utility bar) |
Map each volatility to a question, and the question to a layer:
| Question | Layer |
|---|---|
| Who interacts with the system? | Clients |
| What is required of the system? | Managers |
| How does the system perform business activities? | Engines |
| How does the system access resources? | ResourceAccess |
| Where does the system's state live? | Resources |
If a candidate component doesn't crisply answer one question, you've either picked the wrong layer or missed a volatility.
Calls go top-down only. Allowed:
Forbidden:
Allowed relaxations:
See references/anti-patterns.md for the full design-don'ts catalog.
Two-part Pascal-case compound words. Suffix = service type:
| Type | Suffix | Prefix | Examples |
|---|---|---|---|
| Manager | Manager | Noun — the volatility encapsulated in the use cases | MembershipManager, MarketManager |
| Engine | Engine | Noun OR gerund — the encapsulated activity | SearchEngine, RegulationEngine, CalculatingEngine |
| ResourceAccess | Access | Noun — the Resource / data | MembersAccess, PaymentsAccess, WorkflowsAccess |
| Utility | (varies) | The cross-cutting concern | Logger, Security, MessageBus |
Critical naming rules:
Access, not Accessor. (Common
community mistake.)BillingManager, BillingAccess) signals functional decomposition.Credit, Debit, Pay are operation names on contracts, not
service prefixes.OrderProcessor, PaymentHandler,
NotificationSender are use-case names. Rename to the volatility
axis.Infrastructure names don't belong in component names: Lambda, ECS, SQS,
DynamoDB, S3, Kubernetes, Docker, Postgres, Redis. These are deployment
concerns. A LambdaInvoker is decomposed by infrastructure, not
volatility. Push back and propose a volatility-axis name.
A component qualifies as a Utility only if it could plausibly serve any other system, even one as different as a smart cappuccino machine.
For each Manager, apply the test: how would you respond to a request to change this Manager?
Aim for almost-expendable Managers. Flag any that fail.
Add a ## Components section to report.md. Lead with a Mermaid
layered diagram, then one table per tier.
Client → Manager → Engine → ResourceAccess → Resource stacked top-to-bottom, Utilities as a vertical bar on the right consumed from any layer. Arrows at the layer level only; the per-component relationships are implied by layer membership.
block-beta
columns 2
block:main:1
columns 1
block:client["CLIENT"]
columns 4
%% Entry points — web, API, scheduler, inbound webhooks
%% Fill in actual components and apply: class id1,id2 client
end
block:managers["MANAGERS"]
columns 3
%% Workflow orchestrators — one per major workflow family
%% Apply: class id1,id2 manager
end
block:engines["ENGINES"]
columns 5
%% Business logic, rules, calculations
%% Apply: class id1,id2 engine
end
block:accessors["RESOURCE ACCESS"]
columns 4
%% Wrap data + external integrations; expose atomic business verbs
%% Apply: class id1,id2 access
end
block:resources["RESOURCES"]
columns 5
%% Databases, partner APIs, external systems
%% Apply: class id1,id2 resource
end
end
block:utilities["UTILITIES"]:1
columns 1
%% Cross-cutting infrastructure, consumed from any layer
%% Apply: class id1,id2 utility
end
classDef client fill:#d1fae5,stroke:#1f2937
classDef manager fill:#fef9c3,stroke:#1f2937
classDef engine fill:#fed7aa,stroke:#1f2937
classDef access fill:#e5e7eb,stroke:#1f2937
classDef resource fill:#dbeafe,stroke:#1f2937
classDef utility fill:#f3e8ff,stroke:#1f2937
No arrows on the static diagram. Layer membership already conveys the call direction (Managers above Engines means Managers call into Engines). Per-component arrows would clutter without adding information. Save arrows for the call-chain diagrams in Phase 4, where they show the specific path of one use case.
Layer colors are consistent across every diagram in the session (Mermaid here, D2 and SVG in Phase 5): green for Client, yellow for Managers, orange for Engines, grey for Access, light blue for Resources, lavender for Utilities. The same component always uses the same color and stays in the same row/column position across all diagrams — that's what makes the Phase 4 symmetry check legible.
Populate every layer with at least one block before rendering — some
block-beta renderers drop the layer label on empty layers.
If a single layer has more than ~7 components, the system probably wants a subsystem split.
Beneath the diagram:
List every volatility cluster a component owns in the Encapsulates
column — don't compress a multi-volatility component into a single
phrase. The audit trail back to Phase 2 only works if each accepted
volatility shows up somewhere.
### Managers
| Component | Encapsulates (volatility clusters) | Notes |
|----------------|---------------------------------------------------------------------------------------|-------|
| MarketManager | Managing projects; matching tradesmen to projects; charging fees for the match | Three logically related use-case families share one orchestrator; only sequence volatility lives here |
| MembershipManager | Membership management (add/remove, benefits, discounts); dispute resolution | Two related but distinct workflow families under one orchestrator |
| EducationManager | Education workflow | Single-volatility Manager; no other workflow family shares its orchestration axis |
### Engines
| Component | Encapsulates | Depends on |
|------------------|---------------------------------------------|---------------------------|
| RegulationEngine | Regulatory rule volatility across locales | RegulationsAccess |
| SearchEngine | Match-algorithm volatility | MembersAccess, ProjectsAccess |
### ResourceAccess
| Component | Encapsulates | Atomic business verbs |
|------------------|-------------------------------------------------------------------------------|--------------------------|
| PaymentsAccess | Payment provider choice; payment storage backend; reconciliation protocol | Pay, Refund, Reconcile |
### Resources
| Component | Notes |
|-----------|-------|
| Members | Member profiles, history |
### Utilities
| Component | Encapsulates |
|-------------|-------------------------------|
| Logger | Logging framework volatility |
| MessageBus | Pub/Sub transport volatility |
| Security | Auth/AuthZ volatility |
ResourceAccess contracts: list the atomic business verbs each one
exposes (e.g., Pay, Credit, Debit, Match, Reserve). Do not
list CRUD/IO operations (Insert, Select, Read, Write,
Open) — those leak the Resource technology.
Stop and check in:
"Here's the component proposal. For each Manager, do the almost-expendable test in your head: how do you feel about being asked to change it? Walk through which names feel off, which boundaries feel wrong, or where I've put something at the wrong tier."
Wait for the user.
Goal: Prove the design is composable by producing one call chain diagram per core use case, then checking for symmetry and composability across them.
A decomposition that doesn't survive its own validation isn't volatility-based — it's guesses with better names.
For each core use case, draw the interaction:
Use Mermaid flowchart here. Mermaid is the iteration format — it
renders inline in markdown, costs nothing to regenerate as the design
shifts, and is good enough for the symmetry/composability checks in this
phase. Final-report rendering switches to D2 or SVG in Phase 5; don't
spend effort polishing diagrams here. Example:
flowchart TD
Client[Tradesman Portal]:::client
Bus[MessageBus]:::utility
Mgr[MembershipManager]:::manager
Eng[RegulationEngine]:::engine
AccM[MembersAccess]:::access
AccP[PaymentsAccess]:::access
Members[(Members)]:::resource
Payments[(Payments)]:::resource
Client -. queued .-> Bus
Bus --> Mgr
Mgr --> Eng
Mgr --> AccM
Mgr --> AccP
AccM --> Members
AccP --> Payments
classDef client fill:#d1fae5,stroke:#1f2937
classDef manager fill:#fef9c3,stroke:#1f2937
classDef engine fill:#fed7aa,stroke:#1f2937
classDef access fill:#e5e7eb,stroke:#1f2937
classDef resource fill:#dbeafe,stroke:#1f2937
classDef utility fill:#f3e8ff,stroke:#1f2937
Add a brief narrative under each diagram: which Manager owns the workflow, what triggers it, what completes it.
Produce a call chain for every core use case identified in Phase 1. Don't validate non-core use cases here — those are variations, and the core chains should compose to cover them.
Lay the chains side by side and look for structural similarity.
Asymmetry is a design smell. If three core use cases publish an event at the end and the fourth doesn't, ask: why is the fourth different? What's missing or extra?
Löwy's words: "Symmetry is so fundamental for good design that you should generally see the same call patterns across Managers."
Generate a new hypothetical use case — something the user didn't mention but could plausibly want — and demonstrate that the existing components compose to support it without architectural change.
"What if you needed to add 'analyze projects from 2022–2024 for profitability'? Walk me through the call chain using only the components we already have."
If this fails — if the new use case requires a new Manager or a layer violation — the decomposition isn't composable enough, and you should return to Phase 2.
For 3–5 plausible future changes (drawn from the roadmap, change history, and competitor framing in Phase 2), document which components each change would touch.
When a scenario fails, don't paper over it. Tell the user:
"This scenario blows past three components. That means we have an axis of change that isn't encapsulated yet. Let me re-examine the clusters."
Then loop back to Phase 2.
Add a ## Validation section to report.md containing:
Stop and check in once chains and scenarios all pass:
"All call chains hold and the ripple-radius scenarios stay contained. Ready to write the final recommendation, or do you want to add more stress-test scenarios first?"
Goal: Finalize report.md as a usable, handoff-ready artifact.
The framing, glossary, use cases, volatility analysis, components, and validation are already in the file from Phases 0–4. This phase adds:
For greenfield, give a bottom-up build order:
Call out which components need senior attention — typically the most volatile ones, whose interfaces are the contract that must absorb future change.
For existing systems, add a ## Current → Target mapping:
LambdaInvoker, SQSQueueProcessor, RedisCache), propose
volatility-axis renames as part of the mappingIf the system warrants advanced run-time patterns (Message Bus,
Workflow Managers, Message-Is-The-Application), add an ## Operational Concepts section. These are optional and require organizational
maturity — see references/operational-concepts.md for guidance on
when to recommend them and when to leave them out.
Default position: do not recommend these unless the user's objectives in Phase 0 specifically demand them (e.g., "quick turnaround for new features", "support deep customization across markets", "forward-looking integration"). Otherwise, leave the run-time interactions as direct synchronous calls and let the team mature into the more elaborate patterns later.
Before finalizing the report, regenerate the static architecture and each call chain in a higher-fidelity format. Mermaid is fine during iteration but doesn't preserve component positions across diagrams, which makes the Phase 4 symmetry check hard to read visually.
Step A: Check d2 availability
d2 --version
If the command succeeds, proceed to Step B. If it fails with "command not found", continue to Step C.
If you're on Windows and the user told you they just installed D2 but the command isn't found, suggest restarting the shell to pick up the new PATH before falling back.
Step B: Generate D2 source and render
Write D2 source under decompositions/{system-name}/diagrams/:
static.d2 for the layered architecturecallchain-{usecase-slug}.d2 per core use case (use the same
filename slug for every diagram referencing the use case)Use the canonical templates in references/diagram-templates.md. The
templates enforce a stable component coordinate map — the same
component always sits in the same row/column across every diagram,
which is what makes Phase 4's symmetry check easy to verify by eye.
Render each:
d2 diagrams/static.d2 diagrams/static.svg
d2 diagrams/callchain-match-tradesman.d2 diagrams/callchain-match-tradesman.svg
Then reference the rendered SVGs from report.md with relative paths:


Step C: d2 not installed — pause or fall back
D2 is the preferred final format because it's codified source that can be modified after the fact. The SVG fallback produces the same visual output but is awkward to edit later (hand-tweaking SVG paths vs. editing readable D2 source).
Offer two paths as a structured choice:
d2isn't on PATH, so the final diagrams can't be emitted in their preferred (editable) form. Two options:
- Pause and install —
winget install terrastruct.d2(Windows) orbrew install d2(macOS), then restart the shell and tell me to continue. This is the recommended path; D2 output is editable going forward.- Fall back to embedded SVG — visually identical, but harder to modify after the report is written. Pick this only if D2 install is genuinely not an option.
If the user picks option 1, stop and wait. When they resume, retry Step A.
If the user picks option 2, write SVG directly to diagrams/ using
the SVG templates in references/diagram-templates.md (same
coordinate map, just emitted as SVG).
Don't mix formats in the final report. Pick one and use it for the static diagram and every call chain. Consistency is the point.
Surface anything you couldn't resolve:
Tell the user:
"
decompositions/{system-name}/report.mdis the recommendation (with raw use cases inuse-cases.mdif that file exists). It's structured so you can hand it to a team to either build from or refactor toward. Want me to draft an ADR or a kickoff doc from it, or are we done?"
This skill is mostly self-contained, but four reference files cover deeper material that doesn't belong inline:
references/volatility-techniques.md — extended techniques for
surfacing volatility (the anti-design effort, design factoring
iterations, design-for-your-competitors variants). Consult during
Phase 2 if the user is stuck or the candidate list feels thin.references/operational-concepts.md — Message Bus,
Message-Is-The-Application pattern, Workflow Managers. Consult in
Phase 5 only if the Phase 0 objectives suggest advanced patterns are
warranted.references/anti-patterns.md — full catalog of design "don'ts"
from the book (event publishing rules, queue rules, layer-call
rules). Consult during Phase 3 component definition and during Phase
4 validation as a checklist.references/diagram-templates.md — canonical component
coordinate map and source templates for both D2 and SVG output.
Consult in Phase 5 when rendering the final diagrams.What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/clean-unused-cpm-packagesRemove unused PackageVersion entries from `Directory.Packages.props` files in a .NET repo using Central Package Management (CPM). Scans every `.csproj`, `.props`, and `.targets` file for PackageReference includes, computes which PackageVersion IDs aren't referenced anywhere, removes the unused entries with line-targeted edits that preserve formatting and comments, then verifies with `dotnet restore`. Use this skill whenever the user wants to clean up, prune, or remove unused entries from `Directory.Packages.props`, or says things like "clean up CPM", "remove unused packages from central package management", "the props file has stale entries", "prune Directory.Packages.props", or "dead packages in the central versions file" — even if they don't literally say "CPM". Trigger proactively when the user mentions `Directory.Packages.props` alongside cleanup, removal, dead, stale, or unused. Refuses to run on repos without a `Directory.Packages.props` (CPM not in use)./inline-reviewFind and address inline code-review comments left in the code, marked with the `rev:` prefix (e.g. `// rev:`, `# rev:`, `-- rev:`). These are a manual code review done inline instead of on GitHub — each comment is a question, suggestion, concern, or change request about the nearby code. Use this skill whenever the user asks you to address, handle, resolve, go through, or respond to their inline review comments, rev comments, or `rev:` comments — even when phrased tersely, like "address my rev comments", "handle the reviews", "go through the rev: notes", "I left some inline comments", "respond to my review", or just "address these" right after leaving such comments. Trigger whenever the request references `rev:` comments in the code.Other plugins' skills for the same job
npx claudepluginhub esond/skills --plugin eng