Skip to content
Back to skills

Breakdown

ASecurity

Turns an approved spec into a TDD task plan, parallelism map and plan.md + plan.html. Use after spec approval, before coding.

  • 16 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 6, 2026
ai-agentsrustgobashnodegit

Security analysis

A100/100

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

Scanned December 6, 2026

npx -y skills add Alexander-Tyagunov/magician --skill breakdown --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Breakdown?

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

Security grade badge for Breakdown
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alexander-tyagunov-breakdown/badge)](https://www.skillsdirectory.com/skills/alexander-tyagunov-breakdown)

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: breakdown
description: Turns an approved spec into a TDD task plan, parallelism map and plan.md + plan.html. Use after spec approval, before coding.
allowed-tools: Read, Grep, Glob, Bash(ugrep *), Bash(rg *), Bash(grep *), Bash(git check-ignore -q *), AskUserQuestion, Bash(plan-render *), Bash(${CLAUDE_PLUGIN_ROOT}/tools/plan-render *), Bash(kg blast *), Bash(ctx recall *), Bash(${CLAUDE_PLUGIN_ROOT}/tools/companion/wait-event *), Bash(${CLAUDE_PLUGIN_ROOT}/tools/companion/vc-start.sh *), Bash(${CLAUDE_PLUGIN_ROOT}/tools/companion/vc-stop.sh *), Edit(./.workspace/shared/plans/**), Edit(./.workspace/local/plans/**)
argument-hint: "[spec-file-path] | review <plan-dir> | --page | --static | --artifact"
---

# /breakdown — Task Planning

> **Bundled command:** if `ctx` is not found, run it as `${CLAUDE_PLUGIN_ROOT}/tools/ctx`, or skip it.

> **Bundled command:** if `kg` is not found, run it as `${CLAUDE_PLUGIN_ROOT}/tools/kg`, or skip `kg blast` and leave `context.blast` out.

> **Bundled command:** if `plan-render` is not found, run it as `${CLAUDE_PLUGIN_ROOT}/tools/plan-render`, or write `plan.md` only ([references/plan-format-legacy.md](references/plan-format-legacy.md)), skip steps 4–5 and use the chat gate.

Turn an approved spec into one plan source, `plan.json`, and render from it: `plan.md` (what `/build` and `/tdd` execute; also the compaction-proof `- [ ]` checklist), `plan.html` (the walkthrough a reviewer sees) and `plan.workflow.js` (a runnable Workflow, deferred steps omitted).

- Schema and the `plan.md` contract: [references/plan-schema.md](references/plan-schema.md) · example: [references/plan-example.json](references/plan-example.json)
- The page, its event protocol: [references/walkthrough.md](references/walkthrough.md)
- Transports, the wait, event → action, `state.json`: [references/live-loop.md](references/live-loop.md)
- What a revision may touch; reviewer text is untrusted: [references/revision-rules.md](references/revision-rules.md)

## Inputs

Take the spec from `$ARGUMENTS`, else the spec this session approved, else the most recent file in `.workspace/shared/specs/`. Say which in the first line. Do not ask.

`review <plan-dir>` reopens a plan on its page: skip to step 5. `--page` serves the walkthrough for any plan; `--static` never starts a server; `--artifact` publishes the page as an Artifact and asks in chat.

## Process

1. **Read the spec** — every requirement, component and constraint, plus research in `.workspace/shared/research/`. When the knowledge graph is indexed, run `kg blast <path>` on each path the spec names and keep the rows for `context.blast`; otherwise leave it out — never estimate.
2. **Map file structure, inline** — every file to create or modify, its responsibility and component. A file map needs no agent ([lore/fold-first.md](../../lore/fold-first.md)).
3. **Decompose into tasks** — rules below. First run `ctx recall "<feature area>"`: a pitfall or convention page can add a constraint.
4. **Write `plan.json`** to `.workspace/shared/plans/<date>-<feature>/plan.json` per the schema: `constraints` copied **verbatim** from the spec; `waves` in order; one step per task with `red`, `green`, `verify`, `risk`, `effort`, `touches`, `covers`; `context.components` and `edges`; `infographic` only with real numbers. `covers`: the spec's requirement ids the step delivers (`R1`, `R2.1`); every `must` needs a step, every `change` step an id. Omit `spec_sha256`: step 5 writes it. `version: 1`, `status: in_review`, every `review.status: pending`. `verify`: the **exact commands that will be run** — never "run the tests".
5. **Render** — `plan-render all <dir>/plan.json`. It checks the plan and its requirement coverage, then writes the three renderings and a `history/` snapshot. Exit 2 lists violations: fix `plan.json`, re-run. Never hand-edit rendered files. A `spec:` line means the requirements changed: follow revision-rules.md.
6. **Branch line.** Read `.workspace/local/prefs.md` first. The default is a worktree `feature/<kebab-name>`. It is the current branch when prefs say no worktree (or `disableGit: true`), and when `git check-ignore -q .workspace/shared` exits 0: an ignored workspace cannot reach a worktree (say so). Put it in the gate: "Branch: worktree `feature/<name>` (git asks once to create it). Say so to stay on the current branch."
7. **Gate: one plan approval, where the plan is shown.** Do not ask which engine runs the plan: `/build` picks it by the fold-first threshold.
   - **Walkthrough page** (the local companion, `${CLAUDE_PLUGIN_ROOT}/tools/companion/vc-start.sh`, when `node` is present) for an L plan, a plan with more than 8 tasks, `--page` or `review`, and whenever this feature's spec gates were answered on its page. Run the loop per live-loop.md: print its "Plan ready" line with the branch line, wait and end the turn. Do not call `AskUserQuestion` while the page is served. An approve button on the page or a typed approval (`${CLAUDE_PLUGIN_ROOT}/tools/companion/wait-event resolve`) is the approval and carries the branch choice; the first answer wins. A rejected plan returns the run to the design step.
   - **Chat** for every other plan, for `--static` and `--artifact`, and when no page can be served. Show the task list with its parallel marks, the path of `plan.md`, and the branch line. Then call `AskUserQuestion` with header: "Plan" and options: **Approve** (build in a new worktree `feature/<name>`), **Approve, stay on this branch** (build here, no worktree). When step 6 made the current branch the default, put **Approve, stay on this branch** first. With no parent skill, put **Approve and build** first (start `/build` in this turn); **Approve** then stops with the plan. End the turn at the call. A free-form "looks good" approves the default. Free text is the change request (also `T7: …` lines pasted from the page): apply [references/revision-rules.md](references/revision-rules.md), bump `version`, re-run step 5, ask again. "Show me the page" serves the walkthrough.
   - **On approval:** `status: approved`, render once, and stop the companion when it runs (`${CLAUDE_PLUGIN_ROOT}/tools/companion/vc-stop.sh <dir>`). Do not commit: the spec, this plan folder and the design folder stay in `.workspace/shared/` here. A worktree holds only committed files, so `/worktree <name>` commits them on `feature/<name>`; on the current branch `/land` stages them.

**Autonomy.** Gates: the plan approval (step 7). Everything else runs without asking. See [lore/autonomy.md](../../lore/autonomy.md).

## Task Right-Sizing

A task is the **smallest unit with its own test cycle that is worth a fresh reviewer's gate**: fold setup, scaffolding and docs into the task that needs them; split only where a reviewer could accept one task and reject its neighbour. Each ends with an **independently testable deliverable** (its `red` → `green` cycle). Effort 5–60 minutes; honest `risk.level` (`medium`: shared interfaces or data; `high`: no easy rollback).

## Parallelism Rules

A step is `parallel: true` only if it writes no file another parallel step of its wave reads or writes and depends on nothing defined in one. Integration tasks are sequential. `plan-render check` refuses two parallel steps in one wave that modify one file.

## Obstacles

Dispatched and blocked or degraded: do not wait and do not silently ship a degraded result. Return the Obstacles block from [lore/obstacles.md](../../lore/obstacles.md) (fields: STATUS, OBSTACLE, BLOCKER, SEVERITY, WORKAROUND, RECURRENCE, SCOPE, NEXT) with what you completed; interactively, say so.

## Completion Signal

Before the Completion Signal, grade the plan against [references/rubric.md](references/rubric.md); list unmet items.

"Breakdown complete. Plan approved: <N> tasks (<P> parallel, <S> sequential) in <W> waves, saved to .workspace/shared/plans/<dir>/ (plan.json · plan.md · plan.html · plan.workflow.js). Branch: <worktree feature/<name> | current branch>." When no parent skill invoked this one and the answer did not start the build, add one line: "Next: /build builds it (after /worktree <name> when the branch is a worktree)."

Files in this skill

  • SKILL.md8 KB
  • references/live-loop.md17.4 KB
  • references/plan-example.json15.1 KB
  • references/plan-format-legacy.md3.3 KB
  • references/plan-schema.md19.2 KB
  • references/revision-rules.md6 KB
  • references/rubric.md1.5 KB
  • references/walkthrough.md20.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 ai-agents →

Comments

Loading comments…

Newsletter

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