Skip to content

/plan-chunks

This skill should be used when the user asks to "plan chunks", "break this down", "plan the implementation", or when a story has status planning and needs implementation details before building. Required before any story can be implemented. Transforms story sparks into detailed

From plugin
craft
7311 skills27 agents77 commands7 hooks
+1

Claude Code

$ npx -y skills add drobins25/craft --skill plan-chunks --agent claude-code

SKILL.md

plan-chunks.SKILL.md
name: plan-chunks
description: This skill should be used when the user asks to "plan chunks", "break this down", "plan the implementation", or when a story has status planning and needs implementation details before building. Required before any story can be implemented. Transforms story sparks into detailed chunk-by-chunk implementation plans with full technical specifics, file lists, and risk analysis. Supports parallel planning of multiple stories via batch mode.
version: 3.0.0
allowed-tools: ["Read", "Write", "Edit", "Bash", "Glob", "Grep", "Task", "Skill", "SendMessage"]

Plan Chunks Skill (Orchestrator)

You are the **orchestrator** coordinating story planning. The plan-chunks-agent does the heavy lifting — deep codebase research and detailed chunk planning in one autonomous pass. Your job is to gather context, launch the right agent(s), triage concerns with the user, and write the approved plans to story files.

**Single story:** Launch one agent, triage interactively, approve, write. **Multiple stories:** Launch parallel agents, batch triage, approve each, write all.

> **CRITICAL: Never auto-invoke this skill.** The user must have explicitly chosen to plan — via a command, skill, or direct request. If a story needs planning, inform the user and let them decide when to plan.

When This Activates

  • During `/craft:cycle-design` when user chooses to plan a story
  • During `/craft:story-new` when user wants full planning
  • Before `/craft:story-implement` if story is still `status: planning`
  • User explicitly asks to "plan chunks" or "break this down"
  • When `MODE: batch` is passed, plans all stories in the cycle in parallel

**This skill is REQUIRED before implementation.** Stories with `status: planning` cannot be implemented until this runs.

Orchestrator Context

The orchestrator may pass enriched args with labeled fields. Parse these to skip rediscovery:

  • `STORY:` story name — use to locate story file if path ambiguous
  • `CYCLE:` cycle directory name — skip cycle detection
  • `CYCLE_GOAL:` goal from cycle.yaml — include in agent prompt
  • `SIBLINGS:` comma-separated story names — use in Phase 0.1b instead of scanning
  • `APPROACH:` implementation approach from discussion — seed agent
  • `DECISIONS:` key decisions from discussion — seed agent
  • `KEY_FILES:` important files from discussion — seed agent
  • `DEPTH:` planning depth (creative/smart/spark) — adjusts triage thoroughness
  • `MODE:` `batch` triggers multi-story parallel planning

**Fallback:** Args may be just a file path with no fields. All phases must work without enriched args.

**Under a Go run** (only when `${CLAUDE_PLUGIN_ROOT}/commands/references/go-run.md` is in force for this conversation; otherwise nothing in this skill changes): at Phase 0, run `python3 "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/go-brief.py" <cycle-dir>`. On `prompts=answer`, every prompt and card in this skill follows go-run.md's `## Known prompts` and `## Planning`, and the S-6 and BT-7 hand-offs go to its `## At the stage ceiling` instead of story-implement, so a run never goes past the stage the Go allows. Any other verdict ends the Go run as go-run.md says, and this skill then asks everything as written.

---

Your Posture: Opinionated Partner

You're a senior engineer advising on implementation, not offering a menu.

**Filter your options through:**

  • What's the **correct** way to implement this?
  • What would a **quality-focused team** do?
  • What serves the **end user** best?

**When presenting approaches:**

  • If one way is clearly correct → State it. Don't offer inferior alternatives.
  • If there are genuine tradeoffs → Present options with your recommendation
  • If something is technically possible but compromises quality → Don't offer it

Simple is often correct. Complex isn't better by default. The goal is **right**, not hard.

Bad: "We could do A (janky) or B (correct). Pick one." Good: "We should do B - here's why. Any concerns?"

The user chose Craft because they want quality. Use your judgment to deliver it.

---

Phase 0: Gather Context & Determine Mode

0.1 Gather Launch Context

Read the story file path from args or context. Verify the file exists. Identify the cycle directory (if the story is in a cycle) or note it's a backlog story.

**Derive project root from the story file path** — strip everything after `/.craft/`. For example:

  • Story at `/repo/apps/craftsman/.craft/cycles/01/stories/foo.md` → project root is `/repo/apps/craftsman/`
  • Story at `/repo/.craft/backlog/foo.md` → project root is `/repo/`

**Do NOT use `$CRAFT_PROJECT_ROOT` as the project root** — in monorepos it may point to the monorepo root, not the sub-project containing the story. Always derive from the story file path.

**Tracker issue check**: for a story in a cycle, read that cycle directory's `cycle.yaml` (the story's own cycle, from the story path, or `CYCLE:` in batch, checked once per batch). If it has a non-empty `source_issue`, Read `${CLAUDE_PLUGIN_ROOT}/commands/references/tracker-follow.md` with that cycle's directory and continue only through its `## Continue`, before the goal reads in S-1 and M-1. A backlog story, or a cycle without a `source_issue`, skips this and nothing below changes.

0.1b Gather Sibling Context (Smart)

**Skip if:** Story is in backlog (no cycle context).

**If args include `SIBLINGS:`**, use that list instead of scanning. Read only those named stories for relevance checks.

**Otherwise**, scan sibling stories in the cycle for relevance (file path overlap, keyword overlap, component overlap). For related siblings, extract files, decisions, and overlap areas. If no relevant siblings, note: "No relevant siblings — stories appear unrelated."

> **Details:** Read `${CLAUDE_PLUGIN_ROOT}/skills/plan-chunks/references/research-integration.md` for the full sibling context gathering process (relevance heuristics table, extraction template, context block format).

0.2 Determine Planning Mode

Check args and en

Read more
@drobins25
Ships withcraft

Stop Vibing. Start Crafting.

7311 skills27 agents1 MCP
Get the whole plugin, auto-invoked

Stars on GitHub

Momentum

stars in total
73
Star history of drobins25/craft on GitHub, a chart by star-history.com

Other skills on craft.

adhoc
Auto-invoked

adhoc

Adhoc workflow for small targeted changes to existing behavior or appearance, without the full story ceremony. Use when the…

@drobins25@drobins25Install Skill
approve
Auto-invoked

approve

Request write permission from the user before making file changes. MUST be invoked before any write attempt when the write gate…

@drobins25@drobins25Install Skill
browser
Auto-invoked

browser

Interactive browser automation via playwright-cli. Use when you need to navigate a site, click elements, fill forms, take…

@drobins25@drobins25Install Skill
content-spark
Auto-invoked

content-spark

This skill should be used when a story has been captured but content direction is unresolved - the spark describes WHAT to build…

@drobins25@drobins25Install Skill
creative-spark
Auto-invoked

creative-spark

This skill should be used when the user asks to "brainstorm", "explore options", "get creative", "what if we...", or selects…

@drobins25@drobins25Install Skill
design-vibe
Auto-invoked

design-vibe

Use this skill when the user wants to discover, define, or refine their product's aesthetic identity. Triggers on "what should…

@drobins25@drobins25Install Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about plan-chunks.

Which coding agents can use plan-chunks?
plan-chunks installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.