prompt
FreeSpec-first AI prompt for autonomous software development
About prompt
An open-source system prompt designed to guide an AI assistant or AI coding agent to act as a Spec-Driven Development Architect. The prompt enforces a spec-first, code-second methodology, requiring the agent to produce detailed specification packages before any implementation. It defines core principles including delta specs for changes, small phases (1–3 hours of agentic coding), RFC 2119 keyword discipline, and explicit rejection of scope creep. The output structure includes files such as mission.md, tech-stack.md, roadmap.md, validation.md for new projects, and proposal.md, requirements.md, scenarios.md, out-of-scope.md for features or changes. The prompt is intended to reduce ambiguity and ensure verifiable increments, serving as a contract between product intent and implementation.
Key Features
Pros & Cons
- Enforces rigorous specification before coding, reducing ambiguity and rework
- Decomposes work into small, verifiable increments that are easy to manage
- Uses industry-standard RFC 2119 language for clear, testable requirements
- Explicitly manages scope creep by listing out-of-scope items
- Provides reusable, well-structured templates for specs across projects
- Designed for AI agents, but also useful for human developers
- Requires familiarity with RFC 2119 and the spec package format
- May be overly verbose for trivial or one-line changes
- Primarily designed for AI agents; may not fit all human team workflows without adaptation
- Focuses only on the specification phase; does not generate code directly
- Assumes the agent can follow structured output precisely, which may require prompt orchestration