/harness-define:spec-driven-developmentfrom harness-define
Writes a structured, reviewable specification before any code, moving through gated phases (specify, plan, tasks, implement) with human approval between them, and decomposing multi-capability requests into a capability map first. Use when starting a project, feature, or significant change with no spec, when requirements are vague or ambiguous, or when one request bundles several independently testable capabilities.
Ships in harness-define. 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.
None: SKILL.md is the whole skill.
Write down what is being built, why, and how everyone will know it is done, before writing code. The spec is the shared source of truth between the agent and the human engineer. Code without a spec is guessing.
When NOT to use: one-line fixes, typos, or changes whose requirements are already unambiguous and self-contained.
SPECIFY --> PLAN --> TASKS --> IMPLEMENT
human human human human
review review review review
Do not enter a phase until the previous one is approved. A scope check (Phase 0) precedes all of them, but only when one request bundles several independently testable capabilities.
Most requests describe one capability; skip this phase for those.
Decompose first when:
Propose a capability map before any spec, small enough to review in a minute:
# Capability Map: [Initiative]
| Module id | Responsibility | Depends on |
|---|---|---|
| identity | Accounts, sessions, SSO | none |
| billing | Plans, invoices, payments | identity |
| notifications | Email and webhook fan-out | identity |
| reporting | Usage dashboards | billing, notifications |
Build order: identity, then billing and notifications, then reporting
harness-build:api-and-interface-design).The human approves the map (boundaries, dependency direction, build order) before any module spec is written. Then run Specify, Plan, Tasks, Implement per module in dependency order, saving the map at the project root and each spec beside it by id (SPEC-identity.md, SPEC-billing.md).
Start from the high-level vision and ask clarifying questions until requirements are concrete (use harness-define:interview-me when intent itself is unclear).
State assumptions before writing anything:
ASSUMPTIONS I AM MAKING:
1. A web application, not native mobile
2. Session cookies for auth, not JWT
3. PostgreSQL, based on the existing schema
4. Modern browsers only
-> Correct me now or I proceed with these.
Silently filling gaps is the most dangerous kind of misunderstanding.
Cover six areas:
Template:
# Spec: [Name]
## Objective
[What and why; user stories or acceptance criteria]
## Tech Stack
[Framework, language, key dependencies and versions]
## Commands
[Build, test, lint, dev]
## Project Structure
[Directory layout]
## Code Style
[Snippet and conventions]
## Testing Strategy
[Framework, locations, coverage, levels]
## Boundaries
- Always: ...
- Ask first: ...
- Never: ...
## Success Criteria
[Specific, testable conditions]
## Open Questions
[Needs human input]
Existing spec tooling. If the project already uses a specification system, keep its format and storage rather than creating a second spec file. This skill supplies the clarification, content, and approval gates; the tool supplies the representation.
Turn vague wishes into criteria:
REQUIREMENT: "Make the dashboard faster"
SUCCESS CRITERIA:
- Largest contentful paint under 2.5 s on a 4G profile
- Initial data load under 500 ms
- Layout shift score under 0.1
-> Are these the right targets?
Stop after writing the spec. Summarise it, list Open Questions, ask for approval or changes, and end the turn. Do not start planning or coding in that turn.
From the approved spec:
Follow harness-define:planning-and-task-breakdown for the mechanics (dependency graph, vertical slicing, sizing); it is the authority if this summary differs. Save the plan to tasks/plan.md and the task list in the target that skill defines (default tasks/todo.md). The human should be able to read the plan and say "yes, that approach" or "change X".
Split the plan into tasks that each fit one focused session, have explicit acceptance criteria and a verification step, are ordered by dependency, and touch about five files or fewer.
- [ ] Task: [description]
- Acceptance: [what is true when done]
- Verify: [test command, build, or manual check]
- Files: [expected files]
harness-define:planning-and-task-breakdown is the authority for sizing and ordering.
Work one task at a time using harness-build:incremental-implementation and harness-verify:test-driven-development. Use harness-build:context-engineering to load only the relevant spec sections and files for each step.
| Rationalization | Reality |
|---|---|
| "It is simple, no spec needed" | Short work needs a short spec, not none. Two lines of acceptance criteria will do. |
| "I will write the spec after coding" | That is documentation. A spec's value is forcing clarity beforehand. |
| "A spec slows us down" | Fifteen minutes of spec is cheaper than hours of rework. |
| "Requirements will change anyway" | Hence a living document. A stale spec still beats none. |
| "The user knows what they want" | Even clear requests carry implicit assumptions; the spec surfaces them. |
| "It is one big feature; splitting is overhead" | If criteria cluster into independent groups, a monolithic spec makes every task reason over the whole contract. A ten-line map is cheap. |
| "I will decompose during planning" | Planning slices tasks inside a spec; by then the oversized spec exists. Boundaries come before the spec. |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub ivedha-tech/platformnex-abilities --plugin harness-define5 skills in this plugin
/constraint-driven-developmentRecords a project's quality bar as a written, numeric, mechanically checkable contract (CONSTRAINTS.md) and watches diffs for quiet weakening of it, such as new lint or type suppressions, skipped or deleted tests, removed assertions, stubs, or lowered thresholds. Use when no quality bar is written down, when the user wants standards or gates defined, when coverage, performance, or accessibility targets need choosing, or when an agent keeps silencing checks to reach green./idea-refineTurns a vague idea into a sharp, testable concept through divergent then convergent thinking, ending in a one-page brief with assumptions and a Not Doing list. Use when an idea needs shaping before it can become a plan, when assumptions need stress-testing before commitment, or when options should be widened before narrowing to one./interview-meDraws out what the user actually wants through a one-question-at-a-time interview, each question carrying the agent's own guess, until the agent can predict the user's answers. Ends with a confirmed statement of intent. Use when a request is underspecified ("build me X" with no audience or reason), when the user asks to be interviewed or stress-tested, or when you notice yourself silently filling in gaps before any spec, plan, or code exists./planning-and-task-breakdownTurns a spec or clear requirements into an ordered plan of small, vertically sliced tasks with acceptance criteria, verification steps, dependencies, and checkpoints. Use when a spec exists and needs implementable tasks, when work feels too large to start, when scope must be estimated or communicated, or when work can be parallelised.2 plugins ship this exact skill · first indexed Nov 17, 2026