Design with agents
Generic “draw our architecture” prompts invent boxes to complete the graph. The
design-kekonic-diagrams skill tells Cursor, Claude Code, Codex, and other Skills CLI
hosts to inspect the repo you name, write .kdiagram source, and verify it with the
CLI. Missing facts go in the notes, not in the diagram.
Install
Section titled “Install”npx skills add kekonic/diagramsWhat the agent does
Section titled “What the agent does”- Names the reader and one question the diagram should answer.
- Separates what you said, what it found in code or configuration, and what it is assuming.
- Chooses a diagram kind before writing boxes (architecture, events, workflow, ERD, sequence, or state) and splits the work when one picture would have to explain everything.
- Writes
.kdiagramsource. Layout and presentation stay in that file. - Runs
kdiagrams check,format,render, andanalyze. - Returns the source, a portable SVG, assumptions, intentional omissions, and anything it could not resolve.
Missing facts go in those notes. They do not become extra boxes.
Show a new engineer how checkout moves from the web app through payment authorization. Read the code. Do not invent services.
Web app → API → Checkout → Billing → Stripe
Mobile uses the same gateway — noted, not drawn as fact.
kdiagrams check · render · analyze
Prompt
Section titled “Prompt”Give a specific reader question and say which files the agent may inspect:
Use the Kekonic Diagrams skill to show a new engineer how checkout moves from the web app through payment authorization. Read the relevant code and configuration, distinguish observed facts from assumptions, and return the
.kdiagramsource plus a portable SVG.
Review the assumptions as carefully as the diagram.
After you have a file
Section titled “After you have a file”Commit the .kdiagram source with the system it describes. Render SVG in CI the same way you render
any other generated artifact. See the quickstart and the
CLI reference.
Other install options
Section titled “Other install options”From git (same skill files):
npx skills add https://github.com/kekonic/diagrams/tree/main/packages/diagrams-agentsThe same files ship as @kekonic/diagrams-agents
for environments that pin skills as a package dependency. The Skills CLI currently installs from
git, not from the npm package name.