From harness-session
Generates a spec.md implementation plan from a goal via layered chain: L0 Goal → L1 Context → L2 Decisions → L3 Requirements → L4 Tasks, with evidence scoring and user approvals at L2-L4. Use /specify, 'specify', 'plan this'.
npx claudepluginhub team-attention/harnessThis skill is limited to using the following tools:
Generate a spec.md through a structured derivation chain.
Generates detailed implementation plans from approved spec.md files, iterates with human annotations, and outputs structured plan.json with phases, tasks, and steps. Use after spec approval to break into engineer-ready work.
Creates structured specifications before coding for new projects, features, significant changes, or ambiguous requirements.
Mandates invoking relevant skills via tools before any response in coding sessions. Covers access, priorities, and adaptations for Claude Code, Copilot CLI, Gemini CLI.
Share bugs, ideas, or general feedback.
Generate a spec.md through a structured derivation chain. Each layer builds on the previous — no skipping, no out-of-order writes.
{specDir}/spec.md via the Write tool. No CLI, no JSON.references/L*) before constructing content.The spec is written to a project-relative directory:
specs/{name}/spec.md
{name} = kebab-case derived from the goal.
Create the directory at Session Init:
mkdir -p specs/{name}
Execute layers sequentially. Read each reference file just-in-time.
| Layer | Read Reference | What | Gate |
|---|---|---|---|
| L0 | references/L0-L1-context.md | Mirror → Goal, Non-goals, Confirmed Goal | User confirms mirror |
| L1 | (same file) | Codebase research → Research section | Auto-advance |
| L2 | references/L2-decisions.md | Interview → Decisions + Constraints | Self-validate + L2-reviewer + User approval |
| L3 | references/L3-requirements.md | Derive requirements + sub from decisions | Self-validate + User approval |
| L4 | references/L4-tasks.md | Derive tasks + external deps, Plan Summary | Self-validate + User approval |
mkdir -p specs/{name}
Then create spec.md with initial content via Write tool.
Three approval gates (L2, L3, L4). Each uses the same pattern:
AskUserQuestion(
question: "Review the {items} above. Ready to proceed?",
options: [
{ label: "Approve", description: "Looks good — proceed to next layer" },
{ label: "Revise", description: "I want to change something" },
{ label: "Abort", description: "Stop specification" }
]
)
specs/{name}/spec.md## Goal section populated## Confirmed Goal section populated## Non-goals section populated (or "(none)")## Research section populated## Decisions section populated with at least one decision## Constraints section populated (or "(none)")## Requirements section with every requirement having at least 1 sub-requirement with GWT## Tasks section with every task having Fulfills linking to requirementsApproved by and Approved at written to Meta section after final approval