/codechroma:codechroma-review-diagramfrom codechroma
Reviews the repository's current change on the Impact diagram, explaining per touched box what the change does (before/after). Useful for PR review or diff annotation.
Ships in codechroma. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Write a review of the current change as a file the Code Atlas canvas reads and overlays onto the
Impact diagram. The bridge already computed which boxes the change touches — your job is to explain
each touched box: how it worked before, how it works now, and any box/relationship the change adds
or removes. This drives the changes overlay.
🔵 This skill used to also cover a judgmental axis (severity: judge which touched node is actually
a problem, and how severe). That axis was removed rather than kept half-wired (038 follow-up) —
there is no "review" overlay any more. It also used to run this same explanatory axis against
the C1 diagram instead of Impact; that moved here in the same follow-up, since Impact is already a
diff-only slice of the real graph (no pre-authored architecture diagram required) while C1's blocks
are hand-authored and addressed by path, not by real node id. Everything below covers the one
remaining (explanatory, impact) flow.
The canvas watches the file you write and re-renders live — you never call an API to publish it, you just write it correctly. Write it more than once (a first pass over the biggest/worst nodes, then the rest) so the user sees the review appearing while you keep working.
Bridge base URL: use $CODECHROMA_BRIDGE_URL if set; otherwise default to http://localhost:8000
as shown below.
Write to the workspace the canvas is actually drawing, not the one this agent run launched from.
curl -s "${CODECHROMA_BRIDGE_URL:-http://localhost:8000}/agents"
# -> {"agents":[...], "active_workspace":"pr-29", ...} — the id the canvas is drawing
Use that active_workspace value as {repo_id} in every /repos/... call below. Fall back to
${CODECHROMA_WORKSPACE_ID:-default} only if the query returns nothing usable. Address the same
id in every route call, so your review lands in the worktree the canvas draws.
The bridge has already done the mapping. Fetch it and work from it.
curl -s "${CODECHROMA_BRIDGE_URL:-http://localhost:8000}/repos/${TARGET_WORKSPACE}/impact-changes"
Returns fingerprint (copy verbatim), blocks[] (every touched box: block — the box's own real
node_id, plus name, path, status, files, change_count), unassigned[],
changed_file_count, has_review/stale. ⚠ Never invent a block value — copy it from
blocks[].block; an id the bridge doesn't recognize is silently dropped.
If there's nothing to review (no blocks touched — e.g. the Impact diagram hasn't been drawn yet, or the diff touches nothing on it), say so and stop.
For each node you're reviewing, read its diff — not the whole tree:
git diff -- <the node's file> # tracked edits
git diff --stat # scale, at a glance
git status --porcelain # untracked/new files (no diff to read)
For an added node, read the file itself — there is no before side. For a removed one, read
git show HEAD:<path> to describe what was lost.
Describe the change in terms of behavior and responsibility, not line edits. "The builder now
creates one node per directory instead of clustering by references" is a review. "Changed 15 lines
in _build" is not.
Ask the bridge — do not guess from your working directory.
curl -s "${CODECHROMA_BRIDGE_URL:-http://localhost:8000}/repos/${TARGET_WORKSPACE}/impact-changes-path"
# -> {"repo_root":"...","impact_changes_path":"/abs/path/.codechroma/impact-changes.json","fingerprint":"…"}
Write the JSON to the returned impact_changes_path, overwriting that file in place — a re-run
edits the same file, never a second/parallel one. If the curl fails (bridge unreachable), edit an
already-written review in the active workspace rather than create one elsewhere: look for the file
at <active workspace root>/.codechroma/impact-changes.json, then <cwd>/.codechroma/..., then any
match under $CODECHROMA_BRIDGE_REPO_PATH if set. Tell the user which path you used either way. A
FileWatcher watches exactly that path — the wrong path means nothing appears.
fingerprint is required (copied verbatim from the write-path fetch — without it the review is
treated as reviewing an unknown diff and thrown away), as is summary (one paragraph, the thing the
user reads first).
impact-changes.json:
{
"fingerprint": "copied verbatim from GET /impact-changes-path",
"summary": "One paragraph: what this change set does to the architecture as a whole.",
"blocks": [
{
"block": "server/internal/fit/rank.go::class::RankRequest",
"before": "How this box worked before the change.",
"after": "How it works now.",
"explanation": "Why it changed, and what it means for the rest of the system."
}
],
"ghosts": [
{
"parent": "server/internal/fit/rank.go::class::RankRequest",
"id": "reference-clustering",
"name": "Reference clustering",
"before": "The union-find pass that grouped directories by call edges.",
"explanation": "Removed outright — grouping is filesystem layout now."
}
],
"relationships": [
{"from": "server/api/handlers.go::function::Recommend", "to": "server/internal/fit/rank.go::class::RankRequest", "label": "Builds RankRequest from", "status": "added", "explanation": "…"}
]
}
blocks[].block — a real graph node_id, copied verbatim from GET /impact-changes. One entry
per box worth explaining.blocks[].before/.after — the heart of the review, one to three sentences each. Brand new:
before is "". Being removed: the reverse.blocks[].status — omit unless the bridge got it wrong (it's inferred from git).ghosts[] — boxes the change removes; not in impact.json any more, so only you can name
them. parent must be a real node_id from GET /impact-changes (the box that collapsed or
otherwise still contains it); id is short kebab-case, unique under that parent. One per removed
concept, not per deleted file.relationships[] — arrows the change adds/removes; both endpoints must exist on the diagram.fingerprint is optional. A partial review is fine.Review a node when the diff changes what it does: new behavior, a moved responsibility, a changed contract, a removed pathway, a new dependency, a real risk. Skip it when the change is mechanical: formatting, a rename with no behavior change, a comment, a version bump. Saying "reformatted" in three sentences is worse than saying nothing.
Budget: the whole review in one pass, biggest/worst nodes first. 5-15 annotated entries for a
normal change set — let summary cover the rest of the shape.
Resolve the target workspace (Step 1).
Fetch the worklist + write-path/fingerprint (Steps 2 and 4).
If a current review already exists for this fingerprint, read it and refine it rather than starting over, preserving prose the user may have edited.
Read the diff of each node, most severe/biggest first.
Write the file — an early partial write is a feature; the canvas re-renders on every write.
Write the complete file again, to the same path.
Self-check — never report success on a review the canvas will drop:
python3 .agents/skills/codechroma-review-diagram/scripts/check_review.py \
--url ${CODECHROMA_BRIDGE_URL:-http://localhost:8000} --repo "${TARGET_WORKSPACE}" --kind impact
Fix and re-run until it prints OK.
Tell the user the absolute path you wrote, how many entries you reviewed, and that the view updates live.
To clear a review, write {"fingerprint": ""} to the same path, or delete the file.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (gutzerk/code_chroma) — no native marketplace selected
npx claudepluginhub p/gutzerk-codechroma7 skills in this plugin
/codechroma-decision-diagramDraw 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./codechroma-draw-diagramCreate, update, regenerate, deepen, or fix a Code Atlas diagram the canvas renders live — the System context view , the design-patterns (GoF) view, the change-impact view (what this PR, diff or plan affects), the walkthrough view (how one process runs, step by step, over the code it touches), or a custom / user-defined diagram type. Use when the user (typically running you in the canvas terminal panel or an agent window over a change) asks for any of those views by name or by artifact — e.g. "regenerate the System context diagram", "add Stripe to the system context", "confirm the detected patterns", "the patterns view only shows a few blocks", "show me what this PR affects", "walk me through how Update works", "draw the walkthrough of checkout", "the impact view should also show the callers of X", "generate the data-flow diagram", "deepen the layering diagram", "the custom diagram is missing the new service". Also triggers on the artifact itself — system-context.json, patterns.json, impact.json, walkthrough.json, custom/<type-id>.json. Also use to highlight or trace a specific process/flow on an already-drawn diagram without redrawing it — e.g. "show me how a request gets saved to the database", "highlight the auth check on this diagram". Also use to draw or update a **Feature-plan diagram** for a described future feature — its own Planned blocks (code that doesn't exist yet) alongside the minimal current-code context — e.g. "draw a plan for token auth", "show me what the checkout redesign will add", "add the planned rate limiter to this diagram". This one skill routes to the right diagram type and its reference; do not pick a diagram type before reading the router table./codechroma-epic-briefGenerate a structured AI brief for one epic -- problem/value, scope (with tasks attached to the scope item they implement), dependencies & risks, acceptance criteria. Use when the user (typically running you in the canvas terminal panel) asks you to generate, regenerate, or refresh an epic's "AI brief" -- e.g. "generate the AI brief for LMP-65", "regenerate the brief", "the epic brief is stale"./codechroma-grillAsk the user decisions in their CodeChroma agent window instead of in chat text. Use whenever the user must choose, decide or pick which approach to take, or asks you to "grill me", interview them, or walk through design decisions one question at a time -- you ask through the `ask_user` MCP tool of the `codechroma` server, then end your turn./codechroma-wiki-general-updatePatch this repository's semantic architecture map (.codechroma/wiki-general/) after a commit, touching only the pages affected by what changed -- never wipes or rebuilds the whole tree. Use when the user (typically running you in the canvas terminal panel, or as a background agent triggered by the canvas's "Update" button on the wiki-general staleness banner) asks you to update, refresh, or sync the "architecture map" / "wiki-general" after recent commits, as opposed to regenerating it from scratch./codechroma-workflowDesign and save a CodeChroma workflow (a steerable, step-by-step agent pipeline) from the user's description. Use when the user asks to create, draft or set up a new workflow -- e.g. "make a workflow that plans, implements and reviews a feature", "create a workflow for fixing a bug from an issue". You save it through the bridge's workflow API; the Workflows tab shows it at once.Other plugins' skills for the same job