specweave 0.1.6 → 0.1.8

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.
@@ -1,525 +1,393 @@
1
1
  ---
2
2
  name: specweave-detector
3
- description: MANDATORY entry point for SpecWeave framework. Activates when .specweave/ exists OR when user mentions "SpecWeave", "increment", "feature", "/create-increment". All 10 agents and 35+ skills are PRE-INSTALLED during init - no auto-installation needed. Routes requests to increment-planner, skill-router, or appropriate agents. Keywords SpecWeave, spec-driven, increment, feature, spec, plan, task, create feature, build feature, new increment.
4
- proactive: true
3
+ description: Documentation skill that explains SpecWeave slash commands. SpecWeave uses EXPLICIT slash commands only - no auto-activation! Use /pi (Plan Product Increment) or /create-increment to start. Other commands /si (start), /at (add tasks), /vi (validate), /done (close), /ls (list). All commands listed in .claude/commands/. Keywords slash commands, /pi, /create-increment, /si, /vi, /done, /ls, /init, specweave commands.
5
4
  ---
6
5
 
7
- # SpecWeave Detector & Entry Point
6
+ # SpecWeave - Slash Command Reference
8
7
 
9
- This skill is the **MANDATORY entry point** for all SpecWeave operations. When Claude Code detects a `.specweave/config.yaml` file OR user mentions SpecWeave-related keywords, this skill MUST activate and orchestrate the framework.
8
+ **CRITICAL**: SpecWeave uses **EXPLICIT SLASH COMMANDS ONLY** - no auto-activation, no proactive detection, no intent-based routing.
10
9
 
11
- ## Purpose
10
+ ## How SpecWeave Works
12
11
 
13
- Act as the "factory of agents" that:
14
- 1. **Detects SpecWeave projects automatically** (when .specweave/ exists)
15
- 2. **Parses user requests** and determines intent
16
- 3. **Routes to appropriate skills/agents** (all pre-installed!)
17
- 4. **Orchestrates nested skill calls** for complex operations
18
- 5. **Manages context loading** via context-loader skill
12
+ SpecWeave follows the **spec-kit approach**: You MUST use slash commands explicitly.
19
13
 
20
- ## Detection Logic (0.1.5 - Pre-Installation)
14
+ **To use SpecWeave**: Type a slash command (e.g., `/pi "Feature description"`)
21
15
 
22
- ```javascript
23
- // Pseudo-code for detection
24
- if (fileExists('.specweave/config.yaml')) {
25
- // ACTIVATE SPECWEAVE MODE
26
- activateSpecWeaveMode();
27
- loadConfiguration();
16
+ ## Available Slash Commands
28
17
 
29
- // ALL COMPONENTS ALREADY INSTALLED!
30
- // ✅ 10 agents in .claude/agents/
31
- // ✅ 35+ skills in .claude/skills/
32
- // ✅ 10 commands in .claude/commands/
18
+ ### Quick Reference Table
33
19
 
34
- // NO AUTO-INSTALLATION NEEDED (pre-installed in 0.1.5)
20
+ | Alias | Full Command | Purpose | Example |
21
+ |-------|--------------|---------|---------|
22
+ | `/init` | `/create-project` | Initialize SpecWeave project | `/init my-saas` |
23
+ | `/pi` | `/create-increment` | **Plan Product Increment** | `/pi "User auth"` |
24
+ | `/ci` | `/create-increment` | Alternative to `/pi` | `/ci "Payment"` |
25
+ | `/si` | `/start-increment` | Start working on increment | `/si 0001` |
26
+ | `/at` | `/add-tasks` | Add tasks to increment | `/at 0001 "Add tests"` |
27
+ | `/vi` | `/validate-increment` | Validate increment quality | `/vi 0001 --quality` |
28
+ | `/done` | `/close-increment` | Close increment | `/done 0001` |
29
+ | `/ls` | `/list-increments` | List all increments | `/ls` |
35
30
 
36
- parseUserIntent();
37
- routeToSkills();
38
- }
39
- ```
31
+ ### Command Details
40
32
 
41
- ## Pre-Installed Components (0.1.5+)
33
+ #### `/pi` or `/create-increment` - Plan Product Increment
42
34
 
43
- **IMPORTANT**: SpecWeave 0.1.5+ uses **pre-installation** instead of auto-installation.
35
+ **Most important command!** Creates a new increment with specifications.
44
36
 
45
- After `specweave init`, ALL components are ready:
46
- - **10 agents**: PM, Architect, Security, QA Lead, DevOps, Tech Lead, SRE, Docs Writer, Performance, Diagrams Architect
47
- - **35+ skills**: Technology stacks, integrations, utilities
48
- - ✅ **10 slash commands**: /create-increment, /validate-increment, etc.
37
+ ```bash
38
+ # Short form (recommended)
39
+ /pi "User authentication with JWT and RBAC"
49
40
 
50
- **No installation wait time** - components activate immediately!
41
+ # Full form
42
+ /create-increment "User authentication with JWT and RBAC"
43
+ ```
51
44
 
52
- ### How It Works (0.1.5+)
45
+ **What happens**:
46
+ 1. Creates `.specweave/increments/000X-feature-name/` folder
47
+ 2. PM agent generates `spec.md` (requirements, user stories)
48
+ 3. Architect agent generates `plan.md` (architecture, design)
49
+ 4. QA Lead generates `tests.md` (test strategy)
50
+ 5. Creates `tasks.md` (implementation checklist)
53
51
 
54
- 1. **User makes a request** (e.g., "Create Next.js authentication")
55
- 2. **SpecWeave detector activates** (all components already installed!)
56
- 3. **Analyze user intent**:
57
- - "Create" → Route to increment-planner skill
58
- - "Next.js" → Will use nextjs skill (already installed)
59
- - "authentication" → Will involve security agent (already installed)
60
- 4. **Route to increment-planner**:
61
- - Creates increment folder
62
- - Generates spec.md, plan.md, tasks.md, tests.md
63
- - Coordinates with PM agent → Architect agent
64
- 5. **Implementation ready** - All skills/agents available immediately
52
+ #### `/si` or `/start-increment` - Start Working
65
53
 
66
- ### Example User Experience (0.1.5+)
54
+ Marks an increment as "in-progress".
67
55
 
68
- **Example 1: Next.js Authentication**
56
+ ```bash
57
+ /si 0001
69
58
  ```
70
- User: "Create Next.js authentication with OAuth"
71
-
72
- 🔷 SpecWeave Active
73
59
 
74
- 🚀 Creating increment 0001-nextjs-authentication...
75
- 📝 Using nextjs skill (already installed!)
76
- 🤖 PM agent creating requirements...
77
- 🏗️ Architect agent designing system...
60
+ #### `/at` or `/add-tasks` - Add Tasks
78
61
 
79
- Increment created: .specweave/increments/0001-nextjs-authentication/
80
- ✅ Files: spec.md, plan.md, tasks.md, tests.md
81
- ```
62
+ Add additional tasks to an increment.
82
63
 
83
- **Example 2: Real Estate Platform**
64
+ ```bash
65
+ /at 0001 "Add password reset functionality"
66
+ /at 0001 "Add email verification"
84
67
  ```
85
- User: "Build a real estate listing platform with Node.js/Express"
86
68
 
87
- 🔷 SpecWeave Active
69
+ #### `/vi` or `/validate-increment` - Validate Quality
88
70
 
89
- 🚀 Creating increment 0001-real-estate-platform...
90
- 📝 Using nodejs-backend skill (already installed!)
91
- 🤖 PM agent creating requirements...
92
- 🏗️ Architect agent designing system...
93
- 🛡️ Security agent reviewing authentication...
71
+ Run validation checks on an increment.
94
72
 
95
- ✅ Increment created with complete specifications
96
- ```
73
+ ```bash
74
+ # Rule-based validation only
75
+ /vi 0001
97
76
 
98
- **Example 3: Python FastAPI**
77
+ # With AI quality assessment
78
+ /vi 0001 --quality
99
79
  ```
100
- User: "Create FastAPI backend with PostgreSQL"
101
80
 
102
- 🔷 SpecWeave Active
81
+ #### `/done` or `/close-increment` - Close Increment
103
82
 
104
- 🚀 Creating increment 0001-fastapi-backend...
105
- 📝 Using python-backend skill (already installed!)
106
- 🤖 PM agent creating requirements...
107
- 🏗️ Architect agent designing system...
83
+ Mark increment as completed.
108
84
 
109
- ✅ Increment created: .specweave/increments/0001-fastapi-backend/
85
+ ```bash
86
+ /done 0001
110
87
  ```
111
88
 
112
- ### Benefits of Pre-Installation (0.1.5+)
89
+ #### `/ls` or `/list-increments` - List All
113
90
 
114
- - ✅ **Zero wait time** - all components ready immediately
115
- - ✅ **No installation confusion** - everything works out of the box
116
- - ✅ **Predictable** - same components every time
117
- - ✅ **Simple mental model** - init once, use forever
118
- - ✅ **Offline-friendly** - all components local after init
91
+ Show all increments with status.
119
92
 
120
- ## Auto-Activation
93
+ ```bash
94
+ /ls
95
+ ```
121
96
 
122
- **Key Feature**: This skill uses Claude Code's `proactive: true` feature to load automatically.
97
+ ### Why Slash Commands?
123
98
 
124
- When a user opens a project with `.specweave/` directory:
125
- 1. Claude Code detects the directory
126
- 2. This skill loads proactively (no user action needed)
127
- 3. SpecWeave mode activates silently
128
- 4. User requests are automatically routed to appropriate skills
99
+ **Problem**: Auto-activation doesn't work reliably in Claude Code.
129
100
 
130
- **User Experience**:
131
- ```
132
- # User doesn't know SpecWeave is active
133
- User: "I want to add payment processing"
134
-
135
- # Behind the scenes:
136
- # 1. specweave-detector intercepts request
137
- # 2. Parses request: "add feature" + "payment processing"
138
- # 3. Routes to: increment-planner skill
139
- # 4. increment-planner creates Increment 0002
140
- # 5. Returns result to user
141
-
142
- # User sees:
143
- ✅ Increment created: .specweave/increments/0002-payment-processing/
144
- ```
101
+ **Solution**: Explicit slash commands (like spec-kit) ensure SpecWeave ALWAYS activates when you want it.
145
102
 
146
- ## Request Parsing & Routing
103
+ **Benefits**:
104
+ - ✅ **100% reliable** - Always works, no guessing
105
+ - ✅ **Clear intent** - You know exactly when SpecWeave is active
106
+ - ✅ **Fast** - Short aliases like `/pi` save keystrokes
107
+ - ✅ **Memorable** - Domain-specific names (PI = Product Increment from Agile/SAFe)
147
108
 
148
- ### Simple Request (Single Skill)
109
+ ## Typical Workflow
149
110
 
150
- | User Says | Request Type | Route To |
151
- |-----------|--------|----------|
152
- | "Plan a feature for..." | feature_planning | `increment-planner` |
153
- | "Load context for..." | context_loading | `context-loader` |
154
- | "Document this code..." | documentation | `docs-updater` |
155
- | "Create a spec for..." | specification | `spec-author` |
156
- | "Design architecture for..." | architecture | `architect` |
157
- | "Implement feature 001" | development | `developer` |
158
- | "Test this feature" | testing | `qa-engineer` |
111
+ ### 1. Initialize Project
159
112
 
160
- ### Complex Request (Multiple Skills)
113
+ ```bash
114
+ npx specweave init my-saas
115
+ cd my-saas
116
+ ```
161
117
 
162
- **Example**: "Create and implement a new payment feature"
118
+ **Creates**:
119
+ - `.specweave/` - Framework configuration
120
+ - `.claude/agents/` - 10 pre-installed agents
121
+ - `.claude/skills/` - 35+ pre-installed skills
122
+ - `.claude/commands/` - 10 slash commands
123
+ - `CLAUDE.md` - Development guide
163
124
 
164
- **Request Breakdown**:
165
- 1. Create increment → `increment-planner`
166
- 2. Load context → `context-loader`
167
- 3. Implement code → Coordinate with appropriate agents/skills
168
- 4. Generate tests → Use QA Lead agent
169
- 5. Update docs → Use Docs Writer agent
125
+ ### 2. Plan Your First Increment
170
126
 
171
- **Execution Flow**:
172
- ```
173
- User: "Create and implement a new payment feature"
174
-
175
- specweave-detector parses: CREATE + IMPLEMENT + FEATURE + PAYMENT
176
-
177
- Orchestrate nested skills:
178
-
179
- increment-planner: Create .specweave/increments/0003-payment-processing/
180
-
181
- context-loader: Load .specweave/docs/internal/strategy/payments/**
182
-
183
- Implementation: Use nodejs-backend skill + security agent
184
-
185
- Testing: Use QA Lead agent (generate E2E tests)
186
-
187
- Documentation: Update .specweave/docs/internal/architecture/
188
-
189
- Result: "✅ Increment 0003 implemented and documented"
127
+ ```bash
128
+ # Use short alias (recommended)
129
+ /pi "User authentication with JWT and RBAC"
190
130
  ```
191
131
 
192
- ### Ambiguous Request
193
-
194
- When request is unclear:
132
+ **Creates**:
195
133
  ```
196
- User: "Help me with the authentication"
197
-
198
- specweave-detector: Ambiguous (help = ?)
199
-
200
- Route to skill-router for clarification
201
-
202
- skill-router asks:
203
- "What would you like to do with authentication?
204
- 1. Create a specification
205
- 2. Plan implementation
206
- 3. Implement code
207
- 4. Document existing code"
134
+ .specweave/increments/0001-user-authentication/
135
+ ├── spec.md # Requirements (PM agent)
136
+ ├── plan.md # Architecture (Architect agent)
137
+ ├── tasks.md # Implementation steps
138
+ ├── tests.md # Test strategy (QA Lead agent)
139
+ └── context-manifest.yaml # Context loading config
208
140
  ```
209
141
 
210
- ## Context Management
142
+ ### 3. Validate & Start
211
143
 
212
- ### Automatic Context Loading
144
+ ```bash
145
+ # Validate quality
146
+ /vi 0001 --quality
213
147
 
214
- When a user is working on an increment:
148
+ # Start working
149
+ /si 0001
150
+ ```
215
151
 
216
- ```javascript
217
- // Detect active increment
218
- const activeIncrement = detectActiveIncrement(); // .specweave/increments/####-xxx/
152
+ ### 4. Add More Tasks (As Needed)
219
153
 
220
- if (activeIncrement) {
221
- const manifest = loadManifest(`${activeIncrement}/context-manifest.yaml`);
222
- const context = await contextLoader.load(manifest);
223
- // Context now available for all skills
224
- }
154
+ ```bash
155
+ # As you discover new work
156
+ /at 0001 "Add password reset flow"
157
+ /at 0001 "Add 2FA support"
225
158
  ```
226
159
 
227
- ### Context Prioritization
160
+ ### 5. Close When Done
228
161
 
229
- When multiple contexts are relevant:
162
+ ```bash
163
+ /done 0001
164
+ ```
230
165
 
231
- 1. **Active increment** (in `.specweave/increments/####-xxx/`)
232
- 2. **Current branch** (git branch name features/###-xxx)
233
- 3. **User-specified** context
234
- 4. **Global** context (.specweave/docs/internal/strategy/overview.md, principles.md)
166
+ ## Example Sessions
235
167
 
236
- ## Skill Orchestration
168
+ ### Example 1: Real Estate Platform
237
169
 
238
- ### Parallel Execution
170
+ ```bash
171
+ # Initialize
172
+ $ npx specweave init real-estate-app
173
+ $ cd real-estate-app
239
174
 
240
- Some skills can run in parallel:
175
+ # Plan increment with slash command
176
+ $ /pi "Real estate listing platform with search, images, admin dashboard. Node.js/Express, PostgreSQL, JWT auth"
241
177
 
242
- ```
243
- User: "Create tests and update documentation"
244
-
245
- Parallel execution:
246
- ├─ qa-engineer: Generate tests
247
- └─ docs-updater: Update docs
248
-
249
- Wait for both to complete
250
-
251
- Result: "✅ Tests generated (15 test cases) and docs updated"
252
- ```
178
+ 🔷 SpecWeave Active (/create-increment)
253
179
 
254
- ### Sequential Execution
180
+ 📝 Using increment-planner skill...
181
+ 🤖 PM agent creating requirements...
182
+ 🏗️ Architect agent designing system...
183
+ 🛡️ Security agent reviewing authentication...
255
184
 
256
- Some skills must run sequentially:
185
+ Increment created: .specweave/increments/0001-real-estate-platform/
186
+ - spec.md (Requirements & user stories)
187
+ - plan.md (Architecture & design)
188
+ - tasks.md (Implementation checklist)
189
+ - tests.md (Test strategy)
257
190
 
258
- ```
259
- User: "Plan and implement feature 001"
260
-
261
- Sequential execution:
262
- 1. increment-planner: Create plan (MUST complete first)
263
- 2. context-loader: Load relevant specs (uses plan output)
264
- 3. developer: Implement (uses loaded context)
265
-
266
- Each step waits for previous to complete
267
- ```
191
+ # Validate
192
+ $ /vi 0001 --quality
193
+ ✅ Quality score: 87/100 (GOOD)
268
194
 
269
- ### Error Handling
195
+ # Start working
196
+ $ /si 0001
197
+ ✅ Increment 0001 status → in-progress
270
198
 
271
- If a skill fails:
199
+ # Implement (regular Claude conversation, no slash commands needed here)
200
+ User: "Let's implement the backend API for listings"
201
+ Claude: [implements based on plan.md and tasks.md]
272
202
 
273
- ```
274
- User: "Implement increment 0005"
275
-
276
- specweave-detector: Route to implementation
277
-
278
- ERROR: Increment 0005 not found
279
-
280
- specweave-detector: Catch error, suggest:
281
- "Increment 0005 doesn't exist. Would you like to:
282
- 1. Create it first (/create-increment)
283
- 2. List existing increments (/list-increments)
284
- 3. Implement a different increment"
203
+ # Close when done
204
+ $ /done 0001
205
+ ✅ Increment 0001 closed successfully
285
206
  ```
286
207
 
287
- ## Configuration Awareness
208
+ ### Example 2: Next.js Authentication
288
209
 
289
- Load and respect `.specweave/config.yaml`:
290
-
291
- ```yaml
292
- # .specweave/config.yaml
293
- principles:
294
- auto_role_routing: true # Enable auto-routing
295
- context_precision: true # Use context manifests
296
- routing_accuracy_target: 0.90 # Accuracy threshold
210
+ ```bash
211
+ # Short alias for speed
212
+ $ /pi "Next.js authentication with JWT, OAuth, RBAC"
297
213
 
298
- # All components pre-installed in 0.1.5+ (no auto_install setting needed)
299
- # Agents and skills are in .claude/ folder, ready to use
214
+ 🔷 SpecWeave Active (/create-increment)
300
215
 
301
- integrations:
302
- github:
303
- enabled: true
304
- sync_issues: true # Sync increments GitHub issues
305
- jira:
306
- enabled: false
307
- ado:
308
- enabled: false
309
- ```
216
+ 📝 Using increment-planner + nextjs skill...
217
+ 🤖 PM agent creating requirements...
218
+ 🏗️ Architect agent designing Next.js App Router flow...
219
+ 🔒 Security agent reviewing auth patterns...
310
220
 
311
- When `auto_role_routing: false`, this skill still activates but prompts user for explicit skill selection.
221
+ Increment 0002-nextjs-authentication created
312
222
 
313
- ## SpecWeave Mode Indicator
223
+ # Add forgotten tasks later
224
+ $ /at 0002 "Add password reset flow"
225
+ $ /at 0002 "Add 2FA with TOTP"
226
+ ✅ Added 2 tasks to increment 0002
314
227
 
315
- When SpecWeave is active, include a subtle indicator in responses:
228
+ # List all increments
229
+ $ /ls
316
230
 
231
+ Increments:
232
+ 0001 real-estate-platform [completed] ✅
233
+ 0002 nextjs-authentication [in-progress] 🚧
317
234
  ```
318
- 🔷 SpecWeave Active
319
235
 
320
- [Normal response here]
321
- ```
236
+ ### Example 3: Multi-Increment Project
322
237
 
323
- This helps users know SpecWeave framework is orchestrating their request.
238
+ ```bash
239
+ # Create multiple increments
240
+ $ /pi "User authentication"
241
+ ✅ Increment 0001 created
324
242
 
325
- ## Skill Discovery
243
+ $ /pi "Real estate listings with search"
244
+ ✅ Increment 0002 created
326
245
 
327
- List available skills (all pre-installed):
246
+ $ /pi "Admin dashboard"
247
+ ✅ Increment 0003 created
328
248
 
329
- ```bash
330
- User: "What can SpecWeave do?"
331
-
332
- specweave-detector: List all pre-installed skills
333
-
334
- SpecWeave Framework Skills (35+, all ready):
335
- ✅ increment-planner - Plan implementation features
336
- ✅ context-loader - Selective specification loading
337
- ✅ skill-router - Route ambiguous intents
338
- ✅ nodejs-backend - Node.js/Express/NestJS backend
339
- ✅ python-backend - Python/FastAPI/Django backend
340
- ✅ nextjs - Next.js App Router specialist
341
- ✅ frontend - React/Vue/Angular frontend
342
- ✅ diagrams-generator - C4 Model diagrams
343
- ✅ github-sync - GitHub integration
344
- ✅ jira-sync - JIRA integration
345
- ... and 25+ more!
346
-
347
- SpecWeave Agents (10, all ready):
348
- ✅ pm - Product Manager (requirements, user stories)
349
- ✅ architect - System Architect (design, ADRs)
350
- ✅ security - Security Engineer (threat modeling)
351
- ✅ qa-lead - QA Lead (test strategy)
352
- ✅ devops - DevOps Engineer (deployment)
353
- ... and 5+ more!
354
-
355
- Custom Skills (user-created):
356
- ✅ newrelic-monitor - New Relic integration
357
- ✅ cqrs-implementer - CQRS pattern implementation
358
- ```
249
+ # Work on them in order
250
+ $ /si 0001
251
+ $ [implement authentication]
252
+ $ /done 0001
359
253
 
360
- ## Nested Skill Example
254
+ $ /si 0002
255
+ $ [implement listings]
256
+ $ /done 0002
361
257
 
362
- **User Request**: "I want to build a real-time chat feature"
258
+ $ /si 0003
259
+ $ [implement admin]
260
+ $ /done 0003
363
261
 
364
- **SpecWeave Detector Processing**:
262
+ # Review what's been done
263
+ $ /ls
365
264
 
265
+ Increments:
266
+ 0001 user-authentication [completed] ✅
267
+ 0002 real-estate-listings [completed] ✅
268
+ 0003 admin-dashboard [completed] ✅
366
269
  ```
367
- 1. Parse Request: BUILD + FEATURE + REAL_TIME_CHAT
368
- Request: feature_creation + complex_feature
369
-
370
- 2. Route to increment-planner:
371
- Input: "Real-time chat feature"
372
- Output: .specweave/increments/0004-realtime-chat/
373
- - spec.md (5 user stories)
374
- - plan.md (WebSocket architecture)
375
- - tasks.md (78 tasks)
376
- - tests.md (20 test cases)
377
-
378
- 3. Detect next request: User likely wants to implement
379
- Prompt: "Increment 0004 created. Would you like to:
380
- 1. Review the plan
381
- 2. Start implementation
382
- 3. Load context for this increment"
383
-
384
- 4. User chooses 2 (Start implementation)
385
-
386
- 5. Route to context-loader:
387
- Load: .specweave/increments/0004-realtime-chat/context-manifest.yaml
388
- Output: Loaded specs/modules/realtime/**, architecture/websockets.md
389
-
390
- 6. Route to implementation:
391
- Input: .specweave/increments/0004-realtime-chat/tasks.md
392
- Context: Loaded specs
393
- Output: Implement Phase 1 (Setup WebSocket server)
394
-
395
- 7. After implementation, coordinate testing:
396
- Input: .specweave/increments/0004-realtime-chat/tests.md
397
- Output: Generate test suite (E2E with Playwright)
398
-
399
- 8. Finally, update documentation:
400
- Update: .specweave/docs/internal/architecture/api.md (add WebSocket endpoints)
401
-
402
- 9. Return to user:
403
- ✅ Increment 0004 implemented, tested, and documented
404
- ```
405
-
406
- ## Best Practices
407
270
 
408
- ### 1. Transparent Routing
271
+ ## Pre-Installed Components
409
272
 
410
- Always inform user which skill is being activated:
273
+ After `specweave init`, ALL components are in `.claude/`:
411
274
 
412
- ```
413
- 🔷 SpecWeave Active
275
+ **10 Agents** (all ready to use):
276
+ - `pm` - Product Manager (requirements, user stories)
277
+ - `architect` - System Architect (design, ADRs)
278
+ - `security` - Security Engineer (threat modeling)
279
+ - `qa-lead` - QA Lead (test strategy)
280
+ - `devops` - DevOps Engineer (deployment)
281
+ - `tech-lead` - Technical Lead (code review)
282
+ - `sre` - SRE (incident response)
283
+ - `docs-writer` - Documentation writer
284
+ - `performance` - Performance optimization
285
+ - `diagrams-architect` - Diagram generation (C4 Model)
414
286
 
415
- Routing to increment-planner skill to create your payment feature...
287
+ **35+ Skills** (all ready to use):
288
+ - Framework skills: `nextjs`, `nodejs-backend`, `python-backend`, `dotnet-backend`, `frontend`
289
+ - Integration skills: `jira-sync`, `ado-sync`, `github-sync`
290
+ - Utility skills: `diagrams-generator`, `figma-implementer`, `hetzner-provisioner`
291
+ - Quality skills: `increment-quality-judge`, `context-optimizer`
292
+ - ... and 25+ more!
416
293
 
417
- [increment-planner output]
418
- ```
294
+ ## FAQ
419
295
 
420
- ### 2. Confirm Complex Operations
296
+ ### Q: Why don't I see ⏺ Skill(...) in the console?
421
297
 
422
- For multi-step operations, confirm before proceeding:
298
+ **A**: SpecWeave skills don't activate proactively. You MUST use slash commands.
423
299
 
424
- ```
425
- You want to "create and implement a payment feature".
300
+ **Correct**: `/pi "Feature description"` → ⏺ Skill(increment-planner)
426
301
 
427
- This will:
428
- 1. Create Increment 0003 (increment-planner skill)
429
- 2. Load relevant specs (context-loader skill)
430
- 3. Implement code (nodejs-backend skill + security agent)
431
- 4. Generate tests (QA Lead agent)
432
- 5. Update documentation (Docs Writer agent)
302
+ **Incorrect**: "Build a feature" → No skill activation
433
303
 
434
- Estimated time: 15-30 minutes
304
+ ### Q: When do I use slash commands vs regular conversation?
435
305
 
436
- Proceed? (yes/no)
437
- ```
306
+ **Slash commands for SpecWeave operations**:
307
+ - Creating increments: `/pi`
308
+ - Managing increments: `/si`, `/done`, `/ls`
309
+ - Adding tasks: `/at`
310
+ - Validation: `/vi`
438
311
 
439
- ### 3. Fail Gracefully
312
+ **Regular conversation for implementation**:
313
+ - Asking Claude to implement code
314
+ - Discussing architecture
315
+ - Debugging issues
316
+ - Reviewing code
440
317
 
441
- If SpecWeave can't handle a request:
318
+ **Example**:
319
+ ```bash
320
+ # Use slash command to plan
321
+ $ /pi "Payment processing with Stripe"
322
+ ✅ Increment 0003 created
442
323
 
324
+ # Then regular conversation to implement
325
+ User: "Let's implement the Stripe integration from plan.md"
326
+ Claude: [implements based on specifications]
443
327
  ```
444
- I detected this is a SpecWeave project, but I'm not sure how to handle:
445
- "What's the weather like?"
446
328
 
447
- This seems outside SpecWeave's domain (software development).
448
- Would you like me to answer as regular Claude instead?
449
- ```
329
+ ### Q: What if I forget to use a slash command?
450
330
 
451
- ### 4. Learn from Usage
331
+ **A**: Claude will implement directly without SpecWeave structure. Your project won't have:
332
+ - ❌ No increment folder
333
+ - ❌ No spec.md (requirements)
334
+ - ❌ No plan.md (architecture)
335
+ - ❌ No tests.md (test strategy)
336
+ - ❌ No traceability
452
337
 
453
- Track routing decisions to improve accuracy:
338
+ **Solution**: Use `/pi` first, THEN implement.
454
339
 
455
- ```javascript
456
- // Log for analysis
457
- logRoutingDecision({
458
- userInput: "Add Stripe payments",
459
- parsedRequest: "feature_creation + payments",
460
- routedTo: "increment-planner",
461
- wasCorrect: true, // User feedback
462
- timestamp: Date.now()
463
- });
464
- ```
340
+ ### Q: Can I still use SpecWeave if I already started implementing?
465
341
 
466
- ## Integration with Other Skills
342
+ **A**: Yes! Use brownfield workflow:
467
343
 
468
- All SpecWeave skills should check if `specweave-detector` is active:
344
+ ```bash
345
+ # Create increment retroactively
346
+ $ /pi "Document existing authentication implementation"
469
347
 
470
- ```javascript
471
- // In any skill
472
- if (specweaveDetectorActive()) {
473
- // Access loaded context
474
- const context = getSpecWeaveContext();
475
- // Use centralized routing
476
- routeToSkill('context-loader', params);
477
- }
348
+ # Claude will analyze existing code and create specs
349
+ Increment 0001 created with retroactive documentation
478
350
  ```
479
351
 
480
352
  ## Testing
481
353
 
482
- ### TC-001: Detect SpecWeave Project
483
- - Given: Directory with `.specweave/config.yaml`
484
- - When: Claude Code opens directory
485
- - Then: specweave-detector activates automatically
486
-
487
- ### TC-002: Route Simple Request
488
- - Given: User says "Plan a feature for authentication"
489
- - When: specweave-detector parses request
490
- - Then: Routes to increment-planner
491
- - And: increment-planner creates Increment 000X (.specweave/increments/000X-authentication/)
492
-
493
- ### TC-003: Route Complex Request
494
- - Given: User says "Create and implement payment feature"
495
- - When: specweave-detector parses request
496
- - Then: Orchestrates: increment-planner → context-loader → implementation (with agents) → testing → documentation
497
- - And: All steps complete successfully
498
-
499
- ### TC-004: Handle Ambiguous Request
500
- - Given: User says "Help with auth"
501
- - When: specweave-detector cannot determine clear request
502
- - Then: Routes to skill-router for clarification
503
- - And: Presents options to user
504
-
505
- ### TC-005: Graceful Degradation
506
- - Given: SpecWeave project
507
- - When: User asks non-development question ("What's for lunch?")
508
- - Then: specweave-detector recognizes out-of-domain
509
- - And: Falls back to regular Claude
354
+ ### TC-001: Slash Command Creates Increment
355
+ - Given: User types `/pi "User authentication"`
356
+ - When: Slash command executes
357
+ - Then: increment-planner skill activates
358
+ - And: Creates `.specweave/increments/0001-user-authentication/`
359
+ - And: spec.md, plan.md, tasks.md, tests.md generated
360
+
361
+ ### TC-002: No Slash Command = No Activation
362
+ - Given: User types "Build user authentication"
363
+ - When: Claude processes request
364
+ - Then: No SpecWeave skills activate
365
+ - And: Claude implements directly (no specs generated)
366
+
367
+ ### TC-003: List Increments
368
+ - Given: Multiple increments exist
369
+ - When: User types `/ls`
370
+ - Then: Shows all increments with status
371
+ - And: Shows completion status (completed, in-progress, planned)
510
372
 
511
373
  ---
512
374
 
513
375
  ## Summary
514
376
 
515
- The `specweave-detector` skill is the **invisible orchestrator** that:
516
- - ✅ Auto-activates in SpecWeave projects
517
- - ✅ Parses user requests intelligently
518
- - Routes to appropriate skills automatically
519
- - Orchestrates nested skill calls
520
- - Manages context loading
521
- - Provides seamless user experience
377
+ **SpecWeave uses EXPLICIT SLASH COMMANDS** - no auto-activation!
378
+
379
+ **Essential commands**:
380
+ - `/pi` - Plan Product Increment (most important!)
381
+ - `/si` - Start increment
382
+ - `/done` - Close increment
383
+ - `/ls` - List increments
522
384
 
523
- **User benefit**: Just describe what you want, SpecWeave figures out how to do it.
385
+ **Workflow**:
386
+ 1. Init: `npx specweave init`
387
+ 2. Plan: `/pi "Feature"`
388
+ 3. Validate: `/vi 0001 --quality`
389
+ 4. Start: `/si 0001`
390
+ 5. Implement: Regular conversation
391
+ 6. Close: `/done 0001`
524
392
 
525
- **No more manual `@role` selection** - SpecWeave is your intelligent development assistant that knows which expert to call!
393
+ **Remember**: Type `/pi` first, THEN implement! Otherwise you lose all SpecWeave benefits (specs, architecture, test strategy).