/proschi:proschi-design-reviewfrom Proschi
Reviews Proschi (.proschi) system designs like a senior engineer: runs `proschi check`, `test`, and `analyze`, then identifies SPOFs, saturation, missing failure scenarios, sync-vs-async issues, data risks, cost waste, and diagram-requirement gaps. Proposes concrete edits and applies them on request.
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 short, prioritised review backed by the simulation's numbers, where every finding comes with the exact edit that fixes it; edits applied only when the user wants them; the result validated and shared.
Syntax: references/proschi-cheatsheet.md.
The traffic, requirements, capacity, entity, decision and test
blocks, test assertions and the simulation's defaults:
references/proschi-simulation.md.
npx proschi@latest check --strict design.proschi
npx proschi@latest test design.proschi
npx proschi@latest analyze design.proschi # needs a traffic block
Read the whole file (and the files it imports). Note what the design claims
in requirements, test, decision blocks and descriptions.
Look for each of these; skip what does not apply.
Correctness of the model
check (unknown techs, steps with no connection,
responses without requests). Unconnected or unused nodes.Failure handling
alt with -x and
what the user gets (503, a fallback, a retry later)?Single points of failure in analyze: a node with one replica on a
synchronous path. Is there a survive any node failure requirement? Should there be?Load and latency (only with traffic)
shards, not replicas.->> + a worker, par, a cache, a timeout.x<N>) and big payloads (~size) that dominate load or egress.mix (a 100% hit rate hides the miss path).Data
durable "U" / writes X before responding.any eventual store):
test "…" { "Pay" never calls any eventual store }.entity blocks placed in a node that is not a store; stores with no entity.Cost
size L where S would do.cost <=; if there is no budget, state the monthly total.Security and boundaries
test "…" { no path from any client to any database }.Readability (render it: npx proschi@latest render --out /tmp/proschi-review design.proschi, then look)
a -> b plus b -> a pairs.color with no legend, a legend no tag uses, critical on most nodes.Requirements honesty
capacity overrides with no source for the number.Order by impact: what breaks under the stated load or a single failure, then data risks, then latency, then cost and tidiness. For each finding:
[High] api is a single point of failure on every use case (1 replica, 99.5%).
Evidence: analyze → "Single points of failure: api"; availability 99.39% vs 99.9%.
Fix: `api "Shop API" [Node.js] x3` and add `survive any node failure` to requirements.
Keep it to the findings that matter (usually 3–8). Say what is good, too,
in one line. Don't invent numbers: quote analyze and test.
Make the edits, then:
npx proschi@latest fmt design.proschi
npx proschi@latest check design.proschi
npx proschi@latest test design.proschi
npx proschi@latest analyze design.proschi
Render and look at the diagram again (mandatory; the cheat-sheet's Render
and review checklist). Iterate until check is clean, the tests that
should pass do, and the render reads well. Add a
test or requirement for each fixed risk so it cannot come back, and a
decision "…" { because "…" rejected "…" "…" } for each trade-off the
user chose. Report before/after numbers.
npx proschi@latest share-link design.proschi
Give the user the review, the link (the Results tab shows the same checks
and a load overlay), and, if useful, the HLD document:
npx proschi@latest render --format hld-md --out docs design.proschi.
Input (abridged): one api replica, Place order with only a happy path
that calls Stripe and SendGrid synchronously, 50 rps.
Findings:
Place order has one scenario; a Stripe
decline or a database outage is undefined. Fix: add
} alt "Payment failed" { … api --> user : 402 … } and
} alt "DB down" { api -x db : INSERT order … api --> user : 503 }.api x1 on every path (analyze: availability 99.39%).
Fix: x2+ and survive any node failure.api ->> rabbit : PUBLISH OrderPlaced, a
worker that sends it, and test "…" { "Place order" never waits for sendgrid }.After the edits, the design under review looks like:
title "Checkout"
user "Customer" [Browser]
api "Shop API" [Node.js] x2
db "Shop DB" [PostgreSQL] x2
rabbit "Order events" [RabbitMQ] x2
worker "Mailer" [Worker] x2
stripe "Stripe" [Stripe]
sendgrid "SendGrid" [SendGrid]
user -> api
api -> db
api -> stripe
api -> rabbit
rabbit -> worker
worker -> sendgrid
usecase "Place order" {
user -> api : POST /orders {"sku": "A1"}
api -> stripe : CHARGE card
alt "Paid" {
api -> db : INSERT order
api ->> rabbit : PUBLISH OrderPlaced {"id": "o-1"}
api --> user : 201 {"id": "o-1"}
rabbit ->> worker : OrderPlaced
worker -> sendgrid : SEND receipt
} alt "Payment failed" when "card declined" {
api --> user : 402 {"error": "payment_failed"}
} alt "DB down" {
api -x db : INSERT order
api --> user : 503
}
}
traffic {
"Place order" 50 rps mix "Paid" 97%, "Payment failed" 2%, "DB down" 1%
}
requirements {
durable "Place order"
survive any node failure
}
test "Checkout handles failures and never waits for email" {
"Place order" never waits for sendgrid
"Place order" has scenario "DB down"
"Place order" responds 5xx
no path from user to any database
}
What SKILL.md sets; muted values are Claude Code's defaults
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.npx claudepluginhub gvart/proschi --plugin proschiOther plugins' skills for the same job