/proschi:proschi-hld-docfrom Proschi
Generates a high-level design document from a Proschi (.proschi) file using `proschi render --format hld-md` or `hld-html`. Produces sections for overview, requirements, capacity estimates, components, data model, APIs, scenarios, decisions, and risks with diagrams.
Ships in Proschi. 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.
Goal: a design document generated from the .proschi file (so it never
drifts from the diagram), with every section filled from the model, written
to the repo's docs folder, plus a share link to the live diagram.
Syntax: references/proschi-cheatsheet.md.
proschi render --format hld-md builds the document from the model and
leaves out sections that have no content:
| Section | Comes from |
|---|---|
| Overview | title "Name" "Summary", the architecture diagram, counts of components, use cases, teams |
| Requirements | use cases (description, scenarios, when conditions); each requirements line and test block with pass/fail and the measured value |
| Capacity estimates | traffic; load, utilisation, replicas and cost per node (from the simulation) |
| Components | name, tech, kind, @team, xN, the node description, entities stored |
| Data model | entity blocks |
| APIs | use cases grouped by endpoint: request body and each scenario's entry response |
| Scenarios | per scenario: condition, traffic share, latency, sequence diagram |
| Decisions | decision blocks with because and rejected options |
| Risks | failing checks, hot (>70%) or saturated nodes, single points of failure, use cases without an error scenario |
A thin model gives a thin document. Fill the gaps from the code, ADRs, README
and the user; mark guesses with # GUESS: and confirm them:
title "Checkout" "Takes payment and records orders for the web shop".api "Shop API" [Node.js] @shop "Validates carts, charges cards, records orders".usecase "Place order" "Customer pays for the cart" descriptions and
alt "…" when "…" conditions.entity blocks for the main tables/collections, in their store.decision blocks for choices already made (from ADRs, PR discussions):entity Order in db "One paid order" {
id uuid key
userId uuid index
total int
createdAt time index
}
decision "Charge before writing the order" {
because "A failed charge must not leave an order behind"
rejected "Write first, charge async" "Orders without payment need cleanup jobs"
}
traffic and requirements make the capacity and risks sections
meaningful (the proschi-capacity-plan skill).npx proschi@latest fmt design.proschi
npx proschi@latest check design.proschi
npx proschi@latest test design.proschi
render refuses a document with errors, so fix them first. Failing tests
are fine to render (they become Risks), but tell the user.
The document embeds the architecture diagram, so review it first
(mandatory): npx proschi@latest render --out /tmp/proschi-review design.proschi,
look at architecture.svg, and walk the cheat-sheet's Render and review
checklist. Fix crossings and sprawl in the model (order, group edges,
hints), not in the output.
npx proschi@latest render --format hld-md --out docs design.proschi # docs/design.hld.md (Mermaid diagrams; GitHub/GitLab render them)
npx proschi@latest render --format hld-html --out docs design.proschi # docs/design.hld.html (one self-contained page with SVGs)
Other exports for wikis and docs sites:
npx proschi@latest render --out docs/diagrams design.proschi # architecture.svg + <usecase>--<scenario>.svg
npx proschi@latest render --format md --out docs design.proschi # Mermaid blocks only
npx proschi@latest render --format html --out site design.proschi # every SVG on one page
Read the generated file once. If a section is empty or wrong, fix the model (not the generated file) and render again. Hand-written context (goals, non-goals, rollout, open questions) goes in a separate Markdown file that links to or includes the generated one, so re-rendering never loses it.
npx proschi@latest share-link design.proschi
Give the user the document path, the link to the live diagram (playback of
every scenario, HLD tab with the same document), and the gaps you could
not fill. Suggest regenerating the HLD in CI or with the
proschi-keep-in-sync skill when the model changes.
For the checkout.proschi below:
npx proschi@latest check checkout.proschi
npx proschi@latest render --format hld-md --out docs checkout.proschi
writes docs/checkout.hld.md with Overview, Requirements (Functional,
Non-functional), Capacity estimates (Traffic, Load per component),
Components, Data model (Order in Shop DB), APIs (POST /orders), Scenarios
(Paid, Payment failed (error)) and Decisions. There is no Risks section
because nothing fails, saturates or stands alone; there is no Flow tests
section because the file has no test block. Add one (e.g.
"Place order" writes db before responding) and render again.
title "Checkout" "Takes payment and records orders for the web shop"
user "Customer" [Browser]
api "Shop API" [Node.js] @shop x2 "Validates carts, charges cards, records orders"
db "Shop DB" [PostgreSQL] @shop x2
stripe "Stripe" [Stripe]
user -> api
api -> db
api -> stripe
usecase "Place order" "Customer pays for the cart" {
user -> api : POST /orders {"sku": "A1"}
api -> stripe : CHARGE card
alt "Paid" {
api -> db : INSERT order
api --> user : 201 {"id": "o-1"}
} alt "Payment failed" when "card declined" {
api --> user : 402 {"error": "payment_failed"}
}
}
traffic {
"Place order" 50 rps mix "Paid" 98%, "Payment failed" 2%
}
requirements {
p99 "Place order" < 1s
durable "Place order"
}
entity Order in db "One paid order" {
id uuid key
userId uuid index
total int
}
decision "Charge before writing the order" {
because "A failed charge must not leave an order behind"
rejected "Write first, charge async" "Orders without payment need cleanup jobs"
}
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
hld, architecture-document, design-document, proschi, system-design
7 skills in this plugin
/code-to-usecasesRead application code and write Proschi `usecase` blocks (request flows with responses, async messages, parallel calls and alt failure scenarios) that pass `proschi check` and `proschi test`. Use when the user wants sequence diagrams, request flows or use cases of their endpoints, consumers or jobs in Proschi; when a .proschi architecture exists but has no use cases; or when they point at HTTP routes, controllers, gRPC services, message handlers or an OpenAPI spec and ask how a request flows through the system. Works for any language (Spring/Kotlin, Express/NestJS, FastAPI/Django, Go, Rails and others)./image-to-proschiTurn an image of an architecture diagram (a screenshot, PNG, JPG or PDF export from draw.io, Lucidchart, Miro, Excalidraw, Visio or a whiteboard photo) into a Proschi (.proschi) model that keeps the source's components, groups, arrows, legend and reading order, passes `proschi check` and renders cleanly. Use when the user shares or points at a picture of a system diagram and asks to convert, recreate, redraw, digitise or "make this diagram as code" in Proschi./infra-to-proschiTurn an existing architecture description into a Proschi (.proschi) model that renders, simulates and passes `proschi check`. Use when the user asks to diagram, model, visualise or "convert to Proschi" their system from what already exists - prose or wiki docs, a README architecture section, Mermaid diagrams, Terraform, CloudFormation, CDK, Pulumi, Kubernetes manifests, Helm charts or docker-compose files - or asks for an architecture diagram as code of the current repository./proschi-capacity-planSize a Proschi design for its load - add `traffic`, `requirements` (p99 latency, availability, durability, failure survival, cost) and replicas, shards and capacity overrides from stated SLOs or expected load, then run `proschi analyze` and `proschi test`, explain the bottlenecks and fix them until the requirements pass. Use when the user asks whether a .proschi design scales, how many replicas or shards it needs, what it costs, what its p99 or availability is, or wants to turn traffic numbers, SLOs or a back-of-the-envelope estimate into a checked capacity plan./proschi-design-reviewReview an existing Proschi (.proschi) system design like a senior engineer in a design review - run `proschi check`, `test` and `analyze`, then find single points of failure, saturated or oversized nodes, missing failure scenarios, synchronous calls that should be async, data and consistency risks, cost waste and gaps between the diagram and its requirements, and propose concrete edits (and apply them when asked). Use when the user asks to review, critique, sanity-check or improve a .proschi design, asks "will this hold up?", or wants feedback on a system design interview answer written in Proschi./proschi-keep-in-syncKeep a repository's Proschi (.proschi) architecture files in sync with its code - detect architecture drift in a branch, diff or pull request (a new service, datastore, queue or external API; a new dependency between services; a new or changed endpoint, consumer or status code) and update the nodes, connections, use cases and tests to match, then validate with `proschi check` and `proschi test`. Use when reviewing or preparing a PR in a repo that contains .proschi files, when the user asks whether the diagrams are still accurate, or wants CI that keeps them honest (the gvart/proschi GitHub Action).npx claudepluginhub gvart/proschi --plugin proschiOther plugins' skills for the same job