writing-feature-spec

Generate layered Markdown feature specifications with user stories and acceptance criteria.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/mazrean/agent-skills --skill writing-feature-spec
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-feature-spec
Source: https://github.com/mazrean/agent-skills/tree/main/skills/writing-feature-spec
Command: npx skills add https://github.com/mazrean/agent-skills --skill writing-feature-spec

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation of product requirements documents (PRDs) and feature specifications, ensuring they are structured for optimal understanding and execution by AI coding agents.

Core Features & Use Cases

  • Context-Layered Specs: Organizes information into layers (L1-L4) for efficient agent loading.
  • Structured Templates: Provides a robust Markdown template for requirements, user stories, and acceptance criteria.
  • Use Case: When starting a new feature, use this Skill to generate a specs/prd-{feature-name}.md file that clearly defines functional requirements, user stories in Given-When-Then format, and non-goals, making it easy for an AI agent to understand and implement.

Quick Start

Use the writing-feature-spec skill to create a new feature specification for a user profile update feature.

Frequently Asked Questions about writing-feature-spec

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write a feature specification that an AI coding agent can understand?

To write an agent-ready feature specification, you structure product requirements into context layers (L1-L4) for efficient information loading. This progressive disclosure method ensures AI agents can parse functional requirements and user stories without being overwhelmed by unstructured text.

What is the best way to format user stories and acceptance criteria for spec-driven development?

The best way to format user stories for spec-driven development is using a structured Markdown template with Given-When-Then acceptance criteria. This clearly defines functional requirements and non-goals, ensuring unambiguous execution by AI agents.

How does progressive disclosure work in product requirements documents?

Progressive disclosure in product requirements documents works by organizing information into distinct layers (L1-L4). This context-layered approach allows AI coding agents to efficiently load only the necessary specification details, reducing token usage and improving implementation accuracy.

Can I use a standard PRD template for AI agent spec-driven development?

Standard PRD templates often lack the structured context layers required for AI agent spec-driven development. You need an agent-optimized feature specification format that separates functional requirements, user stories, and non-goals into distinct layers for efficient machine parsing.

What should be included in a feature spec to start spec-driven development?

A feature spec to start spec-driven development should include functional requirements, user stories in Given-When-Then format, acceptance criteria, and non-goals. Organizing these into a structured Markdown file like `specs/prd-{feature-name}.md` initiates clear AI agent execution.