/proschi:infra-to-proschifrom Proschi
Converts existing architecture descriptions (prose, Mermaid, Terraform, Kubernetes, Docker Compose, etc.) into a Proschi model that renders, simulates, and passes validation checks.
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 (default architecture.proschi at the repo root, or
docs/architecture.proschi if a docs/ folder exists) whose nodes, groups
and connections match what the sources say, with every guess marked, that
passes npx proschi@latest check, and a share link for the user.
Read references/proschi-cheatsheet.md
first: it has the syntax, the catalog of [Tech] names and the CLI.
Look for, in this order, and read what you find:
| Source | Where to look |
|---|---|
| Mermaid | *.mmd, ```mermaid blocks in *.md |
| Compose | docker-compose*.yml, compose*.yaml |
| Kubernetes / Helm | k8s/, deploy/, manifests/, charts/*/templates/, values*.yaml, kustomization.yaml |
| Terraform / IaC | *.tf, *.tfvars, template.yaml / *.template.json (CloudFormation, SAM), cdk.json + lib/*.ts, Pulumi.yaml |
| Prose | README*, ARCHITECTURE.md, docs/, ADRs, wiki pages the user pastes |
Mermaid shortcut. Convert first, then refine the result with the rules below:
npx proschi@latest import mermaid docs/architecture.md -o architecture.proschi
Warnings on stderr name what was dropped (styling, notes, loops); read them.
One node per deployable thing or managed resource that takes part in
requests. Pick the most specific catalog tech; otherwise the generic tech of
its kind ([Service], [Database], [Message Queue]) with the product in
the name.
| Source shape | Proschi |
|---|---|
Compose service with image: postgres, mysql, redis, rabbitmq, nginx, … | node with that tech ([PostgreSQL], [Redis], [RabbitMQ], [nginx]) |
Compose service with build: | your service: tech from the Dockerfile / language ([Node.js], [Spring Boot], [Go], [FastAPI]); a command: running a consumer → [Worker] or the language |
k8s Deployment / StatefulSet | node; replicas: 3 → x3; the image decides the tech |
k8s Ingress / Gateway API | [Kubernetes Ingress] (or [nginx], [Envoy], [Traefik] from the ingress class) |
k8s CronJob / Job | [Worker] node |
aws_lb / AWS::ElasticLoadBalancingV2 | [AWS Load Balancer] |
aws_api_gateway_*, aws_apigatewayv2_* | [AWS API Gateway] |
aws_lambda_function | [AWS Lambda] |
aws_ecs_service, aws_eks_* | [AWS ECS] / [AWS EKS] service node; desired_count → xN |
aws_db_instance, aws_rds_cluster | [AWS RDS] / [AWS Aurora] (or [PostgreSQL] from engine); read replicas → xN |
aws_dynamodb_table, aws_elasticache_*, aws_s3_bucket, aws_sqs_queue, aws_sns_topic, aws_msk_cluster, aws_cloudfront_distribution, aws_route53_* | [DynamoDB], [AWS ElastiCache], [AWS S3], [AWS SQS], [AWS SNS], [AWS MSK], [AWS CloudFront], [AWS Route53] |
| GCP / Azure equivalents | the GCP … / Azure … techs in the cheat-sheet |
Third-party API keys (STRIPE_*, SENDGRID_*, TWILIO_*, OPENAI_*) | external node ([Stripe], [SendGrid], [Twilio], [OpenAI]) |
| Users, browsers, apps | [Actor], [Browser], [Mobile App] |
Leave out what is not on a request path: IAM roles, security groups
themselves, log groups, alarms, CI runners, secrets stores (unless the app
calls them at request time). Ids: snake_case or camelCase from the resource
name (order-api → order_api). Owner teams from CODEOWNERS or labels →
@team. A one-line responsibility → the description string.
group id "Name" [Style] { … } for the boundaries that matter to a reader:
[Network Boundary]; private subnets or a DMZ →
[Security Zone].[Service Group].group (Logical Group).A group with one member is fine when it is a real boundary (a database in its own subnet). Nest at most two levels.
Add a -> b : label (caller → callee) for each dependency you can see:
DATABASE_URL=postgres://…@db, REDIS_HOST,
KAFKA_BROKERS, http://orders:8080 → connection to that host's node.depends_on and links; k8s Service DNS names
(orders.default.svc) in env or ConfigMaps; Ingress rules → backend service.sqs:SendMessage on queue X) → publisher → X.aws_lambda_event_source_mapping → queue → function;
aws_sns_topic_subscription → topic → subscriber; LB target groups → service.HTTPS, SQL, gRPC, Publish,
Consume). A consumer reads from a queue: queue -> worker : Consume.Everything not stated by a source gets a comment saying so:
search "Product search" [Elasticsearch] # GUESS: named in README, no manifest found
api -> search : Query # GUESS: inferred from ELASTIC_URL in api env
Prefer leaving a node unconnected (with a # TODO: comment) over inventing
a dependency. At the end, list the guesses for the user to confirm.
The file's order is the diagram's reading order. Follow the layout rules:
layout ordered,
rank on group tiers, direction right in row-like groups.a -> b plus b -> a.color unless the sources mark something the reader must tell
apart: ownership (CODEOWNERS, team labels), planned or deprecated parts.
Then a legend entry per meaning and a .tag on each node, group or edge.critical only where a source says so (tier-0, on-call, SLO).npx proschi@latest fmt architecture.proschi
npx proschi@latest check architecture.proschi
Fix every error. Fix warnings too: Unknown tech stack 'X'. Did you mean 'Y'?
→ use Y or a generic tech; No connection between 'a' and 'b' → add the
connection. Repeat until no problems. If the file has use cases, traffic,
requirements or tests, also run npx proschi@latest test architecture.proschi
and make it pass (or report why it cannot). To add request flows next, use the
code-to-usecases skill; for load and cost, proschi-capacity-plan.
npx proschi@latest render --out /tmp/proschi-review architecture.proschi
Look at the whole of /tmp/proschi-review/architecture.svg (as a PNG if you
can only read raster images; see the cheat-sheet) and walk the checklist in
the cheat-sheet:
crossings, edges pointing up, stranded nodes, sprawl, the wrong order. Fix
the file, check and render again. Don't hand over a diagram you have not
looked at.
npx proschi@latest share-link architecture.proschi
Give the user: the file path, the link (it opens the diagram in the web editor; the diagram is inside the link, nothing is uploaded), the list of guesses to confirm, what you left out, and anything the render still gets wrong.
docker-compose.yml (abridged):
services:
nginx: { image: nginx:1.27, depends_on: [api] }
api: { build: ., environment: { DATABASE_URL: "postgres://db/shop", REDIS_URL: "redis://cache", AMQP_URL: "amqp://rabbit", STRIPE_API_KEY: "…" } }
worker: { build: ., command: node src/worker.js, environment: { DATABASE_URL: "postgres://db/shop", AMQP_URL: "amqp://rabbit", SENDGRID_API_KEY: "…" } }
db: { image: "postgres:16" }
cache: { image: "redis:7" }
rabbit: { image: "rabbitmq:3-management" }
architecture.proschi, declared in reading order (client, proxy, API,
queue, worker, stores, externals):
title "Shop" "Online shop: catalogue, checkout and order emails"
layout ordered
user "Customer" [Browser]
group shop "Compose project: shop" [Service Group] {
nginx "Reverse proxy" [nginx]
api "Shop API" [Node.js] "Catalogue and checkout"
rabbit "Order events" [RabbitMQ]
worker "Order worker" [Node.js] "Sends order confirmations" # from command: node src/worker.js
cache "Product cache" [Redis]
db "Shop DB" [PostgreSQL]
}
stripe "Stripe" [Stripe] # from STRIPE_API_KEY
sendgrid "SendGrid" [SendGrid] # from SENDGRID_API_KEY
user -> nginx : HTTPS # GUESS: port 443 published on nginx
nginx -> api : HTTP
api -> rabbit : Publish
api -> cache : GET/SET
api -> db : SQL
api -> stripe : HTTPS
rabbit -> worker : Consume
worker -> db : SQL
worker -> sendgrid : HTTPS
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Docker, Kubernetes, Terraform, Helm, Docker Compose, AWS, Mermaid
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./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.npx claudepluginhub gvart/proschi --plugin proschiOther plugins' skills for the same job