Codechroma Decision Diagram
ASecurityDraw a small abstract decision diagram per option for a question you are about to ask the user in their CodeChroma agent window -- components, data flow, ownership or trade-offs of an option that may not exist in the code yet. Use before calling `ask_user` with `kind: "diagram"` for any question that changes structure (boundaries, data flow, ownership, a new component), and when a `[CodeChroma request` message says the user asked for diagrams. You draw through the `draw_option_diagram` MCP to...
- 10 stars
- 0 votes
- 0 copies
- 0 views
- Added November 11, 2026
Works with
Security analysis
100/100Pro scans all 3 files and shows the line behind each finding
npx -y skills add gutzerk/code_chroma --skill codechroma-decision-diagram --agent claude-codeAre you the author of Codechroma Decision Diagram?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/gutzerk-codechroma-decision-diagram)---
name: codechroma-decision-diagram
description: Draw a small abstract decision diagram per option for a question you are about to ask the user in their CodeChroma agent window -- components, data flow, ownership or trade-offs of an option that may not exist in the code yet. Use before calling `ask_user` with `kind: "diagram"` for any question that changes structure (boundaries, data flow, ownership, a new component), and when a `[CodeChroma request` message says the user asked for diagrams. You draw through the `draw_option_diagram` MCP tool of the `codechroma` server.
---
A decision diagram helps the user pick between options. It is not a view of the repository: for the
C1, patterns or impact views use `codechroma-draw-diagram` instead.
## Draw
1. One small diagram per option, or one shared diagram with the option's own part marked `new`.
At most **12 nodes** each (the tool rejects more), labelled in the user's language.
2. Call `draw_option_diagram` (server `codechroma`, may appear as
`mcp__codechroma__draw_option_diagram`) once per option:
`title` (the option's title), `nodes` as `{id, label, description?, status?}`, `edges` as
`{from, to, label?}`. Set `status: "new"` on parts that do not exist yet.
Give every node a one-sentence `description` (its role or what changes) and every edge a verb `label`
(what flows or who calls whom); the question view shows both, so a bare box gives the user nothing to
decide on. The tool warns when more than half the nodes lack a description.
3. The result is `{diagram_ref}`. Pass it as `diagram_ref` on that option in `ask_user`.
Only a ref from `draw_option_diagram` is accepted: never draw an option diagram on the canvas
(canvas PATCH, `codechroma-draw-diagram`) and pass its id; `ask_user` rejects it.
4. Call `ask_user` with `kind: "diagram"` and the full option contract (see `codechroma-grill`).
The question and its diagrams appear in the user's CodeChroma agent window above this terminal,
not on the canvas: say that in one line, then end your turn.
If a `[CodeChroma request ...]` message arrives, draw the diagrams, then call `ask_user` again with the same
`session_id` and the same question text, now with each option's `diagram_ref`. The card updates in place.
See `references/drawing-decision-diagrams.md` for what to draw. To check a draft before drawing, put
it in a JSON file `{"title", "nodes", "edges"}` and run
`python scripts/check_decision_diagram.py <file>`; it prints `OK` or the problems.
Files in this skill
- SKILL.md
- references/drawing-decision-diagrams.md
- scripts/check_decision_diagram.py
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.