specweave 0.30.13 → 0.30.14

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.
Files changed (68) hide show
  1. package/.claude-plugin/marketplace.json +0 -11
  2. package/CLAUDE.md +1 -1
  3. package/bin/fix-marketplace-errors.sh +1 -1
  4. package/dist/src/living-docs/smart-doc-organizer.js +1 -1
  5. package/dist/src/living-docs/smart-doc-organizer.js.map +1 -1
  6. package/package.json +13 -13
  7. package/plugins/PLUGINS-INDEX.md +2 -3
  8. package/plugins/specweave/commands/specweave-organize-docs.md +3 -3
  9. package/plugins/specweave-ado/commands/{specweave-ado-close-workitem.md → close.md} +9 -5
  10. package/plugins/specweave-ado/commands/{specweave-ado-create-workitem.md → create.md} +9 -5
  11. package/plugins/specweave-ado/commands/pull.md +459 -0
  12. package/plugins/specweave-ado/commands/push.md +361 -0
  13. package/plugins/specweave-ado/commands/{specweave-ado-status.md → status.md} +12 -0
  14. package/plugins/specweave-ado/commands/{specweave-ado-sync.md → sync.md} +64 -3
  15. package/plugins/specweave-ado/hooks/README.md +1 -1
  16. package/plugins/specweave-docs/commands/generate.md +3 -3
  17. package/plugins/specweave-docs/commands/init.md +4 -4
  18. package/plugins/specweave-docs/commands/preview.md +5 -5
  19. package/plugins/specweave-github/agents/user-story-updater/AGENT.md +1 -1
  20. package/plugins/specweave-github/commands/{specweave-github-close-issue.md → close.md} +2 -2
  21. package/plugins/specweave-github/commands/{specweave-github-create-issue.md → create.md} +2 -2
  22. package/plugins/specweave-github/commands/pull.md +142 -0
  23. package/plugins/specweave-github/commands/push.md +154 -0
  24. package/plugins/specweave-github/commands/{specweave-github-sync.md → sync.md} +19 -5
  25. package/plugins/specweave-github/commands/{specweave-github-update-user-story.md → update-user-story.md} +1 -1
  26. package/plugins/specweave-github/hooks/README.md +1 -1
  27. package/plugins/specweave-jira/commands/pull.md +164 -0
  28. package/plugins/specweave-jira/commands/push.md +170 -0
  29. package/plugins/specweave-jira/commands/{specweave-jira-sync.md → sync.md} +18 -3
  30. package/plugins/specweave-jira/hooks/README.md +1 -1
  31. package/plugins/specweave-kafka/README.md +20 -0
  32. package/plugins/specweave-kafka/benchmarks/kafka-throughput.benchmark.ts +551 -0
  33. package/plugins/specweave-kafka/examples/README.md +191 -0
  34. package/plugins/specweave-kafka/examples/avro-schema-registry/.env.example +8 -0
  35. package/plugins/specweave-kafka/examples/avro-schema-registry/README.md +69 -0
  36. package/plugins/specweave-kafka/examples/avro-schema-registry/consumer.js +37 -0
  37. package/plugins/specweave-kafka/examples/avro-schema-registry/package.json +14 -0
  38. package/plugins/specweave-kafka/examples/avro-schema-registry/producer.js +57 -0
  39. package/plugins/specweave-kafka/examples/exactly-once-semantics/.env.example +5 -0
  40. package/plugins/specweave-kafka/examples/exactly-once-semantics/README.md +30 -0
  41. package/plugins/specweave-kafka/examples/exactly-once-semantics/eos-pipeline.js +79 -0
  42. package/plugins/specweave-kafka/examples/exactly-once-semantics/package.json +11 -0
  43. package/plugins/specweave-kafka/examples/kafka-streams-app/.env.example +4 -0
  44. package/plugins/specweave-kafka/examples/kafka-streams-app/README.md +30 -0
  45. package/plugins/specweave-kafka/examples/kafka-streams-app/package.json +11 -0
  46. package/plugins/specweave-kafka/examples/kafka-streams-app/windowed-aggregation.js +66 -0
  47. package/plugins/specweave-kafka/examples/n8n-workflow/README.md +54 -0
  48. package/plugins/specweave-kafka/examples/n8n-workflow/docker-compose.yml +19 -0
  49. package/plugins/specweave-kafka/examples/n8n-workflow/kafka-to-slack.json +50 -0
  50. package/plugins/specweave-kafka/examples/simple-producer-consumer/.env.example +15 -0
  51. package/plugins/specweave-kafka/examples/simple-producer-consumer/README.md +183 -0
  52. package/plugins/specweave-kafka/examples/simple-producer-consumer/consumer.js +60 -0
  53. package/plugins/specweave-kafka/examples/simple-producer-consumer/docker-compose.yml +30 -0
  54. package/plugins/specweave-kafka/examples/simple-producer-consumer/package.json +18 -0
  55. package/plugins/specweave-kafka/examples/simple-producer-consumer/producer.js +52 -0
  56. package/plugins/specweave-release/commands/specweave-release-npm.md +4 -4
  57. package/plugins/specweave-docs-preview/.claude-plugin/plugin.json +0 -21
  58. package/plugins/specweave-docs-preview/commands/build.md +0 -489
  59. package/plugins/specweave-docs-preview/commands/preview.md +0 -355
  60. package/plugins/specweave-docs-preview/skills/docs-preview/SKILL.md +0 -386
  61. /package/plugins/specweave-ado/commands/{specweave-ado-clone-repos.md → clone.md} +0 -0
  62. /package/plugins/specweave-ado/commands/{specweave-ado-import-areas.md → import-areas.md} +0 -0
  63. /package/plugins/specweave-ado/commands/{specweave-ado-import-projects.md → import-projects.md} +0 -0
  64. /package/plugins/specweave-github/commands/{specweave-github-cleanup-duplicates.md → cleanup-duplicates.md} +0 -0
  65. /package/plugins/specweave-github/commands/{specweave-github-reconcile.md → reconcile.md} +0 -0
  66. /package/plugins/specweave-github/commands/{specweave-github-status.md → status.md} +0 -0
  67. /package/plugins/specweave-jira/commands/{specweave-jira-import-boards.md → import-boards.md} +0 -0
  68. /package/plugins/specweave-jira/commands/{specweave-jira-import-projects.md → import-projects-full.md} +0 -0
@@ -0,0 +1,361 @@
1
+ ---
2
+ name: specweave-ado:push
3
+ description: Push local changes to Azure DevOps (like git push). Supports increment, project, or full living docs sync.
4
+ ---
5
+
6
+ # ADO Push Command
7
+
8
+ **Usage**: `/specweave-ado:push [target] [options]`
9
+
10
+ **Purpose**: Push local changes to Azure DevOps (like `git push`)
11
+
12
+ ---
13
+
14
+ ## Quick Start
15
+
16
+ ```bash
17
+ # Push current/active increment (simple mode)
18
+ /specweave-ado:push
19
+
20
+ # Push specific increment
21
+ /specweave-ado:push 0005
22
+
23
+ # Push ALL local changes to ADO (living docs sync)
24
+ /specweave-ado:push --all
25
+
26
+ # Push specific project/board
27
+ /specweave-ado:push --project clinical-insights
28
+
29
+ # Push specific feature hierarchy
30
+ /specweave-ado:push --feature FS-042
31
+ ```
32
+
33
+ ---
34
+
35
+ ## Sync Modes
36
+
37
+ ### Mode 1: Increment Sync (Default)
38
+ Pushes task progress from ONE increment to its linked work item.
39
+
40
+ ### Mode 2: Living Docs Sync (--all)
41
+ Pushes ALL local spec changes to corresponding ADO items:
42
+ - Scans `.specweave/docs/internal/specs/` for modified specs
43
+ - Updates status, progress, comments on linked ADO items
44
+ - Respects multi-project folder structure
45
+
46
+ ### Mode 3: Project-Scoped Sync (--project)
47
+ Pushes changes only within a specific project folder.
48
+
49
+ ### Mode 4: Feature Hierarchy Sync (--feature)
50
+ Pushes a feature and all its child user stories.
51
+
52
+ ---
53
+
54
+ ## What Gets Pushed
55
+
56
+ | Field | Source |
57
+ |-------|--------|
58
+ | **Progress** | Calculated from tasks.md (X/Y tasks, Z%) |
59
+ | **Comment** | Auto-generated with completed tasks list |
60
+ | **Completion %** | Updated on work item custom field |
61
+ | **State** | Updated if threshold crossed (e.g., 100% -> Resolved) |
62
+
63
+ ---
64
+
65
+ ## Command Behavior
66
+
67
+ When user runs this command:
68
+
69
+ ### 1. Check Permission Gate (MANDATORY)
70
+
71
+ ```typescript
72
+ const config = JSON.parse(await fs.readFile('.specweave/config.json', 'utf-8'));
73
+ const canUpdateExternal = config?.sync?.settings?.canUpdateExternalItems ?? false;
74
+
75
+ if (!canUpdateExternal) {
76
+ console.log(`
77
+ Permission Denied: ADO writes disabled
78
+
79
+ Current: sync.settings.canUpdateExternalItems = false
80
+
81
+ To enable writes, update .specweave/config.json:
82
+ "sync": { "settings": { "canUpdateExternalItems": true } }
83
+
84
+ Or use read-only mode:
85
+ /specweave-ado:pull ${incrementId}
86
+ `);
87
+ return;
88
+ }
89
+ ```
90
+
91
+ ### 2. Resolve Increment & Profile
92
+
93
+ ```typescript
94
+ const incrementId = args.incrementId || await findActiveIncrement();
95
+
96
+ const metadata = JSON.parse(await fs.readFile(
97
+ `.specweave/increments/${incrementId}/metadata.json`, 'utf-8'
98
+ ));
99
+
100
+ const adoWorkItemId = metadata?.external_sync?.ado?.workItemId;
101
+ if (!adoWorkItemId) {
102
+ console.log(`Not linked to ADO. Run: /specweave-ado:create ${incrementId}`);
103
+ return;
104
+ }
105
+
106
+ const profileName = metadata?.external_sync?.ado?.profile
107
+ || config?.sync?.defaultProfile;
108
+ ```
109
+
110
+ ### 3. Calculate Progress
111
+
112
+ ```typescript
113
+ const tasksContent = await fs.readFile(
114
+ `.specweave/increments/${incrementId}/tasks.md`, 'utf-8'
115
+ );
116
+
117
+ const totalTasks = (tasksContent.match(/### T-\d+/g) || []).length;
118
+ const completedTasks = (tasksContent.match(/\[x\] completed/gi) || []).length;
119
+ const percentage = Math.round((completedTasks / totalTasks) * 100);
120
+
121
+ // Find recently completed tasks (for comment)
122
+ const recentlyCompleted = parseRecentlyCompletedTasks(tasksContent);
123
+ ```
124
+
125
+ ### 4. Invoke Push Sync
126
+
127
+ ```
128
+ Use Task tool with subagent_type: "specweave-ado:ado-manager:ado-manager"
129
+
130
+ Prompt: "Push progress to ADO for increment {increment-id}.
131
+
132
+ DIRECTION: to-ado
133
+ PERMISSION: canUpdateExternalItems = true (verified)
134
+
135
+ Profile: {profileName}
136
+ Work Item: #{workItemId}
137
+
138
+ Progress: {completedTasks}/{totalTasks} ({percentage}%)
139
+ Recently completed: {recentlyCompleted}
140
+
141
+ Steps:
142
+ 1. Format progress comment with task list
143
+ 2. POST comment to ADO work item
144
+ 3. PATCH work item completion field
145
+ 4. Update state if threshold crossed:
146
+ - 100% completed -> Resolved (if canUpdateStatus)
147
+ 5. Update sync timestamp in metadata
148
+ 6. Display push summary"
149
+ ```
150
+
151
+ ### 5. Display Result
152
+
153
+ ```
154
+ Pushed to ADO
155
+
156
+ Work Item: #12345
157
+ Profile: ado-my-project
158
+
159
+ Progress: 6/10 tasks (60%)
160
+
161
+ Comment posted:
162
+ "Progress Update: 60% complete
163
+
164
+ Recently completed:
165
+ - T-005: Add payment validation
166
+ - T-006: Implement refund flow"
167
+
168
+ Fields updated:
169
+ Completion: 60%
170
+
171
+ URL: https://dev.azure.com/org/project/_workitems/edit/12345
172
+ ```
173
+
174
+ ---
175
+
176
+ ## Permission Requirements
177
+
178
+ | Permission | Required | Purpose |
179
+ |------------|----------|---------|
180
+ | `canUpdateExternalItems` | **true** | Write to ADO |
181
+ | `canUpdateStatus` | optional | Change work item state |
182
+
183
+ If `canUpdateStatus` is false, progress is posted but state unchanged.
184
+
185
+ ---
186
+
187
+ ## Examples
188
+
189
+ ### Example 1: Simple Push
190
+
191
+ ```
192
+ User: /specweave-ado:push
193
+
194
+ Claude:
195
+ Checking permissions...
196
+ canUpdateExternalItems: true
197
+
198
+ Pushing to ADO...
199
+ Increment: 0005-payment-integration
200
+ Work Item: #12345
201
+
202
+ Pushed to ADO
203
+
204
+ Progress: 8/10 tasks (80%)
205
+ Comment posted with 2 recently completed tasks
206
+
207
+ Push complete!
208
+ ```
209
+
210
+ ### Example 2: Permission Denied
211
+
212
+ ```
213
+ User: /specweave-ado:push 0005
214
+
215
+ Claude:
216
+ Checking permissions...
217
+ canUpdateExternalItems: false
218
+
219
+ Permission Denied
220
+
221
+ To enable ADO writes:
222
+ 1. Edit .specweave/config.json
223
+ 2. Set sync.settings.canUpdateExternalItems = true
224
+
225
+ Or use read-only: /specweave-ado:pull 0005
226
+ ```
227
+
228
+ ### Example 3: 100% Complete
229
+
230
+ ```
231
+ User: /specweave-ado:push 0005
232
+
233
+ Claude:
234
+ Pushing to ADO...
235
+
236
+ Progress: 10/10 tasks (100%)
237
+
238
+ Comment posted:
239
+ "Progress Update: 100% complete - All tasks done!"
240
+
241
+ State updated:
242
+ Active -> Resolved (canUpdateStatus = true)
243
+
244
+ Ready to close: /specweave-ado:close 0005
245
+ ```
246
+
247
+ ---
248
+
249
+ ## Sync Brief (MANDATORY OUTPUT)
250
+
251
+ **After EVERY push operation, display a compact summary:**
252
+
253
+ ### Brief Format (Single Increment)
254
+
255
+ ```
256
+ ┌─────────────────────────────────────────────────────────┐
257
+ │ PUSH COMPLETE ✓ ADO │
258
+ ├─────────────────────────────────────────────────────────┤
259
+ │ Increment: 0005-payment-integration │
260
+ │ Work Item: #12345 │
261
+ │ Profile: ado-techcorp │
262
+ ├─────────────────────────────────────────────────────────┤
263
+ │ PROGRESS │
264
+ │ Tasks: 8/10 (80%) ████████░░ │
265
+ │ ↑ Comment posted: "Progress: 80% complete" │
266
+ │ ↑ Completion field: 60% → 80% │
267
+ ├─────────────────────────────────────────────────────────┤
268
+ │ RECENTLY COMPLETED │
269
+ │ ✓ T-007: Add payment validation │
270
+ │ ✓ T-008: Implement refund flow │
271
+ ├─────────────────────────────────────────────────────────┤
272
+ │ Last sync: 2025-12-04 10:32:15 (just now) │
273
+ │ URL: https://dev.azure.com/.../12345 │
274
+ └─────────────────────────────────────────────────────────┘
275
+ ```
276
+
277
+ ### Brief Format (Multi-Project --all)
278
+
279
+ ```
280
+ ┌─────────────────────────────────────────────────────────┐
281
+ │ PUSH COMPLETE ✓ ADO │
282
+ ├─────────────────────────────────────────────────────────┤
283
+ │ Pushed: 12 specs across 3 projects │
284
+ │ Comments posted: 12 │
285
+ │ Status transitions: 3 │
286
+ │ Duration: 5.1s │
287
+ ├─────────────────────────────────────────────────────────┤
288
+ │ BY PROJECT │
289
+ │ techcorp/clinical-insights/ 5 pushed │
290
+ │ techcorp/ai-platform/ 4 pushed │
291
+ │ infrastructure/core/ 3 pushed │
292
+ ├─────────────────────────────────────────────────────────┤
293
+ │ CHANGES PUSHED │
294
+ │ ↑ Progress comments: 12 │
295
+ │ ↑ Completion updates: 8 │
296
+ │ ↑ Status transitions: 3 │
297
+ │ • FS-042/us-001: Active → Resolved (100%) │
298
+ │ • FS-043/us-005: Active → Resolved (100%) │
299
+ │ • FS-050/us-010: New → Active (started) │
300
+ └─────────────────────────────────────────────────────────┘
301
+ ```
302
+
303
+ ### Brief Format (100% Complete - Ready to Close)
304
+
305
+ ```
306
+ ┌─────────────────────────────────────────────────────────┐
307
+ │ PUSH COMPLETE ✓ ADO │
308
+ ├─────────────────────────────────────────────────────────┤
309
+ │ Increment: 0005-payment-integration │
310
+ │ Work Item: #12345 │
311
+ ├─────────────────────────────────────────────────────────┤
312
+ │ PROGRESS │
313
+ │ Tasks: 10/10 (100%) ██████████ COMPLETE! │
314
+ │ ↑ Comment: "All tasks complete!" │
315
+ │ ↑ Status: Active → Resolved │
316
+ ├─────────────────────────────────────────────────────────┤
317
+ │ 🎉 INCREMENT READY TO CLOSE │
318
+ │ Run: /specweave-ado:close 0005 │
319
+ └─────────────────────────────────────────────────────────┘
320
+ ```
321
+
322
+ ### Brief Format (Permission Denied)
323
+
324
+ ```
325
+ ┌─────────────────────────────────────────────────────────┐
326
+ │ PUSH BLOCKED ✗ ADO │
327
+ ├─────────────────────────────────────────────────────────┤
328
+ │ Permission: canUpdateExternalItems = false │
329
+ ├─────────────────────────────────────────────────────────┤
330
+ │ TO ENABLE: │
331
+ │ Edit .specweave/config.json: │
332
+ │ sync.settings.canUpdateExternalItems = true │
333
+ │ │
334
+ │ OR USE READ-ONLY: │
335
+ │ /specweave-ado:pull 0005 │
336
+ └─────────────────────────────────────────────────────────┘
337
+ ```
338
+
339
+ ### Symbols Reference
340
+
341
+ | Symbol | Meaning |
342
+ |--------|---------|
343
+ | `✓` | Success |
344
+ | `⚠` | Warning (partial success) |
345
+ | `✗` | Error/Failed |
346
+ | `↓` | Pulled from external (incoming) |
347
+ | `↑` | Pushed to external (outgoing) |
348
+ | `+` | Added (new items) |
349
+ | `−` | Removed |
350
+ | `~` | Modified |
351
+
352
+ ---
353
+
354
+ ## Related Commands
355
+
356
+ | Command | Purpose |
357
+ |---------|---------|
358
+ | `/specweave-ado:pull` | Pull changes from ADO |
359
+ | `/specweave-ado:sync` | Two-way sync (pull + push) |
360
+ | `/specweave-ado:status` | Check sync status |
361
+ | `/specweave-ado:close` | Close completed work item |
@@ -51,3 +51,15 @@ Sync Enabled: ✅
51
51
 
52
52
  Next Sync: Automatic on task completion
53
53
  ```
54
+
55
+ ---
56
+
57
+ ## Related
58
+
59
+ | Command | Purpose |
60
+ |---------|---------|
61
+ | `/specweave-ado:pull` | Pull changes from ADO |
62
+ | `/specweave-ado:push` | Push progress to ADO |
63
+ | `/specweave-ado:sync` | Two-way sync |
64
+ | `/specweave-ado:create` | Create ADO work item |
65
+ | `/specweave-ado:close` | Close work item |
@@ -234,8 +234,69 @@ Options:
234
234
 
235
235
  ---
236
236
 
237
+ ## Simpler Alternatives
238
+
239
+ For most use cases, use the git-style commands:
240
+
241
+ | Command | Purpose |
242
+ |---------|---------|
243
+ | `/specweave-ado:pull` | Pull changes from ADO (read-only) |
244
+ | `/specweave-ado:push` | Push progress to ADO |
245
+
246
+ Use `/specweave-ado:sync` when you need explicit two-way sync with options.
247
+
248
+ ---
249
+
250
+ ## Sync Brief (MANDATORY OUTPUT)
251
+
252
+ **After EVERY sync operation, display a compact two-way summary:**
253
+
254
+ ```
255
+ ┌─────────────────────────────────────────────────────────┐
256
+ │ SYNC COMPLETE ✓ ADO │
257
+ ├─────────────────────────────────────────────────────────┤
258
+ │ Increment: 0005-payment-integration │
259
+ │ Work Item: #12345 │
260
+ │ Profile: ado-techcorp │
261
+ │ Direction: two-way (pull + push) │
262
+ ├─────────────────────────────────────────────────────────┤
263
+ │ PULLED (from ADO) ↓ │
264
+ │ ↓ Status: Active → Resolved (external wins) │
265
+ │ ↓ Priority: P2 → P1 │
266
+ │ + Comments: 2 new imported │
267
+ ├─────────────────────────────────────────────────────────┤
268
+ │ PUSHED (to ADO) ↑ │
269
+ │ Tasks: 8/10 (80%) ████████░░ │
270
+ │ ↑ Comment posted: "Progress: 80% complete" │
271
+ │ ↑ Completion: 60% → 80% │
272
+ ├─────────────────────────────────────────────────────────┤
273
+ │ CONFLICTS RESOLVED: 1 │
274
+ │ Status: local "in-progress" vs ADO "Resolved" │
275
+ │ Winner: ADO (external tool always wins) │
276
+ ├─────────────────────────────────────────────────────────┤
277
+ │ Last sync: 2025-12-04 10:32:15 (just now) │
278
+ │ URL: https://dev.azure.com/.../12345 │
279
+ └─────────────────────────────────────────────────────────┘
280
+ ```
281
+
282
+ ### Symbols Reference
283
+
284
+ | Symbol | Meaning |
285
+ |--------|---------|
286
+ | `✓` | Success |
287
+ | `⚠` | Warning |
288
+ | `✗` | Failed |
289
+ | `↓` | Pulled (incoming) |
290
+ | `↑` | Pushed (outgoing) |
291
+
292
+ ---
293
+
237
294
  ## Related
238
295
 
239
- - `/specweave-ado:create-workitem` - Create new ADO work item
240
- - `/specweave-ado:status` - Check sync status (read-only, always allowed)
241
- - `/specweave-ado:close-workitem` - Close work item when complete
296
+ | Command | Purpose |
297
+ |---------|---------|
298
+ | `/specweave-ado:pull` | Pull from ADO (git-style) |
299
+ | `/specweave-ado:push` | Push to ADO (git-style) |
300
+ | `/specweave-ado:create` | Create new ADO work item |
301
+ | `/specweave-ado:status` | Check sync status |
302
+ | `/specweave-ado:close` | Close work item when complete |
@@ -193,7 +193,7 @@ Core hook (330 lines) ADO plugin hook (150 lines)
193
193
 
194
194
  - **Core Plugin Hooks**: `plugins/specweave/hooks/README.md`
195
195
  - **Architecture Analysis**: `.specweave/increments/0018-strict-increment-discipline-enforcement/reports/HOOKS-ARCHITECTURE-ANALYSIS.md`
196
- - **ADO Sync Command**: `plugins/specweave-ado/commands/specweave-ado-sync.md`
196
+ - **ADO Sync Command**: `plugins/specweave-ado/commands/sync.md`
197
197
 
198
198
  ---
199
199
 
@@ -407,9 +407,9 @@ cat ./docs/api/index.md ./docs/specs/index.md > ./docs/complete-reference.md
407
407
 
408
408
  ## Related Commands
409
409
 
410
- - `/specweave-docs:docs-init` - Initialize Docusaurus documentation site
411
- - `/specweave-docs-preview:preview` - Preview generated documentation
412
- - `/specweave-docs-preview:build` - Build static site from generated docs
410
+ - `/specweave-docs:init` - Initialize Docusaurus documentation site
411
+ - `/specweave-docs:preview` - Preview generated documentation
412
+ - `/specweave-docs:build` - Build static site from generated docs
413
413
 
414
414
  ## Requirements
415
415
 
@@ -303,14 +303,14 @@ themeConfig: {
303
303
 
304
304
  ### Custom Output Directory
305
305
  ```bash
306
- /specweave-docs:docs-init --output ./documentation
306
+ /specweave-docs:init --output ./documentation
307
307
  ```
308
308
 
309
309
  ## Related Commands
310
310
 
311
- - `/specweave-docs:docs-generate` - Generate docs from code/specs
312
- - `/specweave-docs-preview:preview` - Launch documentation preview server
313
- - `/specweave-docs-preview:build` - Build static documentation site
311
+ - `/specweave-docs:generate` - Generate docs from code/specs
312
+ - `/specweave-docs:preview` - Launch documentation preview server
313
+ - `/specweave-docs:build` - Build static documentation site
314
314
 
315
315
  ## Requirements
316
316
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: specweave-docs:preview
3
- description: Launch Docusaurus documentation server. Supports both public (port 3016) and internal (port 8001) documentation sites.
3
+ description: Launch Docusaurus documentation server. Supports both public (port 3016) and internal (port 3015) documentation sites.
4
4
  ---
5
5
 
6
6
  # Documentation Preview Command
@@ -21,7 +21,7 @@ Launch Docusaurus development server with hot reload, Mermaid diagrams, and auto
21
21
 
22
22
  | Site | Port | Content | NPM Script |
23
23
  |------|------|---------|------------|
24
- | **Internal** | 8001 | `.specweave/docs/internal/` | `docs:internal` |
24
+ | **Internal** | 3015 | `.specweave/docs/internal/` | `docs:internal` |
25
25
  | **Public** | 3016 | `docs-site/docs/` | `docs:dev` |
26
26
 
27
27
  ## Your Task
@@ -40,7 +40,7 @@ if [ "$PUBLIC_FLAG" = "--public" ]; then
40
40
  echo ""
41
41
  npm run docs:dev
42
42
  else
43
- echo "Launching INTERNAL documentation on port 8001..."
43
+ echo "Launching INTERNAL documentation on port 3015..."
44
44
  echo "Content: .specweave/docs/internal/"
45
45
  echo ""
46
46
  npm run docs:internal
@@ -83,7 +83,7 @@ This installs Docusaurus dependencies (~200MB, ~30 seconds).
83
83
  | Script | Port | URL |
84
84
  |--------|------|-----|
85
85
  | `docs:dev` | 3016 | http://localhost:3016 |
86
- | `docs:internal` | 8001 | http://localhost:8001 |
86
+ | `docs:internal` | 3015 | http://localhost:3015 |
87
87
 
88
88
  ## Internal Docs Structure
89
89
 
@@ -115,7 +115,7 @@ This installs Docusaurus dependencies (~200MB, ~30 seconds).
115
115
  ### Port already in use
116
116
  ```bash
117
117
  # Find process using port
118
- lsof -i :8001
118
+ lsof -i :3015
119
119
 
120
120
  # Kill it
121
121
  kill -9 <PID>
@@ -161,7 +161,7 @@ Agent: "I'll update GitHub issue #501 for US-004 to include checkable ACs and ta
161
161
 
162
162
  **Related Files**:
163
163
  - `plugins/specweave-github/lib/user-story-content-builder.ts` - Core builder class
164
- - `plugins/specweave-github/commands/specweave-github-update-user-story.md` - Command spec
164
+ - `plugins/specweave-github/commands/update-user-story.md` - Command spec
165
165
  - `.specweave/docs/internal/specs/{project}/FS-*/us-*.md` - User story files
166
166
 
167
167
  **Testing**:
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: specweave-github:close-issue
2
+ name: specweave-github:close
3
3
  description: Close GitHub issue for completed SpecWeave increment. Posts completion summary with final stats, deliverables, and closes the issue. Links closure in increment metadata.
4
4
  ---
5
5
 
@@ -7,7 +7,7 @@ description: Close GitHub issue for completed SpecWeave increment. Posts complet
7
7
 
8
8
  Close the GitHub issue associated with a completed SpecWeave increment.
9
9
 
10
- ## Usage
10
+ **Usage**: `/specweave-github:close <increment-id>`
11
11
 
12
12
  ```bash
13
13
  /specweave:github:close-issue <increment-id> [options]
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: specweave-github:create-issue
2
+ name: specweave-github:create
3
3
  description: Create a GitHub issue for a SpecWeave increment. Generates issue from increment specs with task checklist, labels, and milestone. Links issue to increment metadata.
4
4
  ---
5
5
 
@@ -7,7 +7,7 @@ description: Create a GitHub issue for a SpecWeave increment. Generates issue fr
7
7
 
8
8
  Create a GitHub issue for the specified SpecWeave increment.
9
9
 
10
- ## Usage
10
+ **Usage**: `/specweave-github:create <increment-id>`
11
11
 
12
12
  ```bash
13
13
  /specweave:github:create-issue <increment-id> [options]