/wip-skillz:architecture-proposal-analysisfrom wip-skillz
Analyzes architecture proposals by writing structured Markdown analysis and generating an HTML page with diagrams, sidebar, and table of contents.
Ships in wip-skillz. 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.
This skill analyses an architecture proposal. You write the analysis in a Markdown file, while render.mjs generates the HTML page from that file.
$skill below is the base directory of this skill, which is the folder that the harness prints when it loads the skill.
These are principles, not exact quantifiable checks. The example under a principle shows one case. It isn't a rule.
The examples come from the example analysis, which is about the reminders of a veterinary clinic.
render.mjs generates the HTML, which includes these parts:
In the example, the first paragraph defines the proposal: the vaccination reminder rules will move from the clinics context into the planned reminders context.
In the example, a diagram shows the dependencies of the planned context. Another diagram shows the dependency that exists today.
The user decides where more information is required. The procedure shows the steps.
Don't dump lots of unconnected points and then join them all together at the end.
In the example, the title is a question: "Should the vaccination reminder rules move into the planned reminders context?"
State what actually happens. In the example, "reminders reads GetOwnerContact(owner) from patients" replaces a vague sentence like "reminders gets the details".
In the example, the rule about the owner's contact details is explained in 3 layers:
In the example, each arrow shows whether the dependency is a read or a write.
In the example, the text states that reminders depends on patients. The arrow points from reminders to patients.
In the example, a sequence diagram answers the question "why does reminders need the owner's contact details?".
In the example, the section with the sequence diagram is collapsed.
Write the structure of the analysis with minimal details. The skeleton of the example shows one first draft.
Render the page and open it:
node "$skill/render.mjs" <file>.md
open <file>.html
The user decides where more information is required. Add it, then render the page again.
Use this recipe when a proposal adds a new bounded context, or when you analyse a context that exists. The example analysis of the reminders context shows the full output.
Write the analysis with the procedure.
Write a JSON file for each of these diagrams:
Generate the HTML of each diagram:
node "$skill/diagrams/<tool>.mjs" <file>.json
Show each board in the analysis with a board preview, under the sentence that makes the point of its section.
The tool generates the first version of a diagram. After that, you can edit the HTML directly, for example to add a card or to change a label. A new run of the tool overwrites those edits.
Each diagram is on a board that the reader can pan and zoom. The reader can also drag each card. The browser keeps the position of each card that the reader moves.
In each JSON file, text between backticks shows as code.
bounded-context-canvas.mjs reads these fields. canvas.json is an example.
| Field | Content |
|---|---|
name, summary | The title of the context and a sentence that sums it up. |
purpose | Why the context exists. |
classification | domain, businessModel (a list) and evolution. |
roles | A list of { name, why }. |
inbound, outbound | A list of collaborators: { name, kind, messages }. kind is context, actor or external. The default is context. Each message is { type, name }, where type is command, query or event. |
language | A list of { term, meaning }. |
decisions, assumptions, metrics, questions | Lists of sentences. |
system-context.mjs reads these fields. system-context.json is an example.
| Field | Content |
|---|---|
title, summary | The heading of the page and one sentence under it. |
system | The context in the middle: { id, name, description }. |
neighbours | A list of { id, name, kind, description }. The tool puts them around the context in the order of the list, clockwise from the top. |
relations | A list of { from, to, label }. The arrow points from the side that depends to the side that it depends on. |
In the example, reminders reads booked vaccinations from booking and also listens to events from booking. These are 2 relations, which makes the kind of each dependency visible.
message-flow.mjs reads these fields. flow-reminder-sent.json is an example.
| Field | Content |
|---|---|
title, summary | The heading of the page and one sentence under it. |
participants | A list of { id, name, kind, at }. kind is context, actor or external. at is [column, row] on the grid. |
steps | A list of { from, to, type, name, note } in order. type is command, query or event. note is optional. |
The tool numbers the steps. In a message flow, the arrow points from the sender of the message to the receiver. That's different from the system context diagram, where the arrow shows the direction of the dependency.
# heading is the title of the page.## heading is the introduction. The table of contents goes after the introduction.## heading is a top-level entry in the sidebar. The ### and #### headings under it are its sub-sections.{collapsed} at the end of a ## , ### or #### heading starts that section closed.A structure diagram draws boxes in rows and the dependencies between them:
```diagram structure
title Option A
box app = Reception app
box patients = Patients context
box reminders = Reminders context
row app
row patients reminders
1 app -> patients write `RegisterOwner(owner, contact details)`
2 patients -> reminders read `GetRequiredContactFields(clinic)`
```
box <id> = <label> declares a box.row <id> <id> … places boxes side by side, one row per line. Without a row line, all the boxes go in one row.<number> <from> -> <to> [read|write] <operation>. Write - instead of a number for a dependency without a step number.A sequence diagram draws the messages between participants, in order. The script numbers the messages:
```diagram sequence
title The daily reminder job
participant reminders = Reminders context
participant patients = Patients context
reminders -> patients: GetDueVaccinations(1 June)
patients --> reminders: Rex, rabies, owner 41
reminders -> reminders: finds the rule for rabies
note reminders: sends the SMS 14 days before the due date
```
-> is a call and --> is a reply.note <id>: <text> draws a note on the participant's lifeline.The script stops with the line number when it can't read a line of a diagram.
A board preview shows a live, scaled-down copy of a board that a diagram tool generated. The path is relative to the Markdown file:
```diagram board
file system-context.html
```
diagrams/board.css (opens in a new tab)diagrams/board.js (opens in a new tab)diagrams/board.mjs (opens in a new tab)diagrams/bounded-context-canvas.css (opens in a new tab)diagrams/bounded-context-canvas.mjs (opens in a new tab)diagrams/message-flow.css (opens in a new tab)diagrams/message-flow.mjs (opens in a new tab)diagrams/panel.js (opens in a new tab)diagrams/system-context.css (opens in a new tab)diagrams/system-context.mjs (opens in a new tab)diagrams/wires.js (opens in a new tab)examples/reminders-context/analysis.html (opens in a new tab)examples/reminders-context/analysis.md (opens in a new tab)examples/reminders-context/canvas.html (opens in a new tab)examples/reminders-context/canvas.json (opens in a new tab)examples/reminders-context/flow-reminder-failed.html (opens in a new tab)examples/reminders-context/flow-reminder-failed.json (opens in a new tab)examples/reminders-context/flow-reminder-sent.html (opens in a new tab)examples/reminders-context/flow-reminder-sent.json (opens in a new tab)examples/reminders-context/system-context.html (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ntcoding/wip-skillz --plugin wip-skillz7 skills in this plugin
/explain-clearlyExplain code, a problem, an idea or a decision so that the reader understands it on the first read. Use it whenever a reply explains how code works, why something happens, what a change does or what a review found. Use it whenever Nick has to decide something too. Also trigger on "/explain-clearly", "explain", "why", "how does", "what does", "walk me through", "I don't understand what you mean" and "what are you talking about?". Every explanation follows Point, Explain, Evidence (PEE). A decision ends with a list of options, their trade-offs and a recommendation./mr-descriptionUse before creating a merge request or pull request, or before changing the description of one (glab mr create, glab mr update, gh pr create, gh pr edit). Also use it to fix the description of an existing MR ("fix the description of !N"). Every description is approved by Nick before it is posted./nick-reviewA first pass over a merge request, or a group of them, for Nick to read before he reviews. Trigger on "review !N", "review these MRs", "/nick-review <iid…>". It checks correctness against the spec, compliance with the repository's rules, and simplification. One subagent per merge request. It opens an HTML report and never posts anything to GitLab./nick-walkthroughA walkthrough of a merge request for Nick to read instead of the diff. Trigger on "walk me through !N", "walkthrough of !N", "/nick-walkthrough <iid>" and on a pasted block that starts with "Nick's feedback on the walkthrough". It explains what the merge request does as a list of points, shows the code that each point is about and opens an HTML page that Nick comments on. It never posts anything to GitLab./rewrite-like-nickRewrite a document so that it reads like Nick wrote it. Any document, like a README, an ADR, a skill, a guide, a wiki page, an MR description. Trigger on "rewrite this like me", "rewrite in my tone", "this is AI slop", "this reads like AI", or /rewrite-like-nick <path>. The whole document is never rewritten before Nick approved a calibration on a small sample./scratch-padTurn this conversation into collaboration on an HTML scratch pad. Nick starts the skill for a new scratch pad, for the conversation so far or for an existing scratch pad.Other plugins' skills for the same job