spec-create-epic
Write an epic's master plan (plan.md with a machine-read Work Streams table) and one full spec per work stream, each linked back to the plan
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-10
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- spec-create-epic
- description
- Write an epic's master plan (plan.md with a machine-read Work Streams table) and one full spec per work stream, each linked back to the plan
- argument-hint
- <epic-name | "epic description">
03 SKILL.md 正文
Spec Create Epic
Phase 3b of /spec, when /spec-scope decided the work needs several specs. It writes the master plan first, confirms the decomposition, then writes each sub-spec with /spec-create-single.
Input
$ARGUMENTS: the epic's name or description, with the phase-1 findings and the phase-2 work streams in context.
Invocation contexts
- Slash command: presents the plan (step 3) and writes the sub-specs after "go" or an adjusted decomposition.
- Model-invoked: the same.
- Non-interactive: the plan confirmation is advisory. The mode-A restructuring question (step 1) is an escalation: the run returns the proposal and writes nothing. Adjustments in the dispatching prompt are applied; otherwise the drafted plan proceeds, and
epic plan auto-confirmed (non-interactive)is recorded in the plan's Open Questions.
Steps
-
Name the epic. The epic's name must be free:
scripts/harness/spec-lifecycle.sh resolve <epic-name>reports no spec. When/specstarted from a refined spec (mode A) and scoped it as an epic, that spec's requirements must be divided among the sub-specs, which changes what the refined spec is. Stop and escalate (escalation step): propose the plan, the sub-spec names and which requirements each takes, and whether the refined spec is archived once its requirements are carried over; write nothing until a person decides. In a non-interactive run, return that proposal. -
Write the plan at
specs/unrefined/<epic-name>/plan.md. The directory holds onlyplan.md:## <Epic Title> — Master Plan ### Problem Summary <what exists, what is missing, the end state> ### Current State <investigation findings, cited as file:line> ### Work Streams | # | Spec | Scope | Domain | Dependencies | |---|---|---|---|---| | 1 | `<sub-spec-1>` | <one line> | <domain> | None | | 2 | `<sub-spec-2>` | <one line> | <domain> | Spec 1 (<the contract it consumes>) | ### Dependency Graph <which spec blocks which; what can run in parallel> ### Implementation Order <phases of specs, each with why> ### Open Questions - <question> — affects `<sub-spec>`; default: <…>; decides: <who> ### Risks - <risk> — mitigation: <…>The Work Streams table is machine-read: column 2 holds each sub-spec's exact directory name in backticks, and
scripts/ci/lint-agent-harness.sh(checkspecs) fails when a name has no directory. Every sub-spec depends only on earlier rows, and each one ships something usable on its own. -
Present the plan (advisory step) and revise it on feedback before writing any sub-spec.
-
Write each sub-spec in
specs/unrefined/<sub-spec>/. First confirm its name is free:scripts/harness/spec-lifecycle.sh resolve <sub-spec>must report no spec, in the working tree or the index. A taken name is replaced by a free one in the plan and the Work Streams table before anything is written. Then write it by running/spec-create-singlein mode C for its work stream, plus:design.mdends with Cross-Spec References: the plan (specs/*/<epic-name>/plan.md), the specs it depends on, and the specs that depend on it;tasks.md's Dependencies section names the prerequisite specs and what each provides, and the epic it belongs to;- its own
scratchpad.md. Sub-specs with no dependency between them may be written by parallel agents.
-
Check each sub-spec before the next: its task count fits
/spec-scope's single-spec bound; every path is real or a new file in an existing directory; interfaces other specs consume have exact signatures; it bundles no unrelated concern; its cross-references are in place. -
Exit gate:
scripts/ci/lint-agent-harness.sh --only specspasses.
Lifecycle of the plan
The plan directory stays in unrefined/ (or refined/) while its sub-specs are validated and moved to todo/ one by one. It moves to in-progress/ when the first sub-spec starts and to done/ when the last one ships; it never enters todo/ or unfinalized/ (specs/README.md).
Output
The plan path, one line per sub-spec (name, task count, scope, dependencies), and the lint result.
04 同仓库更多 Skills
mythhelm-deliver-backlog
Coordinate a MYTHHELM backlog run with the shared stage checks and maintainer checkpoints.
mythhelm-bootstrap
Orient a Grok Build session in the MYTHHELM repository before task or spec work.
vendor-consult
Run one advisory stage consult (premise-ground, spec-validate, task-review, change-review, stuck-oracle, dossier) with an optional external vendor, then adjudicate the answer at its anchors
update-docs
Bring README, docs/, knowledge/, WORKFLOW.md and CLAUDE.md in line with what a shipped spec or a merged change actually did — find every statement the change made stale, fix it where readers look, and add only the new facts they need
triage
Score an idea or a GitHub issue against the master spec's stages, gates and commitments, check it for duplicates, and recommend whether it becomes a backlog card; read-only
test-driven-development
Red-green-refactor for Go — use when implementing any feature, bug fix or behaviour change, before writing implementation code