Repo
Local
Works in a checkout, next to source code.
Local diagrams for agents
Source in the repo. SVG out for review.
npx diagrampilot checkWorkflow
One checkout. One reviewable artifact.
Source sits beside the code.
version: 1
id: checkout_architecture
title: Checkout service architecture
objects:
- id: web_app
label: Web app
kind: service
- id: checkout_api
label: Checkout API
kind: service
edges:
- id: submit_order
from: web_app
to: checkout_api$ npx diagrampilot check
ok 1 DiagramPilot Source File
ok docs/architecture.svg is fresh$ npx diagrampilot generate
ok wrote docs/architecture.svg
ok wrote docs/architecture.mdRepo
Works in a checkout, next to source code.
CLI
`diagrampilot check` validates before review.
Error
Failures name the DiagramSpec field to fix.
Tools
`diagrampilot create`, `diagrampilot inspect`, `diagrampilot format`, and `diagrampilot watch` stay local.
MCP
Add `@diagrampilot/mcp` and run `diagrampilot-mcp` for local agent helpers.
Local path
Keep DiagramSpec source beside rendered output. Validate locally, then review the artifact.
demo-projects/checkoutdocs/architecture.dp.yamlnpx diagrampilot checkdocs/architecture.svgInstall the CLI, try the demo, inspect npm, or open GitHub. Public docs cover Output Profiles, DiagramSpec, MCP usage, and repairable validation errors.