Skip to content

Commit 3f945f0

Browse files
Mayur PiseMayur Pise
authored andcommitted
feat(v2.5): command reduction, universal install, and website overhaul
This release introduces major architectural improvements: 1. Command Reduction Plan: - Replaced fragmented workflow commands with consolidated parents: '/draft:plan', '/draft:ops', '/draft:docs', and '/draft:integrations'. - Total command count scaled from 28 to 32. 2. Phase 0 Graph Build: - Added graph analysis as a mandatory precursor (Phase 0) to '/draft:init' 5-phase analysis. 3. Unified Installation Workflow: - Created 'scripts/install.sh' as a universal install script for multiple IDE environments. 4. Documentation & Website: - Updated CHANGELOG.md for v2.5.0. - Overhauled website content ('web/index.html', 'web/what-is-draft/index.html') reflecting the new 32 commands and Phase 0 workflow. - Replaced social media sharing text to highlight core features. - Integrated Hacker News sharing link across all web footer variations. - Refreshed Draft Book command reference table with the latest hierarchy.
1 parent c931cc1 commit 3f945f0

21 files changed

Lines changed: 2516 additions & 419 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## [Unreleased]
99
- Ongoing refinements to agent behavior protocols.
1010

11+
## [2.5.0] - 2026-05-17
12+
13+
### Added
14+
- **Command Reduction Plan** — Introduced canonical parent commands (`/draft:plan`, `/draft:ops`, `/draft:docs`, `/draft:integrations`) to logically group and reduce surface-level command sprawl. The legacy specialist commands are now intelligently routed through these parent entry points.
15+
- **Phase 0 Graph Build** — The knowledge graph build is now officially Phase 0 of the `/draft:init` workflow, executing before the 5-phase analysis to provide exact module boundaries and dependencies.
16+
- **Universal Install Script** — A single installation script (`scripts/install.sh`) has been created to unify and simplify the onboarding experience across all supported IDE environments (Claude Code, Cursor, Copilot, Gemini, Antigravity).
17+
1118
## [2.4.0] - 2026-04-26
1219

1320
### Added

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
44

55
## Repository Overview
66

7-
Draft is a Claude Code plugin that implements Context-Driven Development methodology. It provides 28 slash commands organized in a two-tier architecture: 4 primary workflow commands (`/draft:init`, `/draft:new-track`, `/draft:implement`, `/draft:review`) with auto-invocation, plus 24 specialist commands for debugging (`/draft:debug`), operations (`/draft:deploy-checklist`, `/draft:incident-response`, `/draft:standup`), quality (`/draft:quick-review`, `/draft:testing-strategy`, `/draft:tech-debt`), authoring (`/draft:documentation`), DX (`/draft:assist-review`, `/draft:impact`, `/draft:tour`), and more (`/draft:status`, `/draft:revert`, `/draft:decompose`, `/draft:coverage`, `/draft:deep-review`, `/draft:bughunt`, `/draft:learn`, `/draft:adr`, `/draft:change`, `/draft:index`, `/draft:jira-preview`, `/draft:jira-create`). Run `/draft` for overview.
7+
Draft is a Claude Code plugin that implements Context-Driven Development methodology. It now exposes `/draft:plan` as the canonical planning parent command alongside `/draft:init`, `/draft:implement`, and `/draft:review`. The older planning commands (`/draft:new-track`, `/draft:decompose`, `/draft:change`, `/draft:adr`) remain available as specialist modes and compatibility entry points. Run `/draft` for the current command overview.
88

99
Draft also ships a **knowledge graph engine** under `graph/` (Node.js + tree-sitter WASM) and **14 deterministic shell helpers** under `scripts/tools/`. Skills are markdown (source of truth, processed by a bash build script into platform-specific integration files for Copilot and Gemini); the graph engine and shell helpers handle mechanical work that markdown can't.
1010

@@ -47,7 +47,7 @@ core/agents/*.md ──┘
4747
```
4848

4949
The build script (`scripts/build-integrations.sh`) reads `SKILL_ORDER`, `CORE_FILES`, and `TOOLS` from `scripts/lib.sh` (sourced) and:
50-
1. Iterates `SKILL_ORDER` (28 skills, order matters)
50+
1. Iterates `SKILL_ORDER` (order matters)
5151
2. Validates YAML frontmatter (`name:` and `description:` required)
5252
3. Validates body format: blank, `# Title`, blank, then content
5353
4. Extracts body via `extract_body()`, skipping frontmatter

README.md

Lines changed: 32 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Free. No API keys. No paid tier. No vendor lock-in. Catches the 3 bugs you misse
4646
```bash
4747
/plugin marketplace add mayurpise/draft
4848
/plugin install draft
49-
/draft:init # 5-phase codebase analysis (one-time)
49+
/draft:init # Graph + 5-phase codebase analysis (one-time)
5050
/draft:review # ← run this on every branch before you push
5151
```
5252

@@ -55,41 +55,43 @@ That's it. Run `/draft` for the full command map.
5555
<details>
5656
<summary><strong>Also works with Cursor, GitHub Copilot, Antigravity, and Gemini →</strong></summary>
5757

58-
### Cursor
59-
Cursor natively supports the `.claude/` plugin structure. Add via *Settings > Rules, Skills, Subagents > Rules > New > Add from Github*:
58+
You can use the universal installation script to configure Draft for your environment:
59+
60+
### Claude Code (Local Installation)
61+
If you prefer not to use the marketplace, you can install the plugin locally to your project:
62+
```bash
63+
curl -fsSL https://raw.githubusercontent.com/mayurpise/draft/main/scripts/install.sh | bash -s -- --claude
6064
```
61-
https://github.com/mayurpise/draft.git
65+
66+
### Cursor
67+
```bash
68+
curl -fsSL https://raw.githubusercontent.com/mayurpise/draft/main/scripts/install.sh | bash -s -- --cursor
6269
```
63-
Then use: `@draft init`, `@draft new-track`, `@draft implement`.
6470

6571
### GitHub Copilot
6672
```bash
67-
mkdir -p .github && curl -o .github/copilot-instructions.md \
68-
https://raw.githubusercontent.com/mayurpise/draft/main/integrations/copilot/.github/copilot-instructions.md
73+
curl -fsSL https://raw.githubusercontent.com/mayurpise/draft/main/scripts/install.sh | bash -s -- --copilot
6974
```
7075

7176
### Gemini
7277
```bash
73-
curl -o .gemini.md https://raw.githubusercontent.com/mayurpise/draft/main/integrations/gemini/.gemini.md
78+
curl -fsSL https://raw.githubusercontent.com/mayurpise/draft/main/scripts/install.sh | bash -s -- --gemini
7479
```
7580

7681
### Antigravity IDE
77-
Draft is used globally by installing skills to a central location:
78-
1. Clone Draft to `~/.gemini/antigravity/skills/draft`
79-
2. Configure `~/.gemini.md` to point to the global skills:
80-
```markdown
81-
**Skill Locations:**
82-
The authoritative Draft implementation skills are located at:
83-
`/Users/mayurpise/.gemini/antigravity/skills/draft/skills`
82+
```bash
83+
curl -fsSL https://raw.githubusercontent.com/mayurpise/draft/main/scripts/install.sh | bash -s -- --antigravity
8484
```
8585

8686
</details>
8787

8888
---
8989

90-
## Beyond `/draft:review` — 27 more commands
90+
## The 7 Core Workflows
9191

92-
`/draft:review` is the wedge. Once Draft has indexed your repo, you also get spec-driven planning, TDD-enforced implementation, exhaustive bug hunting, deep architectural audits, and 23 more commands covering the full development lifecycle.
92+
Draft provides a complete system for spec-driven planning, TDD-enforced implementation, and operational workflows.
93+
94+
Specialist modes are built in. Advanced review, bug hunting, impact analysis, debugging, and documentation workflows are invoked intelligently through these parent commands.
9395

9496
---
9597

@@ -98,33 +100,15 @@ The authoritative Draft implementation skills are located at:
98100
| Command | What It Does |
99101
|---------|--------------|
100102
| **`/draft`** | Overview, intent mapping, and command reference |
101-
| **`/draft:init`** | Analyze codebase, create context files + state tracking |
102-
| **`/draft:index`** | Aggregate monorepo service contexts |
103-
| **`/draft:new-track`** | Collaborative spec + plan with AI |
104-
| **`/draft:decompose`** | Module decomposition with dependency mapping |
105-
| **`/draft:implement`** | TDD workflow with checkpoints |
106-
| **`/draft:coverage`** | Code coverage report (target 95%+) |
107-
| **`/draft:review`** | 3-stage review (validation + spec compliance + code quality) |
108-
| **`/draft:deep-review`** | Enterprise-grade module lifecycle and ACID audit |
109-
| **`/draft:bughunt`** | Exhaustive 14-dimension defect discovery with taint tracking |
110-
| **`/draft:learn`** | Discover coding patterns, update guardrails |
111-
| **`/draft:adr`** | Architecture Decision Records |
112-
| **`/draft:status`** | Show progress overview |
113-
| **`/draft:revert`** | Git-aware rollback |
114-
| **`/draft:change`** | Handle mid-track requirement changes |
115-
| **`/draft:debug`** | Structured debugging: reproduce, isolate, diagnose, fix |
116-
| **`/draft:quick-review`** | Lightweight 4-dimension code review |
117-
| **`/draft:deploy-checklist`** | Pre-deployment verification with rollback triggers |
118-
| **`/draft:testing-strategy`** | Test plan design with coverage targets |
119-
| **`/draft:tech-debt`** | Technical debt analysis across 6 dimensions |
120-
| **`/draft:standup`** | Git activity standup summary (read-only) |
121-
| **`/draft:incident-response`** | Incident lifecycle: triage, communicate, mitigate, postmortem |
122-
| **`/draft:documentation`** | Technical docs: readme, runbook, api, onboarding |
123-
| **`/draft:jira-preview`** | Generate Jira export for review |
124-
| **`/draft:jira-create`** | Push issues to Jira via MCP |
125-
| **`/draft:tour`** | Interactive architecture mentorship and codebase walk-through |
126-
| **`/draft:impact`** | ROI analytics tracking friction and timeline metrics |
127-
| **`/draft:assist-review`** | Summarize intent and highlight structural PR risks for reviewers |
103+
| **`/draft:init`** | Analyze codebase, create context files, or route to `refresh`/`index`/`discover` |
104+
| **`/draft:plan`** | Canonical planning entry point (routes to `new-track`, `decompose`, `change`, `adr`) |
105+
| **`/draft:implement`** | TDD workflow, routes to `status`, `coverage`, `revert` |
106+
| **`/draft:review`** | 3-stage review, routes to `quick`, `bughunt`, `deep`, `assist` |
107+
| **`/draft:ops`** | Operations entry point (routes to `debug`, `deploy-checklist`, `incident-response`, `standup`) |
108+
| **`/draft:docs`** | Documentation entry point (routes to `documentation`, `testing-strategy`, `tech-debt`, `tour`) |
109+
| **`/draft:integrations`**| External systems entry point (routes to `jira-preview`, `jira-create`) |
110+
111+
*(Legacy specialist commands remain supported via their canonical parent commands.)*
128112

129113
[See full command reference →](core/methodology.md#command-workflows)
130114

@@ -164,9 +148,9 @@ Skills also call into **14 shell helpers** under `scripts/tools/` for mechanical
164148
```
165149
┌─────────────────────────────────────────────────────────────┐
166150
│ /draft:init │
167-
5-phase codebase analysis + signal detection + state
168-
architecture.md + .ai-context.md + .state/ (freshness,
169-
signals, run memory)
151+
Phase 0: Graph build (module boundaries, impact, cycles)
152+
Phase 1-5: Codebase analysis + signal detection + state │
153+
architecture.md + .ai-context.md + graph/ + .state/
170154
└────────────────────────────┬────────────────────────────────┘
171155
172156
@@ -204,6 +188,7 @@ product.md → "Build a task manager"
204188
tech-stack.md → "React, TypeScript, Tailwind"
205189
architecture.md → Comprehensive: 28 sections + 5 appendices, Mermaid diagrams (source of truth)
206190
.ai-context.md → 200-400 lines: condensed from architecture.md (token-optimized AI context)
191+
graph/ → knowledge graph artifacts (modules, proto APIs, hotspots)
207192
.state/ → freshness hashes, signal classification, run memory (incremental refresh)
208193
spec.md → "Add drag-and-drop reordering"
209194
plan.md → "Phase 1: sortable, Phase 2: persist"

0 commit comments

Comments
 (0)