Bahrul
BahrulPersonal Docs

Spec-Driven Dev Tools

Guide to using OpenSpec, Spec Kit, and BMAD-METHOD for structured AI-assisted development

Spec-Driven Development is a methodology where specifications become the source of truth, guiding AI assistants to produce predictable, well-structured implementations. This guide covers three popular tools in this space.

Overview

All three tools work with popular AI coding assistants including Claude Code, Cursor, GitHub Copilot, and others.

ToolFocusBest For
OpenSpecChange proposals and spec trackingBrownfield projects, feature modifications
Spec KitExecutable specificationsNew projects, scenario-driven development
BMAD-METHODFull agile workflow with agentsTeams, enterprise projects

OpenSpec

OpenSpec is a lightweight framework that enables humans and AI assistants to agree on specifications before implementation begins. It uses a two-folder model to track current specs and proposed changes.

Installation

Requires Bun or Node.js 20.19.0 or higher.

bun add -g @fission-ai/openspec@latest
openspec --version

Quick Start

Initialize in Your Project

cd my-project
openspec init

This creates the openspec/ folder with specs/ and changes/ directories.

Create a Change Proposal

Using the native slash command in Claude Code:

/openspec:proposal Add user authentication with OAuth

Or via CLI:

openspec new "Add user authentication"

Review and Implement

After refining the spec, implement the changes:

/openspec:apply auth-feature

Archive When Complete

openspec archive auth-feature --yes

Commands Reference

CommandDescription
openspec initInitialize OpenSpec in current project
openspec listView active changes
openspec viewInteractive dashboard
openspec show <change>Display change details
openspec validate <change>Check formatting
openspec archive <change>Move completed change to archive
/openspec:proposalCreate new proposal (Claude Code)
/openspec:applyImplement approved changes (Claude Code)
/openspec:archiveArchive completed changes (Claude Code)

Spec Kit

Spec Kit is GitHub's open-source toolkit for Spec-Driven Development. It transforms specifications into executable implementations through a structured workflow of clarification, planning, and task generation.

Installation

Install globally with uv:

uv tool install specify-cli --from git+https://github.com/github/spec-kit.git

Run directly without installing:

uvx --from git+https://github.com/github/spec-kit.git specify init my-project

Requires Python 3.11+ and Git installed on your system.

Quick Start

Initialize a New Project

specify init my-project
cd my-project

Define Project Constitution

Use the slash command to establish governing principles:

/speckit.constitution

Create Specifications

Describe requirements and user stories:

/speckit.specify

Plan and Generate Tasks

/speckit.plan
/speckit.tasks

Implement

Execute tasks to build features:

/speckit.implement

Commands Reference

CommandDescription
specify init <name>Create new Spec Kit project
specify checkVerify system requirements
/speckit.constitutionDefine project principles
/speckit.specifyCreate requirements and user stories
/speckit.planGenerate implementation strategy
/speckit.tasksCreate actionable task list
/speckit.implementExecute tasks to build features
/speckit.clarifyClarify ambiguous requirements
/speckit.analyzeAnalyze existing code/specs
/speckit.checklistGenerate verification checklist

BMAD-METHOD

BMAD-METHOD is an AI-driven agile development framework with 12 specialized agents and 34 workflows. It adapts from quick bug fixes to enterprise-scale projects with compliance requirements.

Installation

bunx bmad-method@alpha install

The @alpha version is recommended. For legacy v4, use bunx bmad-method install.

Quick Start

Initialize Your Project

After installation, run the workflow initialization:

*workflow-init

This analyzes your project and recommends a development track.

Choose Your Track

BMAD-METHOD offers three tracks based on project complexity:

TrackUse CaseSetup Time
Quick FlowBug fixes, small changes< 5 minutes
BMad MethodProducts and platforms< 15 minutes
EnterpriseCompliance-heavy projects< 30 minutes

Work Through Phases

The framework operates in four phases:

  1. Analysis - Research and solution exploration
  2. Planning - Requirements and specifications
  3. Solutioning - Architecture and design
  4. Implementation - Development with validation

Specialized Agents

BMAD-METHOD includes 12 specialized agents:

Key Features

  • Scale-Adaptive Intelligence - Adjusts planning depth automatically
  • Multi-Language Support - Works with any programming language
  • Token Optimization - 90% savings via document sharding
  • Customizable Agents - Create domain-specific agents with BMad Builder

Comparison

Next Steps

On this page