Skip to content
🤖 Consolidated, AI-optimized BMAD docs: llms-full.txt. Fetch this plain text file for complete context.

How to Create a Tech Spec

Use the tech-spec workflow for Quick Flow projects to go directly from idea to implementation-ready specification.


  • Bug fixes and small enhancements
  • Small features with clear scope (1-15 stories)
  • Rapid prototyping
  • Adding to existing brownfield codebase
  • Quick Flow track projects

  • BMad Method installed
  • PM agent or Quick Flow Solo Dev agent available
  • Project directory (can be empty for greenfield)

Start a fresh chat and load the PM agent (or Quick Flow Solo Dev agent).

*create-tech-spec

Or simply describe what you want to build:

I want to fix the login validation bug

The workflow will ask:

  • What problem are you solving?
  • What’s the scope of the change?
  • Any specific constraints?

For brownfield projects, the agent will:

  • Detect your project stack
  • Analyze existing code patterns
  • Detect test frameworks
  • Ask: “Should I follow these existing conventions?“

The agent generates a comprehensive tech-spec with ready-to-implement stories.


  • Problem statement and solution
  • Detected framework versions and dependencies
  • Brownfield code patterns (if applicable)
  • Existing test patterns to follow
  • Specific file paths to modify
  • Complete implementation guidance

For single changes:

  • story-[slug].md - Single user story ready for development

For small features:

  • epics.md - Epic organization
  • story-[epic-slug]-1.md, story-[epic-slug]-2.md, etc.

You: “I want to fix the login validation bug that allows empty passwords”

Agent:

  1. Asks clarifying questions about the issue
  2. Detects your Node.js stack (Express 4.18.2, Jest for testing)
  3. Analyzes existing UserService code patterns
  4. Asks: “Should I follow your existing conventions?” → Yes
  5. Generates tech-spec.md with specific file paths
  6. Creates story-login-fix.md

Total time: 15-30 minutes (mostly implementation)


You: “I want to add OAuth social login (Google, GitHub)”

Agent:

  1. Asks about feature scope
  2. Detects your stack (Next.js 13.4, NextAuth.js already installed!)
  3. Analyzes existing auth patterns
  4. Confirms conventions
  5. Generates:
    • tech-spec.md (comprehensive implementation guide)
    • epics.md (OAuth Integration epic)
    • story-oauth-1.md (Backend OAuth setup)
    • story-oauth-2.md (Frontend login buttons)

Total time: 1-3 hours (mostly implementation)


Terminal window
# Single change:
# Load DEV agent and run dev-story
# Multi-story feature:
# Optional: Load SM agent and run sprint-planning
# Then: Load DEV agent and run dev-story for each story

  • ✅ “Fix email validation in UserService to allow plus-addressing”
  • ❌ “Fix validation bug”

If it detects your patterns correctly, say yes! It’s faster than establishing new conventions.

If your “single change” needs 3+ files, it might be a multi-story feature. Let the workflow guide you.