# spec driven development

> Enforce a gated, four-phase workflow to define specs, maps, and tasks before writing code.

spec driven development is a free AI agent skill on Agensi by 郭睿桓（Richard）, in Prompt & Skill Engineering. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [郭睿桓（Richard）](https://www.agensi.io/creators/richard-3)
- Category: [Prompt & Skill Engineering](https://www.agensi.io/skills/prompt-skill-engineering)
- Uses: 1
- Version: 1.0
- Last updated: 2026-10-18
- Security: scan passed (2026-10-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/spec-driven-development
- Tags: prompt-engineering, project-management, documentation, workflow-automation

## About this skill

Avoid the trap of coding based on assumptions. When requirements are vague or a single request touches multiple systems, jumping straight to implementation leads to rework and architectural debt. This skill enforces a structured, four-phase gated workflow to ensure you and your agent are aligned before a single line of code is written.

### What it does
- **Decompose complex requests** by creating a capability map that identifies distinct modules and their dependencies.
- **Surface assumptions** by listing technical and environmental premises for human validation before proceeding.
- **Define concrete specs** covering objectives, stack, directory structure, and executable commands.
- **Establish guardrails** with a three-tier boundary system (Always, Ask First, Never) to prevent unauthorized changes.
- **Reframe requirements** by translating vague user requests into specific, testable success criteria.

### How it works
1. **Scope Check.** The agent detects if the request contains multiple testable capabilities and proposes a module map.
2. **Specify.** The agent generates a `SPEC.md` document covering six core areas and waits for human approval.
3. **Plan.** A technical implementation strategy is created in `tasks/plan.md` with dependency-graph mapping.
4. **Tasking.** The plan is broken into discrete, session-sized tasks with clear verification steps in `tasks/todo.md`.

### Frameworks & tools
This skill is framework-agnostic and works with any stack including React, Node.js, Python, and PostgreSQL. It integrates with existing `incremental-implementation` and `test-driven-development` workflows.

### Why this beats prompting it yourself
Generic prompts often lead to "hallucinated" requirements or silent assumptions that break your architecture. This skill forces a gated approval process, ensuring the agent never builds the wrong thing for 15 hours when a 15-minute spec could have caught the error.

### Use cases
- Starting a greenfield project where the folder structure and tech stack are undecided.
- Adding a major feature that spans multiple modules, like adding billing to an identity system.
- Refactoring legacy code where success criteria must be strictly defined to avoid regressions.

### Known limitations
Not intended for single-line fixes or trivial typo corrections. Requires manual human approval at each phase gate to advance to implementation.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the spec driven development skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill differ from simply asking an agent to write a plan?

This skill is designed for high-complexity tasks where 'coding on the fly' leads to errors. It enforces a gated workflow that requires the agent to produce and get approval for a Capability Map, a SPEC.md, and a Task Plan before implementation begins.

### Which AI agents and tech stacks are compatible with this workflow?

This skill is framework-agnostic and works with any LLM-powered agent that has file system access. It is particularly effective for agents used in software engineering, such as those building with React, Python, or Node.js.

### What is included in the purchase and how do I set it up?

No complex installation is required; the purchase includes the core skill definition and the four-phase workflow templates. Once imported into your agent's library, it can be triggered whenever a new project or major feature is initiated.

### Does this skill require me to stay active during the process, or is it fully autonomous?

The 'gated' nature means the agent will pause and wait for your feedback after the Scope, Spec, and Planning phases. This prevents the agent from autonomously burning through tokens or making architectural decisions without your explicit sign-off.

### Is this skill recommended for small, single-line code fixes?

No, this skill is specifically optimized for complex features and greenfield projects. For minor bug fixes or small UI tweaks, the overhead of creating full specifications may outweigh the benefits, and we recommend using standard direct prompting instead.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
