Skip to content
Back to skills

Codechroma Decision Diagram

ASecurity

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 to...

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
developmentpythonnode

Works with

  • terminal
  • mcp

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 11, 2026

npx -y skills add gutzerk/code_chroma --skill codechroma-decision-diagram --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Codechroma Decision Diagram?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Codechroma Decision Diagram
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gutzerk-codechroma-decision-diagram/badge)](https://www.skillsdirectory.com/skills/gutzerk-codechroma-decision-diagram)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.md2.5 KB
  • references/drawing-decision-diagrams.md1.2 KB
  • scripts/check_decision_diagram.py2.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.