lean-spec 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,321 +1,421 @@
1
1
  # LeanSpec
2
2
 
3
- A lightweight, agile Spec-Driven Development (SDD) methodology and adaptive workflow designed to reduce spec "mind burden" and keep teams—both humans and AI coding agents—focused on what truly matters.
3
+ <p align="center">
4
+ <img src="docs-site/static/img/logo-with-bg.svg" alt="LeanSpec Logo" width="120" height="120">
5
+ </p>
4
6
 
5
- > **LeanSpec is not just a document—it's an adaptive workflow, SOP (Standard Operating Procedure), and living process for AI-powered development teams.**
7
+ <p align="center">
8
+ <a href="https://www.npmjs.com/package/lean-spec"><img src="https://img.shields.io/npm/v/lean-spec.svg" alt="npm version"></a>
9
+ <a href="https://www.npmjs.com/package/lean-spec"><img src="https://img.shields.io/npm/dm/lean-spec.svg" alt="npm downloads"></a>
10
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License"></a>
11
+ </p>
6
12
 
7
- ## The Problem
8
-
9
- Traditional software specifications often suffer from:
10
- - **Documentation Overload**: Lengthy documents that nobody (human or AI) reads or maintains
11
- - **Frozen Contracts**: Specs that become outdated as soon as development begins
12
- - **Exhaustive Overthinking**: Trying to document every possible edge case upfront
13
- - **Mind Burden**: Cognitive load from managing verbose, complicated documentation
14
- - **Lost Intent**: The "why" gets buried under mountains of "what" and "how"
13
+ ---
15
14
 
16
- Development teams—including AI coding agents—need clear direction without being buried in documentation debt.
15
+ ## Specs that fit in AI working memory
17
16
 
18
- ## The LeanSpec Solution
17
+ Traditional 2,000-line RFCs overflow AI context windows. Your AI agent can't help because it can't fit the full context.
19
18
 
20
- LeanSpec is a **mindset and methodology, not a rigid format or tool**. It's about capturing what truly matters with minimal overhead.
19
+ ```diff
20
+ - Heavyweight process (multi-step workflows) → AI context overflow
21
+ - Vibe coding (no specs) → Team misalignment
22
+ + LeanSpec: Structure without overhead
23
+ ```
21
24
 
22
- A simple example structure might include:
23
- - **The Goal**: Why this work exists
24
- - **Key Scenarios**: The critical user journeys that must succeed
25
- - **Acceptance Criteria**: Clear, testable conditions for "done"
26
- - **Technical Contracts**: Essential interfaces and constraints
27
- - **Non-Goals**: What we're explicitly not doing (to maintain focus)
25
+ **LeanSpec: A lean SDD methodology for human + AI collaboration.**
28
26
 
29
- But the key is the mindset: focus on clarity, keep it lean, make it living documentation. The structure should serve your needs, not constrain them.
27
+ Specs under 300 lines. Intent-focused. Machine-readable. Adapts to your workflow—from solo dev to enterprise.
30
28
 
31
- ## Agile Principles
29
+ *Lean = adaptive and progressive. Tools (CLI/MCP) support the methodology.*
32
30
 
33
- LeanSpec is built on these core principles:
31
+ <p align="center">
32
+ <a href="#quick-start-5-minutes"><strong>Quick Start (5 Minutes) →</strong></a> •
33
+ <a href="https://www.lean-spec.dev"><strong>Documentation</strong></a> •
34
+ <a href="https://www.lean-spec.dev/docs/guide/ai-executable-patterns"><strong>Examples</strong></a>
35
+ </p>
34
36
 
35
- ### 🎯 Clarity over Documentation
36
- Write just enough to communicate intent clearly. If it doesn't add clarity, don't write it.
37
+ ---
37
38
 
38
- ### 🚀 Essential Scenarios over Exhaustive Lists
39
- Focus on the 20% of scenarios that deliver 80% of the value. Document what must work, not every possible edge case.
39
+ ## The SDD Dilemma
40
40
 
41
- ### 📱 Living Guide over Frozen Contract
42
- Specs should evolve with the project. Update them as you learn, don't treat them as immutable contracts.
41
+ ### Scenario 1: Context Overflow 🔴
43
42
 
44
- ### 🧠 Reduced Mind Burden over Comprehensive Coverage
45
- Keep specs short and scannable. The goal is to reduce cognitive load, not create reference manuals.
43
+ You paste a traditional spec into Cursor. **"Context too large."** Your AI agent can't help—it can't fit the full context. Back to manual implementation.
46
44
 
47
- ### Speed over Perfection
48
- Ship a "good enough" spec quickly. You can always refine it based on feedback and learning.
45
+ ### Scenario 2: Stale Documentation 📄
49
46
 
50
- ### 🤝 Collaboration over Specification
51
- Use specs as conversation starters, not as replacements for human communication.
47
+ Your team has beautiful specs. None match the current code. Nobody updates them because it's too painful. They're documentation theater.
52
48
 
53
- ## Getting Started
49
+ ### Scenario 3: Wrong Tool for the Job ⚖️
54
50
 
55
- The LeanSpec mindset is simple:
51
+ You tried automated code generation tools—powerful but heavyweight. You tried vibe coding—fast but team gets misaligned. Where's the **lightweight spec methodology**?
56
52
 
57
- 1. **Start with why**: What problem are you solving?
58
- 2. **Capture the essentials**: What absolutely must be communicated?
59
- 3. **Stay lean**: If it doesn't add clarity, cut it
60
- 4. **Keep it living**: Update as you learn
53
+ **LeanSpec solves this:**
54
+ - Specs fit in AI context windows (<300 lines)
55
+ - Structured enough for AI agents to understand
56
+ - Flexible enough to grow with your team
57
+ - ✅ CLI & MCP tools to support the workflow
61
58
 
62
- For a practical example, see `templates/` for available project initialization templates. Each template contains:
63
- - Full project structure (specs/ directory, examples)
64
- - `AGENTS.md` - AI agent instructions and coding standards
65
- - Supporting files - CONTRIBUTING.md, checklists, or other guides
66
- - `config.json` - Template configuration
59
+ ---
67
60
 
68
- Initialize with `lspec init` to set up your project.
61
+ ## How LeanSpec is Different
69
62
 
70
- ## Quick Start
63
+ **From Automated Tools (like [Spec Kit](https://github.com/speckai/speckai)):**
64
+ - ❌ No multi-step workflows or slash commands
65
+ - ❌ No code generation or task execution
66
+ - ✅ Just specs for team alignment and AI context
71
67
 
72
- ```bash
73
- # Install globally
74
- pnpm install -g lean-spec
68
+ **From Lightweight Approaches (vibe coding):**
69
+ - Not "just chat with AI"
70
+ - Enough structure for AI agents to act on
71
+ - ✅ Team alignment through shared specs
72
+ - ✅ Maintainable documentation
75
73
 
76
- # Or use locally in your project
77
- pnpm add -D lean-spec
74
+ **From Change-Tracking Systems (like [OpenSpec](https://github.com/openspec-dev/openspec)):**
75
+ - No proposals or change folders
76
+ - ❌ No diff-based workflows
77
+ - ✅ Direct spec editing with version control
78
+ - ✅ Philosophy over process
78
79
 
79
- # Initialize LeanSpec in your project (interactive)
80
- lspec init
80
+ **LeanSpec = Just the specs.** Markdown files with structure. No ceremony, no overhead.
81
81
 
82
- # Create your first spec (creates specs/YYYYMMDD/NNN-name/ folder)
83
- lspec create my-feature
82
+ ---
84
83
 
85
- # List all specs
86
- lspec list
84
+ ## How It Works
87
85
 
88
- # Filter specs by status, tags, or priority
89
- lspec list --status=in-progress
90
- lspec list --tag=api --priority=high
86
+ ### A Real LeanSpec in Action
91
87
 
92
- # Update spec metadata
93
- lspec update specs/20251031/001-my-feature --status=complete
94
- lspec update specs/20251031/001-my-feature --priority=high --tags=api,backend
88
+ Here's an actual spec from this project (287 lines):
95
89
 
96
- # List available templates
97
- lspec templates
90
+ ```yaml
91
+ ---
92
+ status: in-progress
93
+ created: 2025-11-01
94
+ tags: [cli, dx]
95
+ priority: high
96
+ ---
98
97
 
99
- # Archive old specs
100
- lspec archive specs/20251031/001-my-feature
98
+ # Unified Dashboard
99
+
100
+ ## Overview
101
+ Combine `lean-spec board` and `lean-spec stats` into a single, comprehensive
102
+ project health view. Give users instant insight into project status,
103
+ bottlenecks, and team velocity.
104
+
105
+ ## Design
106
+ - Board view (Kanban columns)
107
+ - Key metrics (completion rate, avg spec size)
108
+ - Bottleneck detection (specs >400 lines, stale specs)
109
+ - Health score (0-100)
110
+
111
+ ## Plan
112
+ 1. Merge board + stats logic
113
+ 2. Add health scoring algorithm
114
+ 3. Implement bottleneck detection
115
+ 4. Add color-coded indicators
116
+
117
+ ## Success Criteria
118
+ - Shows full project state in <5 seconds
119
+ - Identifies bottlenecks automatically
120
+ - Used daily by team leads
101
121
  ```
102
122
 
103
- ### Initialize Your Project
123
+ **Notice:**
124
+ - ✅ Under 300 lines (fits in AI + human working memory)
125
+ - ✅ Intent is clear ("what" and "why")
126
+ - ✅ Implementation details are minimal (not a PRD)
127
+ - ✅ Both human and AI can understand
128
+ - ✅ Structured metadata (status, tags, priority)
104
129
 
105
- `lspec init` provides three paths:
130
+ ---
106
131
 
107
- 1. **Quick start** - Zero configuration, solo-dev defaults
108
- 2. **Choose template** - Pick from solo-dev, team, enterprise, or api-first
109
- 3. **Customize everything** - Full control (coming soon)
132
+ ## Built on First Principles
110
133
 
111
- Each template is a complete working model with:
112
- - Spec structure and examples
113
- - AGENTS.md for AI agent integration
114
- - Supporting files (CONTRIBUTING.md, checklists, etc.)
115
- - Project-specific config
134
+ LeanSpec isn't arbitrary rules—it's derived from fundamental constraints of working with AI.
116
135
 
117
- #### Spec Metadata with Frontmatter
136
+ ### 🧠 Context Economy
137
+ **Specs <300 lines → Fit in working memory**
118
138
 
119
- LeanSpec uses YAML frontmatter for structured metadata. Each template includes different field sets:
139
+ - **Physics**: AI performance degrades with longer context (quality drops beyond 50K tokens despite 200K limits)
140
+ - **Biology**: Human working memory is limited (7±2 items, 5-10 min attention)
141
+ - **Economics**: Large contexts cost more time and money
142
+ - **Reality**: Attention is the scarce resource, not storage
143
+ - **Result**: Keep specs under 300 lines, split complex features
144
+
145
+ ### ✂️ Signal-to-Noise Maximization
146
+ **Every word informs decisions → Or it's cut**
147
+
148
+ - Every sentence must answer: "What decision does this inform?"
149
+ - Cut obvious statements, inferable content, speculation
150
+ - Keep decision rationale, constraints, success criteria
151
+ - **Result**: Dense, actionable specs that respect reader attention
152
+
153
+ ### 📈 Progressive Disclosure
154
+ **Add structure only when you feel pain → Start simple**
155
+
156
+ - Solo dev: Just `status` + `created`
157
+ - Small team: Add `tags` + `priority`
158
+ - Enterprise: Add custom fields as needed
159
+ - **Result**: Structure adapts to team, not the other way around
160
+
161
+ ### 🎯 Intent Over Implementation
162
+ **Capture "why" → Let "how" emerge**
163
+
164
+ - Must have: Problem, intent, success criteria
165
+ - Should have: Design rationale, trade-offs
166
+ - Could have: Implementation details (these change)
167
+ - **Result**: Specs stay relevant as code evolves
168
+
169
+ ### 🌉 Bridge the Gap
170
+ **Both humans AND AI must understand → Clear structure + natural language**
171
+
172
+ - For humans: Overview, context, rationale
173
+ - For AI: Unambiguous requirements, structured metadata
174
+ - Both can parse and reason about specs
175
+ - **Result**: True human-AI collaboration
120
176
 
121
- **Minimal Template** (status, created only):
122
- ```yaml
123
177
  ---
124
- status: planned
125
- created: 2025-11-01
178
+
179
+ **These aren't preferences—they're constraints.** Physics (context windows), biology (working memory), and economics (token costs) dictate what works.
180
+
181
+ 📖 [Deep dive: First Principles Guide →](https://www.lean-spec.dev/docs/guide/understanding#the-five-first-principles)
182
+
126
183
  ---
127
184
 
128
- # My Feature
185
+ ## Features Designed for AI-First Development
129
186
 
130
- > **Status**: 📅 Planned · **Created**: 2025-11-01
187
+ ### 🤖 AI-Native Integration
188
+
189
+ Works seamlessly with popular AI coding tools:
190
+
191
+ - **GitHub Copilot** - AI pair programmer in VS Code & JetBrains IDEs
192
+ - **Claude Code** - Anthropic's AI coding assistant
193
+ - **OpenAI Codex** - OpenAI's coding agent (CLI, IDE, cloud)
194
+ - **Cursor / Windsurf** - AI-first code editor built on VS Code
195
+
196
+ MCP-native specs. Works with any tool that supports Model Context Protocol.
197
+
198
+ ### 📊 Workflow Visibility
199
+
200
+ Track progress without leaving the terminal:
201
+
202
+ ```bash
203
+ $ lean-spec board
204
+
205
+ 📋 Spec Kanban Board
206
+
207
+ 📅 Planned (11)
208
+ 🟠 High Priority
209
+ • readme-redesign-ai-first
210
+ • validate-output-lint-style
211
+
212
+ ⏳ In Progress (2)
213
+ • unified-dashboard
214
+ • mcp-error-handling
215
+
216
+ ✅ Complete (14)
217
+ • stats-dashboard-refactor
218
+ • git-backfill-timestamps
219
+ ...
131
220
  ```
132
221
 
133
- **Standard Template** (recommended - adds tags and priority):
134
- ```yaml
135
- ---
136
- status: in-progress
137
- created: 2025-11-01
138
- tags: [api, feature]
139
- priority: high
140
- ---
222
+ ```bash
223
+ $ lean-spec stats
141
224
 
142
- # My Feature
225
+ 📊 Project Stats
143
226
 
144
- > **Status**: 🔨 In progress · **Priority**: High · **Created**: 2025-11-01 · **Tags**: api, feature
227
+ Total: 27 specs | Active: 13 | Complete: 14
228
+ Completion: 52% | Avg size: 287 lines
145
229
  ```
146
230
 
147
- **Enterprise Template** (adds team fields and tracking):
231
+ Simple, focused CLI for spec status and team visibility.
232
+
233
+ ### 🎨 Progressive Structure
234
+
235
+ Start simple, add complexity only when you need it:
236
+
148
237
  ```yaml
149
- ---
150
- status: in-progress
151
- created: 2025-11-01
152
- tags: [security, compliance]
153
- priority: critical
154
- assignee: alice
155
- reviewer: bob
156
- issue: JIRA-1234
157
- epic: security-hardening
158
- ---
238
+ # Day 1: Solo dev
239
+ status: planned
159
240
 
160
- # My Feature
241
+ # Week 2: Small team
242
+ status: in-progress
243
+ tags: [api, feature]
244
+ priority: high
161
245
 
162
- > **Status**: 🔨 In progress · **Priority**: Critical · **Created**: 2025-11-01 · **Tags**: security, compliance
163
- > **Assignee**: alice · **Reviewer**: bob
246
+ # Month 3: Enterprise
247
+ assignee: alice
248
+ epic: PROJ-123
249
+ sprint: 2025-Q4-S3
164
250
  ```
165
251
 
166
- **Key Features**:
167
- - **Dual Format**: Machine-readable YAML frontmatter + human-readable visual badges
168
- - **Auto-sync**: Visual badges automatically update when metadata changes
169
- - **Status Emojis**: 📅 Planned, 🔨 In progress, ✅ Complete, 📦 Archived
252
+ Custom fields fully supported. Adapts to your workflow as you grow.
170
253
 
171
- **Philosophy**: Start minimal. Add fields only when you feel the pain of not having them.
254
+ ### Actually Maintainable
172
255
 
173
- **Valid Status Values**: `planned`, `in-progress`, `complete`, `archived`
174
- **Valid Priority Values**: `low`, `medium`, `high`, `critical`
256
+ **The problem:** Traditional specs get stale because updating them is too painful.
175
257
 
176
- Use `lspec list` with filters to find specs:
177
- - `lspec list --status=in-progress` - Show active work
178
- - `lspec list --priority=high` - Focus on critical items
179
- - `lspec list --tag=api` - Find related specs
180
- - Combine filters: `lspec list --status=planned --priority=high --tag=api`
258
+ **LeanSpec solution:**
259
+ - **Short specs** - Fits in AI context window for easy updates
260
+ - **CLI tools** - Quick viewing and editing from terminal
261
+ - **AI-friendly format** - Structured markdown AI agents can parse and update
262
+ - **Version control** - Git tracks changes, diffs show what evolved
181
263
 
182
- Update spec metadata without editing files:
183
- - `lspec update <path> --status=complete` - Mark as done (auto-adds completion date)
184
- - `lspec update <path> --priority=high --tags=api,backend` - Update multiple fields
264
+ **Result:** Specs light enough to actually keep in sync with code.
185
265
 
186
- #### Integrating with Existing Projects
266
+ ---
187
267
 
188
- If you already have `AGENTS.md`, `.cursorrules`, or other system prompts, `lspec init` will detect them and offer three options:
268
+ ## Quick Start (5 Minutes)
189
269
 
190
- 1. **Merge** - Appends LeanSpec guidance to your existing `AGENTS.md` (preserves your content)
191
- 2. **Backup** - Saves existing files as `.backup` and creates fresh ones
192
- 3. **Skip** - Only adds `.lspec` config and `specs/` directory, keeps your files untouched
270
+ ### 1. Install & Initialize
193
271
 
194
- This makes it easy to adopt LeanSpec incrementally without disrupting your existing AI agent setup.
272
+ ```bash
273
+ npm install -g lean-spec
274
+ cd your-project
275
+ lean-spec init
276
+ ```
195
277
 
196
- ### Available Templates
278
+ ### 2. Work with Your AI Tool
197
279
 
198
- - **solo-dev** - Quick setup for solo developers (default)
199
- - **team** - Small team collaboration with workflow guides
200
- - **enterprise** - Enterprise-grade with governance & compliance
201
- - **api-first** - API-driven development with endpoint specs
280
+ **In Cursor, Copilot, or any AI coding assistant:**
202
281
 
203
- Run `lspec templates` to see all available templates.
282
+ ```
283
+ 👤 You: "Create a spec for user authentication with OAuth2."
204
284
 
205
- See `AGENTS.md` for AI agent integration guidance.
285
+ 🤖 AI: [runs lean-spec create user-authentication]
286
+ "I've created specs/001-user-authentication/README.md.
287
+ Here's the spec..."
206
288
 
207
- ## Development
289
+ 👤 You: "Now implement the OAuth2 flow based on this spec."
208
290
 
209
- ### Testing
291
+ 🤖 AI: [reads spec, implements code]
292
+ "I've implemented the OAuth2 provider in src/auth/oauth.ts..."
293
+ ```
294
+
295
+ ### 3. Track Progress
210
296
 
211
297
  ```bash
212
- pnpm test # Run tests in watch mode
213
- pnpm test:run # Run tests once (CI mode)
298
+ # Check project status
299
+ lean-spec board
300
+
301
+ # View spec with AI-friendly output
302
+ lean-spec view user-authentication --json
303
+
304
+ # Update status as you progress
305
+ lean-spec update user-authentication --status in-progress
214
306
  ```
215
307
 
216
- See [docs/testing.md](docs/testing.md) for comprehensive testing documentation.
308
+ **The workflow:**
309
+ 1. ✅ Ask AI to create spec (it uses `lean-spec create`)
310
+ 2. ✅ AI reads spec and implements (spec fits in context)
311
+ 3. ✅ Track with `lean-spec board` / `lean-spec stats`
312
+ 4. ✅ Update status as work progresses
217
313
 
218
- ### Build
314
+ **Why this works:**
315
+ - Specs <300 lines → Fit in AI context window
316
+ - Structured format → AI can parse and act on
317
+ - CLI tools → AI knows how to use them
318
+ - You drive, AI executes
219
319
 
220
- This project is built with TypeScript and pnpm:
320
+ **Next steps:**
321
+ - 📘 [Full CLI Reference](https://www.lean-spec.dev/docs/reference/cli) - All commands
322
+ - 🎨 [Choose a Template](https://www.lean-spec.dev/docs/guide/templates) - Minimal, standard, or enterprise
323
+ - 🤖 [AI Agent Setup](AGENTS.md) - Configure AI coding tools
221
324
 
222
- ```bash
223
- # Install dependencies
224
- pnpm install
325
+ ---
225
326
 
226
- # Build CLI
227
- pnpm build
327
+ ## Choose the Right Tool
228
328
 
229
- # Watch mode
230
- pnpm dev
329
+ Not every project needs the same level of structure. Here's when to use what:
231
330
 
232
- # Type check
233
- pnpm typecheck
234
- ```
331
+ | Use This | When You Need |
332
+ |----------|---------------|
333
+ | **[Spec Kit](https://github.com/speckai/speckai)** | Automated code generation from specs • Multi-step workflows |
334
+ | **[OpenSpec](https://github.com/openspec-dev/openspec)** | Change proposals and delta tracking • Brownfield modifications |
335
+ | **LeanSpec** | AI-native specs that fit in context • Human + AI collaboration • Solo to enterprise |
336
+ | **Vibe Coding** | Rapid prototyping • Solo experiments • Trivial features |
235
337
 
236
- **Note**: LeanSpec methodology is language/framework-agnostic. This TS implementation is for the CLI tool only.
338
+ **Why LeanSpec?** The only SDD methodology designed from first principles for AI context windows. Specs that both humans and AI can actually use.
237
339
 
238
- ## When to Use LeanSpec
340
+ ---
239
341
 
240
- **Perfect for:**
241
- - New features or components
242
- - API designs
243
- - Architecture decisions that need shared understanding
244
- - Quick alignment on work direction
245
- - Providing context to AI coding agents for implementation tasks
246
- - **Establishing an adaptive SOP for AI-powered development teams**
247
- - **Integrating with system prompts and agent instructions**
342
+ ## Who Uses LeanSpec
248
343
 
249
- **Not ideal for:**
250
- - Detailed API reference documentation (use code comments + auto-generated docs)
251
- - Step-by-step user manuals (use dedicated user documentation)
252
- - Compliance requirements that mandate specific formats
344
+ ### AI-First Development Teams
345
+ Give agents clear context without context window overload. Works with Cursor, Copilot, Aider, Claude.
253
346
 
254
- ## LeanSpec for AI Coding Agents
347
+ ### Scaling Startups
348
+ One methodology from solo dev → team → enterprise. Add structure progressively as you grow.
255
349
 
256
- In the era of AI-assisted development, LeanSpec serves as both a methodology and an adaptive workflow for AI-powered development teams. It's not just about writing specs—it's about establishing a living process that integrates with AI agent systems.
350
+ ### Teams Seeking Balance
351
+ Need structure for alignment and AI context, but heavyweight processes slow you down.
257
352
 
258
- ### Core Benefits for AI Teams
353
+ ### Developers Building AI Agents
354
+ MCP-native specs. Structured input format agents can parse reliably.
259
355
 
260
- - **Clear Context**: Starting with "why" gives AI agents the purpose behind the work
261
- - **Concrete Scenarios**: Specific examples help AI understand expected behavior
262
- - **Testable Criteria**: Clear targets guide AI implementation
263
- - **Boundaries**: Explicit non-goals help AI avoid scope creep
264
- - **Adaptable Structure**: Whatever format you choose, consistency helps AI parse effectively
356
+ ---
265
357
 
266
- AI coding agents work best with clear, concise specifications that balance context with brevity—exactly what the LeanSpec mindset promotes.
358
+ ## We Practice What We Preach
267
359
 
268
- ### Implementing LeanSpec as an AI Workflow
360
+ **LeanSpec is built using LeanSpec.** Every feature, refactor, and design decision has a spec. All specs follow the first principles—under 300 lines, AI-readable, actively maintained.
269
361
 
270
- LeanSpec becomes truly powerful when integrated as a **Standard Operating Procedure (SOP)** for your AI-powered development team:
362
+ **Real velocity from zero to official launch:**
363
+ - **6 days** from first commit to production
364
+ - Full-featured CLI, MCP server, documentation site
365
+ - 54 specs written and implemented—all with AI agents
366
+ - Derived first principles from practicing LeanSpec
271
367
 
272
- #### System Prompts and Context Engineering
368
+ We dogfood our own methodology. Specs that fit in AI context enable the velocity we promise.
273
369
 
274
- To effectively use LeanSpec with AI agents, consider implementing:
370
+ [Browse our specs](https://github.com/codervisor/lean-spec/tree/main/specs)
275
371
 
276
- 1. **System-Level Instructions** (e.g., `AGENTS.md`)
277
- - Define how AI agents should interpret and apply LeanSpec principles
278
- - Establish coding standards and conventions
279
- - Specify how to handle ambiguity or missing information
280
- - Set expectations for testing, documentation, and code quality
372
+ ---
281
373
 
282
- 2. **Context Engineering**
283
- - Structure your repository to make LeanSpec documents discoverable
284
- - Use consistent naming conventions (e.g., `LEANSPEC_*.md`)
285
- - Place specs near the code they describe
286
- - Link related specs together for complex features
374
+ ## When to Use (and Skip) Specs
287
375
 
288
- 3. **Adaptive Workflow Integration**
289
- - Start each work item with a LeanSpec document
290
- - Have AI agents reference the spec during implementation
291
- - Update specs as understanding evolves (living documentation)
292
- - Use specs as the source of truth for feature discussions
376
+ | Use LeanSpec When: | Skip It When: |
377
+ |---------------------|---------------|
378
+ | Features span multiple files/components | Trivial bug fixes |
379
+ | Architecture decisions need alignment | ❌ Self-explanatory refactors |
380
+ | Guiding AI agents on complex features | Pure API reference (use code comments) |
381
+ | ✅ Design rationale should be documented | ❌ Quick experiments |
382
+ | ✅ Team needs to coordinate work | ❌ Changes are obvious |
293
383
 
294
- #### Example: AGENTS.md for LeanSpec Workflow
384
+ **Philosophy:** Write specs when they add clarity. Skip them when they don't.
295
385
 
296
- Create an `AGENTS.md` file in your repository to guide AI agents. See this repo's `AGENTS.md` for a working example.
386
+ ---
297
387
 
298
- ## Philosophy
388
+ ## Learn More
299
389
 
300
- > "The best spec is the one that gets read, understood, and acted upon—by humans and AI alike."
390
+ ### 📚 Documentation
391
+ - [Getting Started Guide](https://www.lean-spec.dev/docs/guide/getting-started) - Complete setup walkthrough
392
+ - [First Principles](https://www.lean-spec.dev/docs/guide/understanding#the-five-first-principles) - The philosophy behind LeanSpec
393
+ - [CLI Reference](https://www.lean-spec.dev/docs/reference/cli) - All commands with examples
301
394
 
302
- LeanSpec is a **mindset, methodology, and adaptive workflow**—not just a format. It embraces agile thinking: start small, iterate based on feedback, and focus on outcomes over outputs. A one-page spec that everyone (including AI coding agents) understands beats a fifty-page document that nobody reads.
395
+ ### 🛠️ Integrations
396
+ - [AI Agent Configuration](AGENTS.md) - Cursor, Copilot, Aider setup
397
+ - [MCP Server](docs/MCP-SERVER.md) - Claude Desktop integration
398
+ - [VS Code Extension](https://www.lean-spec.dev/docs/roadmap#vs-code-extension) - Enhanced editor support (planned)
303
399
 
304
- The methodology is about principles over process—adapt it to your team, your tools, and your context. When working with AI-powered development teams, LeanSpec becomes an SOP that integrates with system prompts, context engineering, and agent instructions to create a cohesive, intelligent workflow.
400
+ ### 🎓 Guides
401
+ - [Custom Fields](https://www.lean-spec.dev/docs/guide/custom-fields) - Adapt to your workflow
402
+ - [Templates](https://www.lean-spec.dev/docs/guide/templates) - Choose the right structure
403
+ - [Frontmatter](https://www.lean-spec.dev/docs/guide/frontmatter) - Metadata and organization
305
404
 
306
- ## Contributing
405
+ ### 🤝 Community
406
+ - [GitHub Issues](https://github.com/codervisor/lean-spec/issues) - Report bugs or request features
407
+ - [Contributing Guide](CONTRIBUTING.md) - Join the project
408
+ - [AI-Executable Patterns](https://www.lean-spec.dev/docs/guide/ai-executable-patterns) - Real-world usage patterns
307
409
 
308
- Have ideas for improving LeanSpec? Open an issue or submit a pull request. Keep it lean! 🚀
410
+ ---
309
411
 
310
412
  ## License
311
413
 
312
- MIT License - See [LICENSE](LICENSE) for details.## Documentation
414
+ MIT - See [LICENSE](LICENSE)
313
415
 
314
- - **[Getting Started](README.md)** - You are here!
315
- - **[AI Agent Integration](AGENTS.md)** - Setup for AI-powered development
316
- - **[Contributing](CONTRIBUTING.md)** - How to contribute to LeanSpec
317
- - **[Developer Guide](docs/)** - Testing and technical docs
318
-
319
- ## Contributing
416
+ ---
320
417
 
321
- Have ideas for improving LeanSpec? See [CONTRIBUTING.md](CONTRIBUTING.md) for details. Keep it lean! 🚀
418
+ <p align="center">
419
+ <strong>Spec-Driven Development without the overhead.</strong><br>
420
+ Keep your specs short. Keep them clear. Keep them useful.
421
+ </p>