| name | feature-specification |
| description | Produces a structured, experience-first feature specification following a docs-first approach. Use when defining or refining a single product feature's lifecycle and outcomes. |
Feature Specification Authoring
What is it?
This skill generates a canonical, experience-first feature specification that defines a single feature’s intent, user lifecycle, and completion criteria.
It is docs-first and agent-ready, serving as the single source of truth for planning, review, automation, and execution.
When to Use This Skill
Use this skill when you need to:
- Define a new feature before development planning
- Clarify scope and non-scope for an existing feature
- Align product and engineering on user-centric outcomes
- Create a high-quality prompt/spec for implementation agents
Do not use this skill for:
- roadmap planning
- task breakdown (except tasks derived directly from scenarios)
- technical design
- UI or UX design (focus on functional behavior)
Core Principles
- Experience-First: Scenarios must focus on quality of life and the user lifecycle, not just technical mechanics.
- Stateless & Portable: The specification should be understandable without prior system context.
- Derived Tasks (Execution-Ready): All implementation tasks must be technical, actionable, and map back to specific scenarios for an AI Implementer.
- Observable Acceptance (Agent-Verifiable): Success must be verifiable by the Execution Agent through tests or observable system states.
- Gherkin-in-Markdown: Scenarios must use Gherkin keywords (Given, When, Then, And) rendered as bold Markdown text. Do NOT use code blocks (e.g.,
```gherkin). - Human-Centric & Dynamic: Scenarios should be written as dynamic, narrative journeys from the user's perspective, while maintaining the structural clarity of Gherkin.
Authoring Guidance
When generating a feature specification:
- Leverage Gherkin Authoring Skill: Invoke the
gherkin-authoringskill to maximize the use of Gherkin syntax (e.g.,Background,Scenario Outline,Examples,Data Tables,Doc Strings) to ensure scenarios are precise and comprehensive. - Format as Gherkin-in-Markdown: After reasoning with the Gherkin skill, transpose the logic into pure Markdown. Use bold keywords (e.g., Scenario Outline, Examples, Given, When, Then) without code blocks.
- Follow Scenarios 1.1 - 1.6: Ensure every user story covers the full lifecycle (Initial, Returning, Interruption, Error, Performance, Context).
- Outcome-Oriented: Describe what the feature enables, not how it is built.
- Explicit Boundaries: Clearly state Non-Goals to protect focus.
- Human-Centric Errors: Scenario 1.4 must focus on clear, humane communication during failures.
- Feature Flag Strategy: Always include a strategy in the Rollout section.
Output Structure
The output MUST follow the canonical structure defined in assets/feature-spec.template.md:
- Metadata: YAML block for name, context, status, and owner.
- Overview: Purpose and meaningful change.
- User Problem: Lived experience and current friction.
- Goals: Split into UX Goals and Business/System Goals.
- Non-Goals: Boundaries and deferred problems.
- Functional Scope: Conceptual capabilities and system responsibilities.
- Dependencies & Assumptions: Required conditions.
- User Stories & Scenarios: Detailed lifecycle scenarios (1.1 through 1.6).
- Edge Cases & Constraints: Experience-relevant limits.
- Implementation Tasks: Tasks T01-T05 defined as an Execution Agent Checklist.
- Acceptance Criteria: Verifiable outcomes (AC1-AC5) for the agent to confirm completion.
- Rollout & Risk: Strategy and Mandatory Feature Flag.
- History & Status: Metadata and links.
11. Rollout & Risk (Feature Flag Requirement)
This section is mandatory and must explicitly state the flag strategy:
- No flag required: Feature is low risk and does not require a toggle.
- Temporary flag: Include the purpose and explicit removal or promotion criteria.
- Permanent flag: Include a justification (e.g., experiments, pricing, segmentation, or compliance).
Important Boundaries
This skill must not:
- ask clarification questions
- decide sequencing or next steps
- create tasks or tickets (except the T-series tasks in section 9)
- define implementation details
- interact with users
All orchestration and workflow decisions belong to the calling agent.
Output Expectations
- Tone: Neutral, precise, and humane.
- Format: Clean Markdown following the specific hierarchy.
- Quality: Avoid placeholders; provide specific, actionable scenarios.