Prompting Guide
Use these instructions when asking an AI coding agent to create or update DiagramPilot diagrams.
Recommended Agent Instruction
Section titled “Recommended Agent Instruction”Create or update a DiagramPilot diagram in this repository.Use a structured .dp.yaml source file, run the read-only repo check first,preserve stable IDs, validate the spec, and render an SVG artifact with anexplicit --out path. Render PNG with `--format png` only when a raster artifactis needed. Do not hand-edit generated artifacts.Architecture Prompt
Section titled “Architecture Prompt”Create docs/architecture.dp.yaml showing the main runtime components in thisproject. Use stable lowercase snake case IDs, group related services, includelabeled edges for major data flows, validate the spec, and renderdocs/architecture.svg.Update Prompt
Section titled “Update Prompt”Update the existing DiagramPilot source file to include the new payment service.Preserve all existing IDs unless an ID is invalid. Add only the new nodes andedges required, validate, and render the SVG again.Review Prompt
Section titled “Review Prompt”Run diagrampilot check for this repository. Review .dp.yaml files for brokenreferences, duplicate IDs, invalid group containment, unknown icons, unclearlabels, and stale expected SVG artifacts. Report findings and fix only theissues directly related to DiagramPilot diagrams.Export Prompt
Section titled “Export Prompt”Export docs/architecture.dp.yaml to DOT and show me the output. Do not write anexported file unless I ask for one.Use --out when the exported Mermaid, D2, or DOT artifact should be written to
disk.
Bad Prompt Pattern
Section titled “Bad Prompt Pattern”Make me a nice architecture diagram.This is too vague. It does not specify where the source should live, whether to validate, or how to preserve durable editability.
Good Prompt Pattern
Section titled “Good Prompt Pattern”Create a DiagramPilot source file at docs/architecture.dp.yaml for the auth,API, worker, queue, and database components. Render docs/architecture.svg.Use stable IDs and include labels on edges that describe protocols or data flow.