/proschi:image-to-proschifrom Proschi
Converts an image of an architecture diagram (screenshot, PNG, JPG, PDF from draw.io, Lucidchart, Miro, Excalidraw, Visio, or whiteboard photo) into a Proschi (.proschi) model, preserving components, groups, arrows, legend, and reading order.
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: one .proschi file that says what the picture says (same components,
groups, arrows and legend, read in the same order), with every unreadable or
uncertain part marked, that passes npx proschi@latest check, has been
rendered and looked at, and a share link for the user.
Read references/proschi-cheatsheet.md first, above all its Layout section and the colors and legend syntax. This skill adds what reading a picture needs: the inventory, the legend mapping and keeping the source's order.
Write the inventory down (in your notes, not the file). Big images: look at them in tiles or crops until every label is readable; don't guess small text.
Count each list; check the counts again at the end.
| In the picture | In Proschi |
|---|---|
| Fill color meaning an owner, team or lifecycle | legend entry (nearest palette name) + .tag on each node or group |
| Line color or dash meaning planned, deprecated, async | legend entry with dashed/dotted if drawn so + .tag on the edge |
| Warning or "critical" badge | critical on the node |
| A style the legend never explains | a legend entry only if it is clearly deliberate, else a # NOTE: comment |
| Colors with no legend at all | no color: let the category tints show the kind |
One tag per node or edge: if a box is both "external" and "deprecated", pick the meaning the reader needs most and put the other in a comment.
[Kotlin], [NodeJS] →
[Node.js], an AWS icon → its catalog tech); a box labelled with a team →
the closest kind ([Service], [Third Party API]) and @team-name. The
same system drawn twice → one node, with a comment."Kotlin; ElastiCache Redis, RDS"), unless an arrow from
elsewhere ends on them: then their own node, declared right after the box."Order Fulfillment API" → "OF API").group aws "AWS eu-west-1", [Network Boundary] for a cloud or
VPC). A cluster drawn with topics inside → a group of topic nodes. A box
on a group's border is inside it unless its color says it is external.
Keep a one-member group when the picture draws it.# GUESS: the direction).
The label → label [protocol] as written. Arrows from a whole zone → one
edge from the group.Mark anything you could not read or had to infer: # GUESS:, # UNREADABLE:.
The auto-layout knows nothing about the picture's positions; declaration order and the hints carry them:
layout ordered at the top, so the bands keep the declared order even
where arrows point up (keep the arrows as drawn).rank on the group tiers first (rank 0 for the top zone, rank 1
for the next); a top row of single boxes only where alignment
matters. Boxes with an edge between them can't share a rank.direction right
inside its group.rank works only when no
edge joins them. Otherwise wrap them in one group with direction right, and put direction down inside each zone (nested groups
inherit the direction).pos x,y only to nudge one or two nodes at the very end.npx proschi@latest fmt diagram.proschi
npx proschi@latest check --strict diagram.proschi
Fix every error and warning (Unknown tech stack → a catalog tech or the
generic one of its kind, with the product in the name).
npx proschi@latest render --out /tmp/proschi-review diagram.proschi
Put /tmp/proschi-review/architecture.svg next to the source image. If you
only read raster images, convert it first (rsvg-convert -w 2000 architecture.svg -o review.png, magick, or a headless-browser screenshot;
macOS qlmanage -t crops tall images). Check:
Fix the file (order, group edges, regrouping, then one hint at a time;
pos last), check, render again. Keep a change only if the render got
better; revert one that adds crossings. Stop after about five rounds and say what still differs.
npx proschi@latest share-link diagram.proschi
Give the user: the file, the link, the render you checked, the guesses and unreadable labels to confirm, and what the language cannot show (provider logos, curved routes, exact positions).
Picture: top, a "Mobile app" box. Middle, a green zone "Checkout (team Payments)" with "Checkout API [Go]" (warning badge) above a "Session cache [Redis]" box. Bottom, a yellow "Stripe [External]" box. A red dashed arrow from the API to a grey "Legacy invoicing" box. Legend: green = owned by Payments, yellow = external, red dashed = deprecated flow.
title "Checkout"
layout ordered
legend {
owned "Owned by Payments" green
external "External" yellow
deprecated "Deprecated flow" red dashed
}
app "Mobile app" [Mobile App]
group checkout "Checkout" .owned {
api "Checkout API" [Go] @payments critical
cache "Session cache" [Redis]
}
stripe "Stripe" [Stripe] .external
invoice "Legacy invoicing" [Third Party API] # NOTE: grey box, not in the legend
app -> api : Checkout [https]
api -> cache : Sessions
api -> stripe : Charge [https]
api -> invoice .deprecated : Invoice [soap]
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)./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-hld-docProduce a high-level design (HLD) document from a Proschi (.proschi) file with `proschi render --format hld-md` or `hld-html` (overview, requirements, capacity estimates, components, data model, APIs, scenarios, decisions, risks, with diagrams), after enriching the model with the summary, descriptions, entities and decisions the document is built from. Use when the user asks for a design doc, HLD, architecture document, RFC appendix or design review handout for a system described in Proschi, or wants the diagrams exported as SVG, Markdown or HTML for a wiki or docs site./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