What is Draft?

Context-Driven Development plugin for AI coding agents

Draft is a free, open-source Context-Driven Development (CDD) plugin that adds structured methodology to AI coding agents. It works with Claude Code, GitHub Copilot, Google Gemini, Cursor, and Antigravity IDE to enforce spec-driven development, test-driven development (TDD), and automated code review. Draft provides 25 slash commands and 7 specialized agents that turn AI assistants from autonomous guessing machines into disciplined executors of pre-approved work.

The core idea: before AI writes a single line of code, it analyzes your codebase, generates a specification, builds a phased plan, and waits for your approval. Only then does implementation begin — constrained by your architecture, your conventions, and your acceptance criteria. Every decision is grounded in explicit, versioned, reviewable documents rather than implicit assumptions buried in a chat window.

How Draft Works

Draft operates through a 4-phase workflow that mirrors how experienced engineering teams ship software:

Phase 1
Init
/draft:init
Analyzes your codebase and generates architecture docs, AI context files, and project configuration.
Phase 2
Plan
/draft:new-track
Creates a specification and phased implementation plan through collaborative dialogue. You approve before code begins.
Phase 3
Implement
/draft:implement
Builds features task-by-task with TDD cycles (RED → GREEN → REFACTOR) and architecture checkpoints.
Phase 4
Review
/draft:review
3-stage code review: automated validation, spec compliance, and code quality assessment.

This workflow is supported by 21 additional specialist commands for debugging, operations, quality assurance, documentation, and more. Each command loads only the context it needs, keeping token usage efficient while maintaining full project awareness.

Key Features

Supported Platforms

Draft integrates natively with each platform using their respective configuration formats:

Platform Integration Method Setup
Claude Code Native plugin (/plugin install) 30 seconds
Cursor Native .claude/ plugin structure 30 seconds
GitHub Copilot .github/copilot-instructions.md 1 minute
Google Gemini .gemini.md bootstrap file 1 minute
Antigravity IDE Global skill installation 1 minute

Installation

For Claude Code (the primary platform):

# Add from the plugin marketplace
/plugin marketplace add mayurpise/draft

# Install the plugin
/plugin install draft

# Initialize your project
/draft:init

For other platforms, see the installation guide on GitHub.

Frequently Asked Questions

Is Draft free?

Yes. Draft is completely free and open source under the MIT license. There are no paid tiers, no usage limits, and no vendor lock-in. The only costs come from the host AI tools you already use (Claude Code, Copilot, etc.).

How is Draft different from other AI coding tools?

Draft is not an AI coding tool — it is a methodology layer that runs on top of existing AI agents. While tools like Cursor or Copilot generate code, Draft ensures that code follows approved specifications, passes TDD gates, and fits your architecture. It adds structure and quality gates, not another AI model. There is no API key, no hosted service, no vendor lock-in. Draft is markdown files and bash scripts.

Does Draft work with existing projects?

Yes. Running /draft:init performs a 5-phase analysis of your existing codebase, generating architecture documentation, AI context files, and signal classifications. It works with any language, framework, or project structure — brownfield or greenfield.

What is Context-Driven Development?

Context-Driven Development (CDD) is a methodology where AI coding agents operate from persistent, file-based project context rather than ephemeral chat prompts. Draft analyzes your codebase to generate architecture docs, then enforces a spec-first workflow: specifications and plans are written and reviewed before any code is generated. Every decision is explicit, versioned, and reviewable.

Does Draft require a lot of configuration?

Minimal. After installation, run /draft:init and it automatically analyzes your codebase and generates all necessary configuration files (product.md, tech-stack.md, architecture.md, etc.). Defaults work out of the box. You can customize afterward.

Can Draft work with monorepos?

Yes. The /draft:index command provides monorepo federation — it discovers services, builds dependency graphs, and aggregates context across multiple packages or services. Each service gets its own context while maintaining a unified root-level view.

Learn More

Draft is built and maintained by Mayur Pise and is available on GitHub under the MIT license.