/codechroma:codechroma-epic-brieffrom codechroma
Generates a structured AI brief for a single epic including problem/value, scope with attached tasks, dependencies, risks, and acceptance criteria. Activated when asked to generate or refresh an epic brief.
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 one epic's brief: problem/value, scope items (each carrying the tasks that implement it, never a separate top-level "tasks" tier), dependencies & risks, and acceptance criteria. You are the only step in this run -- there is no deterministic half that ran before you.
The prompt that invoked you already carries two facts: the epic's id (epic_id) and this run's
job_key. Use them exactly as given -- never guess a job_key, never rename the epic.
All the data you need is already in this prompt as a JSON "brief context" bundle. Do NOT curl
the bridge for the epic, the tasks stages, or the write path -- read the bundle verbatim instead.
Do not search specs/ yourself or guess an attachment; which feature attaches is already decided
server-side, and the bundle lists only what's genuinely attached.
The bundle carries the epic's WorkItem under "epic":
requirements[] -- existing acceptance criteria, if any.children[] -- sub-stories.links[] -- depends_on/enables references.stages[] -- one entry per attached specs/<slug>/{spec,plan,tasks}.md, already kind-tagged;
a tasks stage's real sections live in tasks_by_stage, not here.references[] -- the epic's references: frontmatter list (paths and/or bare ids of linked
epics). Use these to ground dependencies in the real portfolio rather than inventing
cross-links.context_file -- the relative path to this epic's context note under the repo root. Read it for
rationale the summary omits (why the epic exists, decisions already made). Missing/null is
fine -- skip it then.component -- the ownership area (e.g. "application"), useful when tagging tasks' repo.tasks_by_stage holds every real task grouping: one entry per tasks stage found at either level
(the epic's own stages[] and every children[] entry's stages[]), each already expanded.
Each entry's sections[].items[] is one real task (id, text, done) grouped under a ## ...
phase heading in tasks.md -- the heading itself is not your grouping, and neither is the story it
came from; you still decide which scope item each task belongs to, using the task's own wording
(a task mentioning "the proxy handler" belongs to the scope item describing the proxy, regardless of
which story's tasks.md it was filed under).
Never retype a real task's text -- reference it by id only. The bundle already carries every
real task's exact text; the server splices it back in after you write the brief, matched by id.
For a tasks_source: "spec" task, emit { "id": ..., "stage": ..., "repo": ... } -- omit
text/parallel entirely. Getting the real id right (never inventing or renumbering one) is
what matters now, not retyping its text -- retyping punctuation-dense task lines is exactly how
they used to get mangled. Set stage to the name of the tasks_by_stage entry the task came
from (the spek slug, e.g. "008-go-gateway"); the server splices the real text back in keyed off
(stage, id), and without stage a same-numbered task in another spec could overwrite this one's
text. A drafted task (tasks_source: "draft", see below) has no real source to reference, so write
its text yourself there -- and you may omit stage there, since a draft has no spec to name.
has_spec tells you whether any tasks stage was found, and write_path is the absolute path to
write your brief to.
has_spec is true, attach the real tasks_by_stage tasks to your scope items and mark
every ScopeItem you fill this way with tasks_source: "spec".has_spec is false (no spec resolves), draft a plausible task breakdown yourself from the
epic's own requirements/summary, and mark every ScopeItem you fill this way with
tasks_source: "draft" -- this is a guess, and the canvas renders it with a dashed border so it
never looks like ground truth. Never write a drafted breakdown into specs/.Each task carries a repo tag naming the repo, spoke, or part it belongs to. Decide it per task, not
per scope item alone:
component/spokes say so, e.g. application +
inference): tag each task with the spoke that owns that piece of work -- use the spoke's short
name ("application", "inference"). When a scope item spans an edge between spokes (e.g. the
first scope item is the seam), tag its tasks with the part that actually does the work, and say
which part that is in the scope item's description -- the LMP-123 case of "the first scope says
which part must be done, then each task is tagged with it.""backend", "frontend", "cli", …) when
the task clearly touches one. Tasks that touch several areas at once stay null in repo rather
than picking one arbitrarily -- repo names the single place the work lands.repo is null/omitted only when a task genuinely has no single owner (cross-cutting, plumbing).Each task carries an is_test flag. Set it true on any task whose wording is explicitly about
testing -- "test X", "write tests for Y", "unit/integration/e2e test", "cover with a test", "add a
test". Leave it false/omitted on tasks that only use testing incidentally or whose main point
is the feature itself. Don't let a task's repo tag or which scope item owns it change the flag --
is_test describes the task's own subject, nothing else.
Keep every test task attached to the scope item it implements (never move it to a different scope
item, and never invent a new scope item just for it). The canvas pools all is_test: true tasks
from across the scope into a labeled "Testing" subgroup inside Scope; it doesn't need a separate
scope item from you. closes_scope_id on an acceptance criterion should still name the feature
scope item the criterion closes, not "Testing".
Write the JSON to the absolute write_path from the bundle's filename (create parent directories
if missing).
{
"epic_id": "LMP-65",
"generated_at": "2026-08-12T10:00:00Z",
"problem": ["One or two short sentences on why this epic exists."],
"component": "application",
"spokes": [
{ "spoke": "application", "role": "Leading half — Go control-plane core." },
{ "spoke": "inference", "role": "Model-placement half." }
],
"scope": [
{
"id": "scope-proxy",
"title": "Proxy /v1/chat/completions",
"description": "One sentence on what this scope item covers.",
"in_scope": true,
"tasks_source": "spec",
"tasks": [
{ "id": "T003", "stage": "008-go-gateway", "repo": "backend" },
{ "id": "T005", "stage": "008-go-gateway", "repo": "backend", "is_test": true }
]
},
{
"id": "scope-quickstart",
"title": "Host-aware quickstart links",
"description": "Why this is explicitly out of scope.",
"in_scope": false,
"out_of_scope_ref": "LMP-105"
},
{
"id": "scope-draft-example",
"title": "A scope item with no real tasks.md to reference",
"description": "Drafted because has_spec is false, or no real tasks matched this item.",
"in_scope": true,
"tasks_source": "draft",
"tasks": [{ "id": "T-D01", "text": "scaffold the drafted piece", "repo": "backend" }]
}
],
"prep_tasks": [{ "id": "T001", "stage": "008-go-gateway", "repo": "backend" }],
"dependencies": [
{ "kind": "depends_on", "text": "session/auth floor", "ids": ["LMP-67"] },
{ "kind": "risk", "text": "LiteLLM rate limits under load", "ids": [] }
],
"acceptance": [
{ "id": "AC-01", "text": "/v1 returns 401 without a valid bearer token", "done": true, "closes_scope_id": "scope-proxy" },
{ "id": "AC-05", "text": "a disabled gateway returns 404", "done": false, "closes_scope_id": null }
]
}
Rules:
id (scope items, tasks, acceptance criteria) must be unique across the whole brief.tasks only ever appears on an in_scope: true ScopeItem -- an out-of-scope item never carries
tasks, and never appears in prep_tasks either.repo names the spoke/part that owns it (see "Tag every task's repo/part"); it is
null/omitted only for cross-cutting tasks with no single owner. component/spokes at the top
describe the epic's repo split and should agree with the repo values.tasks_source is "spec" when every one of that item's tasks came from a real tasks.md,
"draft" when you wrote them yourself, null for an out-of-scope item (no tasks at all). Never
mix real and drafted tasks under the same tasks_source -- if a scope item has no matching real
tasks, draft all of its tasks and mark it "draft".tasks_source: "spec" item, never write text/parallel on its tasks -- the server
overwrites both from tasks.md regardless of what you write there, matched by (stage, id).
Only id (get it right), stage (the owning tasks_by_stage name, so a same-numbered task in
another spec isn't spliced in its place), repo (your judgment call), and is_test (your
judgment call, per "Mark test tasks for the Testing block") matter for these.
prep_tasks follows the same rule whenever its id names a real task -- and prep_tasks also
carries stage. A "draft" task has no real source, so write its text (and parallel, if
relevant) yourself -- it will not be overwritten.prep_tasks holds tasks not tied to any one scope item (e.g. scaffolding) -- keep this list short;
most tasks belong to a scope item.closes_scope_id on an AcceptanceCriterion names the ScopeItem.id whose work satisfies that
criterion, or null if nothing does yet -- the canvas renders null as a red "gap" badge. Don't
default to null to avoid a decision; only use it when you genuinely can't attribute the
criterion to one scope item.dependencies[].kind is one of "depends_on", "enables", "risk", "check". ids holds other
work-item ids when the dependency names one (e.g. depends_on); leave it [] for a risk/check
that isn't tied to another item.generated_at is an ISO-8601 timestamp for when you wrote the file.Read the bundle's epic (its requirements, summary, links, and stages, plus
references[], context_file (open it relative to the repo root if present), and component)
and its tasks_by_stage -- these ground the brief in the surrounding portfolio.
If has_spec is true, use the real tasks from tasks_by_stage (previous section). Otherwise
plan to draft a breakdown.
Write 1-2 sentences of problem from the epic's own summary/requirements -- don't pad with
generic filler the source doesn't support.
Decide the scope items: what's actually being built (in_scope: true) and what's explicitly
deferred (in_scope: false, with out_of_scope_ref naming the item it was deferred to, if the
epic's own text names one). Mirror the epic's references/component/spokes into the top-level
references-grounded dependencies, component, and spokes.
Attach every real or drafted task to exactly one scope item (or prep_tasks if it truly isn't
tied to one), and tag each task's repo per "Tag every task's repo/part".
Write dependencies from the epic's links[] and references[] (depends_on/enables) plus
any risk you can support from the epic's own text -- don't invent a risk the source gives no basis
for.
Write acceptance from the epic's requirements[] if it has any, plus anything else the text
implies must hold true; set closes_scope_id per the rule above.
Self-check -- never report success on a run that didn't print OK:
python3 .agents/skills/codechroma-epic-brief/scripts/check_brief.py --repo default --item {epic_id}
| Line | Means | Fix |
|---|---|---|
DUPLICATE <id> | the same id is used by more than one scope item, task, or criterion | rename one -- ids must be unique across the whole brief |
DANGLING <id> | an AcceptanceCriterion.closes_scope_id names a scope item id that doesn't exist | fix the id, or set it to null |
TASKS-ON-OUT-OF-SCOPE <id> | an in_scope: false item carries tasks | drop them -- out-of-scope items never carry tasks |
SPOKE-MISSING <id> (advisory) | an in-scope task carries no repo, but the brief names spokes | add the repo tag -- advisory only, does not fail the run |
Confirm the JSON you wrote parses back as valid JSON with a non-empty scope list before
finishing -- an unparseable or empty-scope write is treated as a failed run and the previous
brief (if any) is restored.
What SKILL.md sets; muted values are Claude Code's defaults
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-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-review-diagramReview the repository's current change on the Impact diagram — explain per touched box what the change does (before/after). Use when the user (typically running you in the canvas terminal panel, or in the agent window over a PR/change) asks you to review, explain, or annotate the current changes on the Impact diagram — e.g. "review my diff", "explain these changes", "review the PR", "re-review the changes"./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