Getting Started
Install SpecWright and create your first specification in under 5 minutes.
Prerequisites: Node.js 18+ and npm 9+ installed on your machine.
Installation
npx specwrightRuns SpecWright directly without installing. Great for trying it out.
Your first specification
Initialize SpecWright in your project
Navigate to your project directory and run:
cd /path/to/your/project
specwright initThis creates the specwright/ folder with:
agents/— AI agent prompts (PM, Designer, Engineer, Breakdown)templates/— Output format templatesoutputs/— Where generated specifications live
It also creates .cursor/commands/ at your project root with custom Cursor commands.
After creating files, SpecWright asks if you want to generate a Playbook — a set of standards from your existing codebase.
Launch the Web UI
specwright viewThis starts the server on port 5174 and opens the dashboard. On your first run, you'll see the onboarding screen, which walks you through:
- Selecting your preferred AI coding tool (Cursor, Claude Code, Codex, Gemini CLI, GitHub Copilot, or Windsurf)
- A quick intro to the workflow and AI squad
- Completing initialization
Create a new project
Click New Project. You have two options:
AI-assisted mode (default) — Describe what you want to build in plain language:
"Build a task management app with user authentication, project boards, and real-time collaboration"
SpecWright classifies your request via Smart Scoping — it determines if this needs a full spec, is small enough to implement directly, or should be split into multiple projects.
Manual mode — Enter a project name and description directly if you already know the scope.
Walk through the specification phases
If your request needs a full spec, SpecWright guides you through four phases — each powered by a specialized AI agent:
- Product Manager — Asks questions about requirements, then generates a PRD with job stories and acceptance criteria
- Designer — Asks about UX needs, then produces screen definitions, wireframes, and user flows
- Engineer — Asks about technical constraints, then creates architecture docs and technology choices for you to select from
- Issue Breakdown — Analyzes all specs and breaks the work into vertical-slice implementation tasks
At each phase, you answer focused questions (the number depends on your question depth setting). The AI uses your answers to generate structured specification documents. You review each document — approve it, edit inline, or refine with AI feedback.
Ship to your AI tool
Once issues are generated, click Ship on any issue. SpecWright sends a prompt to your AI coding tool with the full specification context — requirements, design decisions, architecture, acceptance criteria, and testing strategy. See Ship to AI Tools.
Your outputs
After completing the workflow, your specwright/outputs/ directory contains:
specwright/outputs/projects/001-your-project/
├── project_request.md # Your original description
├── project_status.json # Phase tracking
├── questions/ # Agent questions & your answers
├── documents/
│ ├── prd.md # Product Requirements Document
│ ├── acceptance_criteria.json # Testable criteria (Given/When/Then)
│ ├── design_brief.md # UX specification
│ ├── screens.json # Screen inventory with components
│ ├── technical_specification.md # Architecture document
│ └── technology_choices.json # Tech decisions with trade-offs
└── issues/
└── issues.json # Implementation tasksAll files are plain Markdown and JSON — commit them to Git alongside your source code.
What's next?
- The Specification Workflow — Understand each phase in detail
- Using the Web UI — Navigate every screen in the dashboard
- Ship to AI Tools — Send tasks directly to Cursor, Claude Code, or other tools
- Settings Reference — Configure question depth, document length, and more