/adjutant-agent:epic-plannerfrom adjutant-agent
Plans and scaffolds structured epic hierarchies for new features, major refactorings, and large tasks. Generates spec, plan, tasks, and beads-import artifacts with dependency-wired beads.
Ships in adjutant-agent. 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.
Plan and scaffold a complete epic hierarchy: from idea to beads-tracked, dependency-wired tasks ready for multi-agent execution.
Every spec artifact maps to a bead hierarchy level. Use the project's beads prefix (e.g. adj- for adjutant) — shown here as bd- generically.
| Spec Artifact | Section | Bead Level | Bead ID | Bead Type |
|---|---|---|---|---|
| spec.md | User Story N (Priority: PN) | Sub-Epic | bd-xxx.N | epic |
| plan.md | Phase N heading | Sub-Epic | bd-xxx.N | epic |
| tasks.md | T001 task line under Phase N | Task | bd-xxx.N.M | task |
| beads-import.md | Task table row | Task | bd-xxx.N.M | task |
| (created during impl) | Bug fix / refactor / extra tests | Improvement | bd-xxx.N.M.P | task|bug |
T-IDs vs Bead IDs: T001, T002 etc. are authoring-time identifiers used in tasks.md for readability. Bead IDs (bd-xxx.N.M) are the runtime tracking identifiers that replace them once beads are created. The beads-import.md table maps between them.
Phase-to-sub-epic numbering: Phases in tasks.md and sub-epics in beads share the same sequential numbering. Phase 1 = .1, Phase 2 = .2, etc. If you skip a phase (e.g. no Setup needed), skip that sub-epic number too — keep them in sync.
Before generating anything, ask 3-5 targeted questions using AskUserQuestion. Good areas to probe:
Skip questions whose answers are obvious from the user's description.
Determine the next feature number by scanning specs/ for existing directories:
ls specs/ | sort -n | tail -1 # e.g., 007-push-notifications
# Next number: 008
Create directory: specs/###-feature-name/
Generate four files in order. Use the templates in references/templates.md as the structural guide — fill them with content derived from the user's description and your clarification answers.
Write all four files to specs/###-feature-name/.
Small features (< 5 tasks): Skip sub-epics entirely. Use the simplified template variant in templates.md. Tasks go directly under the root epic (bd-xxx.1, bd-xxx.2 as tasks, not sub-epics).
Use bd CLI to create real beads matching the hierarchy in beads-import.md. See references/beads-workflow.md for the exact commands and conventions.
Hierarchy pattern (using project prefix, e.g. adj-):
bd-xxx (root epic, type=epic)
bd-xxx.1 (sub-epic: Setup, type=epic)
bd-xxx.2 (sub-epic: Foundational, type=epic)
bd-xxx.3 (sub-epic: US1, type=epic)
bd-xxx.3.1 (task under US1, type=task)
bd-xxx.3.2 (task under US1, type=task)
bd-xxx.4 (sub-epic: US2, type=epic)
...
Steps:
bd list --status=all and pick next sequential rootbd create --id=bd-xxx --title="..." --description="..." --type=epic --priority=NAfter creating beads, update beads-import.md and plan.md with the actual bead IDs. Add a bead map block to plan.md:
## Bead Map
- `bd-xxx` - Root epic: [Title]
- `bd-xxx.1` - Setup
- `bd-xxx.1.1` - [Task title]
- `bd-xxx.2` - Foundational
- `bd-xxx.3` - US1: [Title]
- `bd-xxx.3.1` - [Task title]
Report to the user:
bd ready to see unblocked tasks, or assign work to team agents"Improvements are Level 4 beads (bd-xxx.N.M.P) created during implementation, not during planning. They cover:
Create them as children of the affected task. Example: while implementing bd-012.3.1, you discover a bug → create bd-012.3.1.1 as type=bug. Wire it: bd dep add bd-012.3.1 bd-012.3.1.1.
Do NOT pre-plan improvements in the spec artifacts — they emerge organically.
Every implementation task in specs/<###-feature>/tasks.md MUST be authored in a
test-first shape. A task that says "Create file X with tests" expresses the same
step twice and erases the RED → GREEN cadence — that is not TDD. Use one of the
two shapes below for every non-exempt task. The audit script scripts/audit-tasks-md.ts
walks specs/*/tasks.md and flags any line that violates this rule.
The Ta-tests / Tb-impl pair share a base number and a clear ordering: Ta must be RED before Tb begins.
- [ ] T010a [P] [US1] Write failing tests for foo-service.ts in
backend/tests/unit/foo-service.test.ts. Cover happy path, error path,
edge case. Confirm RED.
- [ ] T010b [US1] Implement foo-service.ts in backend/src/services/foo-service.ts.
Run tests until GREEN. No new code paths beyond what tests require.
The verbiage MUST include BOTH a write-failing-tests-first phrase (e.g. "failing tests first", "write tests first", "RED first", "tests before impl", "confirm RED") AND a confirm-GREEN phrase (e.g. "until GREEN", "confirm GREEN", "make tests pass"). A single-line task that only mentions "with tests" or "+ tests" does NOT satisfy this rule.
- [ ] T010 [P] [US1] Build foo-service.ts in backend/src/services/foo-service.ts.
Phases: write failing tests first in backend/tests/unit/foo-service.test.ts
→ confirm RED → implement → confirm GREEN → refactor.
The following inline markers exempt a task from the TDD-shape rule. Use sparingly:
[setup] — Scaffolding tasks with no behavior (npm install, mkdir, config init).[docs] — Documentation-only tasks (CHANGELOG, README, ADR).[scaffold] — Empty file or directory creation that another task will fill.Bug-fix tasks are NOT exempt — the regression test IS the test-first phase. The task wording must still include "regression test first" or equivalent.
Run the warn-only auditor locally before considering tasks.md complete:
npx tsx scripts/audit-tasks-md.ts # full report
npx tsx scripts/audit-tasks-md.ts --quiet # exit code only
npx tsx scripts/audit-tasks-md.ts --json # machine-readable
The script exits 0 always (warn-only — does NOT fail CI). It exists so reviewers
can spot non-TDD task shapes quickly. New tasks.md files authored after this rule
landed MUST pass the audit clean. See .claude/rules/03-testing.md →
"Task Structure in tasks.md (TDD-shaped)" for the canonical rule and reference
examples.
Anything you need from the General MUST be filed via file_question — both questions/decisions
AND user-blocking actions (key/secret, access, approval). This is non-negotiable.
// Question or decision
file_question({
body: "Question about epic '<title>': <your question>",
context: "<what you're doing, what you tried, what you need>",
urgency: "normal",
suggestedOptions: ["option A", "option B"] // optional
})
// Blocking action (General must DO something, not just answer)
file_question({
body: "Need <resource> to proceed with epic '<title>'",
context: "<what you're building, why you need it, what's blocked>",
urgency: "blocking",
category: "action_required"
})
Rules:
AskUserQuestion — it blocks execution and the user may not be at the terminalsend_message — they miss the triage queue and the General cannot act on themfile_question, state your assumption, and continuefile_question with all questions in the body, then proceed with reasonable defaultsWhen spawning team agents to work on the epic, include this same instruction in their spawn prompts —
they must also use file_question for questions and blocking actions, not send_message or stdout.
.1, .2, .3, not random)[setup], [docs], [scaffold].bd CLI commands, dependency wiring, and ID conventions.claude/rules/03-testing.md - Canonical testing rules, including the TDD-shaped tasks.md rulescripts/audit-tasks-md.ts - Warn-only auditor that flags non-TDD task shapesWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
8 skills in this plugin
/broadcast-promptBroadcast a message into every active agent's Claude Code tmux session as a submitted prompt. Also sends persistent MCP messages as backup. Use when you need to inject a standing order, instruction, or announcement into all running agents at once./direct-messageSend a direct message to a specific agent via MCP messaging and tmux injection. Guarantees delivery by injecting the message as a submitted prompt into the agent's tmux session AND sending a persistent MCP message. Use when you need to message a specific agent and get a response, rather than broadcasting to everyone./discuss-proposalDiscuss and review an improvement proposal with the user. Analyzes strengths, weaknesses, feasibility, and cost estimate. Records the review as a persistent comment on the proposal, and optionally creates a revision if concrete improvements are identified. Use when the user says "discuss proposal", "review proposal", "what do you think about this proposal", or references a proposal ID for discussion and refinement rather than execution./execute-proposalExecute an accepted proposal by fetching it from the backend and orchestrating epic creation via the epic-planner skill. Use when the user says "execute proposal", "implement proposal", "start working on proposal X", or wants to turn a proposal into an actionable epic hierarchy with beads./mcp-toolsMCP tools for communicating with the Adjutant dashboard and other agents. Use when agents need to send messages, report status, manage beads, or query system state. Auto-connects to the Adjutant MCP server./squad-executeSpawn a full squad of worktree-isolated Claude Code agents to execute a spec or epic. Includes staff engineers, QA sentinel, optional Product/UIUX reviewer, and optional code reviewer. The invoking agent stays in coordinator mode. Use when the user says "spin up a team", "squad execute", "execute this epic with a team", "spawn engineers for this", "staff up", "build a team for this", "run this with agents", "deploy a squad", "get engineers on this", "execute with a crew", or wants parallel multi-agent execution of planned work. Also matches "launch team", "start squad", "kick off execution", and any request involving multiple agents working on an epic or spec simultaneously.npx claudepluginhub lupusdei/adjutant --plugin adjutant-agentOther plugins' skills for the same job