specweave 0.7.1 → 0.8.1
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/CLAUDE.md +307 -11
- package/README.md +41 -3
- package/dist/cli/commands/import-docs.d.ts +21 -0
- package/dist/cli/commands/import-docs.d.ts.map +1 -0
- package/dist/cli/commands/import-docs.js +146 -0
- package/dist/cli/commands/import-docs.js.map +1 -0
- package/dist/cli/commands/init-multiproject.d.ts +11 -0
- package/dist/cli/commands/init-multiproject.d.ts.map +1 -0
- package/dist/cli/commands/init-multiproject.js +202 -0
- package/dist/cli/commands/init-multiproject.js.map +1 -0
- package/dist/cli/commands/init.js +3 -3
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/migrate-to-multiproject.d.ts +37 -0
- package/dist/cli/commands/migrate-to-multiproject.d.ts.map +1 -0
- package/dist/cli/commands/migrate-to-multiproject.js +189 -0
- package/dist/cli/commands/migrate-to-multiproject.js.map +1 -0
- package/dist/cli/commands/migrate-to-profiles.d.ts +25 -0
- package/dist/cli/commands/migrate-to-profiles.d.ts.map +1 -0
- package/dist/cli/commands/migrate-to-profiles.js +350 -0
- package/dist/cli/commands/migrate-to-profiles.js.map +1 -0
- package/dist/cli/commands/switch-project.d.ts +13 -0
- package/dist/cli/commands/switch-project.d.ts.map +1 -0
- package/dist/cli/commands/switch-project.js +91 -0
- package/dist/cli/commands/switch-project.js.map +1 -0
- package/dist/cli/helpers/issue-tracker/index.js +4 -4
- package/dist/cli/helpers/issue-tracker/index.js.map +1 -1
- package/dist/cli/helpers/issue-tracker/utils.d.ts +6 -3
- package/dist/cli/helpers/issue-tracker/utils.d.ts.map +1 -1
- package/dist/cli/helpers/issue-tracker/utils.js +9 -7
- package/dist/cli/helpers/issue-tracker/utils.js.map +1 -1
- package/dist/core/brownfield/analyzer.d.ts +86 -0
- package/dist/core/brownfield/analyzer.d.ts.map +1 -0
- package/dist/core/brownfield/analyzer.js +365 -0
- package/dist/core/brownfield/analyzer.js.map +1 -0
- package/dist/core/brownfield/importer.d.ts +76 -0
- package/dist/core/brownfield/importer.d.ts.map +1 -0
- package/dist/core/brownfield/importer.js +287 -0
- package/dist/core/brownfield/importer.js.map +1 -0
- package/dist/core/config-manager.d.ts +47 -0
- package/dist/core/config-manager.d.ts.map +1 -0
- package/dist/core/config-manager.js +136 -0
- package/dist/core/config-manager.js.map +1 -0
- package/dist/core/project-manager.d.ts +127 -0
- package/dist/core/project-manager.d.ts.map +1 -0
- package/dist/core/project-manager.js +524 -0
- package/dist/core/project-manager.js.map +1 -0
- package/dist/core/sync/profile-manager.d.ts +72 -0
- package/dist/core/sync/profile-manager.d.ts.map +1 -0
- package/dist/core/sync/profile-manager.js +338 -0
- package/dist/core/sync/profile-manager.js.map +1 -0
- package/dist/core/sync/profile-selector.d.ts +52 -0
- package/dist/core/sync/profile-selector.d.ts.map +1 -0
- package/dist/core/sync/profile-selector.js +179 -0
- package/dist/core/sync/profile-selector.js.map +1 -0
- package/dist/core/sync/project-context.d.ts +81 -0
- package/dist/core/sync/project-context.d.ts.map +1 -0
- package/dist/core/sync/project-context.js +354 -0
- package/dist/core/sync/project-context.js.map +1 -0
- package/dist/core/sync/rate-limiter.d.ts +116 -0
- package/dist/core/sync/rate-limiter.d.ts.map +1 -0
- package/dist/core/sync/rate-limiter.js +308 -0
- package/dist/core/sync/rate-limiter.js.map +1 -0
- package/dist/core/sync/time-range-selector.d.ts +48 -0
- package/dist/core/sync/time-range-selector.d.ts.map +1 -0
- package/dist/core/sync/time-range-selector.js +224 -0
- package/dist/core/sync/time-range-selector.js.map +1 -0
- package/dist/core/types/config.d.ts +4 -0
- package/dist/core/types/config.d.ts.map +1 -1
- package/dist/core/types/config.js.map +1 -1
- package/dist/core/types/sync-profile.d.ts +205 -0
- package/dist/core/types/sync-profile.d.ts.map +1 -0
- package/dist/core/types/sync-profile.js +8 -0
- package/dist/core/types/sync-profile.js.map +1 -0
- package/dist/utils/project-detection.d.ts +141 -0
- package/dist/utils/project-detection.d.ts.map +1 -0
- package/dist/utils/project-detection.js +321 -0
- package/dist/utils/project-detection.js.map +1 -0
- package/package.json +2 -1
- package/plugins/specweave/agents/pm/AGENT.md +7 -4
- package/plugins/specweave/commands/specweave-abandon.md +17 -17
- package/plugins/specweave/commands/specweave-check-tests.md +14 -14
- package/plugins/specweave/commands/specweave-costs.md +1 -1
- package/plugins/specweave/commands/specweave-do.md +12 -12
- package/plugins/specweave/commands/specweave-done.md +28 -15
- package/plugins/specweave/commands/specweave-import-docs.md +212 -0
- package/plugins/specweave/commands/specweave-increment.md +10 -10
- package/plugins/specweave/commands/specweave-init-multiproject.md +146 -0
- package/plugins/specweave/commands/specweave-next.md +16 -16
- package/plugins/specweave/commands/specweave-pause.md +17 -17
- package/plugins/specweave/commands/specweave-progress.md +10 -10
- package/plugins/specweave/commands/specweave-qa.md +11 -11
- package/plugins/specweave/commands/specweave-resume.md +22 -22
- package/plugins/specweave/commands/specweave-status.md +18 -18
- package/plugins/specweave/commands/specweave-switch-project.md +168 -0
- package/plugins/specweave/commands/specweave-sync-docs.md +1 -1
- package/plugins/specweave/commands/specweave-sync-tasks.md +9 -9
- package/plugins/specweave/commands/specweave-tdd-cycle.md +7 -0
- package/plugins/specweave/commands/specweave-tdd-green.md +7 -0
- package/plugins/specweave/commands/specweave-tdd-red.md +7 -0
- package/plugins/specweave/commands/specweave-tdd-refactor.md +7 -0
- package/plugins/specweave/commands/specweave-translate.md +1 -1
- package/plugins/specweave/commands/specweave-update-scope.md +8 -8
- package/plugins/specweave/commands/specweave-validate.md +18 -20
- package/plugins/specweave/commands/specweave.md +5 -5
- package/plugins/specweave/skills/SKILLS-INDEX.md +1 -1
- package/plugins/specweave/skills/increment-planner/SKILL.md +40 -4
- package/plugins/specweave/skills/increment-quality-judge/SKILL.md +5 -5
- package/plugins/specweave/skills/increment-quality-judge-v2/SKILL.md +5 -5
- package/plugins/specweave/skills/specweave-detector/SKILL.md +3 -3
- package/plugins/specweave-ado/commands/{close-workitem.md → specweave-ado-close-workitem.md} +1 -1
- package/plugins/specweave-ado/commands/{create-workitem.md → specweave-ado-create-workitem.md} +1 -1
- package/plugins/specweave-ado/commands/{status.md → specweave-ado-status.md} +1 -1
- package/plugins/specweave-ado/commands/{sync.md → specweave-ado-sync.md} +1 -1
- package/plugins/specweave-ado/lib/ado-client-v2.ts +547 -0
- package/plugins/specweave-github/commands/{close-issue.md → specweave-github-close-issue.md} +1 -1
- package/plugins/specweave-github/commands/{create-issue.md → specweave-github-create-issue.md} +1 -1
- package/plugins/specweave-github/commands/{status.md → specweave-github-status.md} +1 -1
- package/plugins/specweave-github/commands/{sync-tasks.md → specweave-github-sync-tasks.md} +1 -1
- package/plugins/specweave-github/commands/specweave-github-sync.md +568 -0
- package/plugins/specweave-github/lib/github-client-v2.ts +555 -0
- package/plugins/specweave-infrastructure/commands/{monitor-setup.md → specweave-infrastructure-monitor-setup.md} +1 -1
- package/plugins/specweave-infrastructure/commands/{slo-implement.md → specweave-infrastructure-slo-implement.md} +1 -1
- package/plugins/specweave-jira/commands/{sync.md → specweave-jira-sync.md} +1 -1
- package/plugins/specweave-jira/lib/jira-client-v2.ts +529 -0
- package/plugins/specweave-ml/commands/{ml-deploy.md → specweave-ml-deploy.md} +1 -1
- package/plugins/specweave-ml/commands/{ml-evaluate.md → specweave-ml-evaluate.md} +1 -1
- package/plugins/specweave-ml/commands/{ml-explain.md → specweave-ml-explain.md} +1 -1
- package/plugins/specweave-ml/commands/{ml-pipeline.md → specweave-ml-pipeline.md} +1 -1
- package/src/templates/AGENTS.md.template +1 -0
- package/src/templates/CLAUDE.md.template +1 -0
- package/plugins/specweave-github/commands/sync.md +0 -443
- /package/plugins/specweave/{commands/README.md → COMMANDS.md} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: qa
|
|
2
|
+
name: specweave:qa
|
|
3
3
|
description: Run quality assessment on a SpecWeave increment with risk scoring and quality gate decisions
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# /qa - Quality Assessment Command
|
|
6
|
+
# /specweave:qa - Quality Assessment Command
|
|
7
7
|
|
|
8
8
|
**IMPORTANT**: You MUST invoke the CLI `specweave qa` command using the Bash tool. The slash command provides guidance and orchestration only.
|
|
9
9
|
|
|
@@ -18,32 +18,32 @@ Run comprehensive quality assessment on an increment using:
|
|
|
18
18
|
## Usage
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
/qa <increment-id> [options]
|
|
21
|
+
/specweave:qa <increment-id> [options]
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
### Examples
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
27
|
# Quick mode (default)
|
|
28
|
-
/qa 0008
|
|
28
|
+
/specweave:qa 0008
|
|
29
29
|
|
|
30
30
|
# Pre-implementation check
|
|
31
|
-
/qa 0008 --pre
|
|
31
|
+
/specweave:qa 0008 --pre
|
|
32
32
|
|
|
33
33
|
# Quality gate check (comprehensive)
|
|
34
|
-
/qa 0008 --gate
|
|
34
|
+
/specweave:qa 0008 --gate
|
|
35
35
|
|
|
36
36
|
# Export blockers to tasks.md
|
|
37
|
-
/qa 0008 --export
|
|
37
|
+
/specweave:qa 0008 --export
|
|
38
38
|
|
|
39
39
|
# CI mode (exit 1 on FAIL)
|
|
40
|
-
/qa 0008 --ci
|
|
40
|
+
/specweave:qa 0008 --ci
|
|
41
41
|
|
|
42
42
|
# Skip AI assessment (rule-based only)
|
|
43
|
-
/qa 0008 --no-ai
|
|
43
|
+
/specweave:qa 0008 --no-ai
|
|
44
44
|
|
|
45
45
|
# Force run even if rule-based fails
|
|
46
|
-
/qa 0008 --force
|
|
46
|
+
/specweave:qa 0008 --force
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
### Options
|
|
@@ -242,4 +242,4 @@ When `--ci` flag used:
|
|
|
242
242
|
## Example Session
|
|
243
243
|
|
|
244
244
|
```
|
|
245
|
-
User: /qa 0008
|
|
245
|
+
User: /specweave:qa 0008
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: resume
|
|
2
|
+
name: specweave:resume
|
|
3
3
|
description: Resume a paused increment
|
|
4
4
|
usage: /specweave:resume <increment-id>
|
|
5
5
|
---
|
|
@@ -28,7 +28,7 @@ Resume a paused increment when:
|
|
|
28
28
|
- Clears `pausedReason` and `pausedAt`
|
|
29
29
|
- Updates `lastActivity` timestamp
|
|
30
30
|
4. **Displays** context (pause duration, last activity)
|
|
31
|
-
5. **Suggests** next actions (
|
|
31
|
+
5. **Suggests** next actions (`/specweave:do` to continue work)
|
|
32
32
|
|
|
33
33
|
---
|
|
34
34
|
|
|
@@ -36,21 +36,21 @@ Resume a paused increment when:
|
|
|
36
36
|
|
|
37
37
|
### Resume after a few days
|
|
38
38
|
```bash
|
|
39
|
-
/resume 0006
|
|
39
|
+
/specweave:resume 0006
|
|
40
40
|
|
|
41
41
|
✅ Increment 0006 resumed
|
|
42
42
|
⏱️ Was paused for: 3 days, 4 hours
|
|
43
43
|
💡 Last activity: Created translation pipeline
|
|
44
|
-
📋 Continue with: /do
|
|
44
|
+
📋 Continue with: /specweave:do
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
### Resume after a few hours
|
|
48
48
|
```bash
|
|
49
|
-
/resume 0007
|
|
49
|
+
/specweave:resume 0007
|
|
50
50
|
|
|
51
51
|
✅ Increment 0007 resumed
|
|
52
52
|
⏱️ Was paused for: 2 hours
|
|
53
|
-
📋 Continue with: /do
|
|
53
|
+
📋 Continue with: /specweave:do
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
---
|
|
@@ -59,15 +59,15 @@ Resume a paused increment when:
|
|
|
59
59
|
|
|
60
60
|
### Already Active
|
|
61
61
|
```bash
|
|
62
|
-
/resume 0006
|
|
62
|
+
/specweave:resume 0006
|
|
63
63
|
|
|
64
64
|
⚠️ Increment 0006 is already active
|
|
65
|
-
No action needed. Continue with: /do
|
|
65
|
+
No action needed. Continue with: /specweave:do
|
|
66
66
|
```
|
|
67
67
|
|
|
68
68
|
### Cannot Resume Completed
|
|
69
69
|
```bash
|
|
70
|
-
/resume 0005
|
|
70
|
+
/specweave:resume 0005
|
|
71
71
|
|
|
72
72
|
❌ Cannot resume increment 0005
|
|
73
73
|
Status: completed
|
|
@@ -76,7 +76,7 @@ Resume a paused increment when:
|
|
|
76
76
|
|
|
77
77
|
### Resume Abandoned (Confirmation Required)
|
|
78
78
|
```bash
|
|
79
|
-
/resume 0008
|
|
79
|
+
/specweave:resume 0008
|
|
80
80
|
|
|
81
81
|
⚠️ Increment 0008 is abandoned
|
|
82
82
|
Reason: Requirements changed
|
|
@@ -86,15 +86,15 @@ Resume a paused increment when:
|
|
|
86
86
|
✅ Increment 0008 resumed
|
|
87
87
|
⚠️ Note: Was abandoned 5 days ago
|
|
88
88
|
💡 Review spec.md to ensure still relevant
|
|
89
|
-
📋 Continue with: /do
|
|
89
|
+
📋 Continue with: /specweave:do
|
|
90
90
|
```
|
|
91
91
|
|
|
92
92
|
### Increment Not Found
|
|
93
93
|
```bash
|
|
94
|
-
/resume 9999
|
|
94
|
+
/specweave:resume 9999
|
|
95
95
|
|
|
96
96
|
❌ Increment not found: 9999
|
|
97
|
-
💡 Check paused increments: /status --paused
|
|
97
|
+
💡 Check paused increments: /specweave:status --paused
|
|
98
98
|
```
|
|
99
99
|
|
|
100
100
|
---
|
|
@@ -164,16 +164,16 @@ abandoned ──resume──> active (with confirmation)
|
|
|
164
164
|
|
|
165
165
|
## Automatic Suggestions
|
|
166
166
|
|
|
167
|
-
When you run `/status`, stale paused increments trigger suggestions:
|
|
167
|
+
When you run `/specweave:status`, stale paused increments trigger suggestions:
|
|
168
168
|
|
|
169
169
|
```bash
|
|
170
|
-
/status
|
|
170
|
+
/specweave:status
|
|
171
171
|
|
|
172
172
|
⏸️ Paused (2):
|
|
173
173
|
🔄 0006-stripe [feature]
|
|
174
174
|
Paused: 3 days ago
|
|
175
175
|
Reason: Waiting for API keys
|
|
176
|
-
💡 Check if API keys arrived → /resume 0006
|
|
176
|
+
💡 Check if API keys arrived → /specweave:resume 0006
|
|
177
177
|
|
|
178
178
|
🔄 0007-refactor [refactor]
|
|
179
179
|
Paused: 10 days ago
|
|
@@ -188,7 +188,7 @@ When you run `/status`, stale paused increments trigger suggestions:
|
|
|
188
188
|
After resuming, the command shows helpful context:
|
|
189
189
|
|
|
190
190
|
```bash
|
|
191
|
-
/resume 0006
|
|
191
|
+
/specweave:resume 0006
|
|
192
192
|
|
|
193
193
|
✅ Increment 0006 resumed
|
|
194
194
|
|
|
@@ -200,17 +200,17 @@ After resuming, the command shows helpful context:
|
|
|
200
200
|
💡 Next steps:
|
|
201
201
|
1. Review spec.md (requirements may have changed)
|
|
202
202
|
2. Check dependencies (are API keys available?)
|
|
203
|
-
3. Continue with: /do
|
|
203
|
+
3. Continue with: /specweave:do
|
|
204
204
|
|
|
205
205
|
📋 Quick commands:
|
|
206
|
-
/do # Resume work
|
|
207
|
-
/progress # See detailed progress
|
|
208
|
-
/validate # Check increment health
|
|
206
|
+
/specweave:do # Resume work
|
|
207
|
+
/specweave:progress # See detailed progress
|
|
208
|
+
/specweave:validate # Check increment health
|
|
209
209
|
```
|
|
210
210
|
|
|
211
211
|
---
|
|
212
212
|
|
|
213
|
-
**Command**: `/specweave:resume`
|
|
213
|
+
**Command**: `/specweave:resume`
|
|
214
214
|
**Plugin**: specweave (core)
|
|
215
215
|
**Version**: v0.7.0+
|
|
216
216
|
**Part of**: Increment 0007 - Smart Status Management
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: status
|
|
2
|
+
name: specweave:status
|
|
3
3
|
description: Show increment status overview with rich details (active, paused, completed, abandoned)
|
|
4
4
|
usage: /specweave:status [--active|--paused|--completed|--abandoned|--stale]
|
|
5
5
|
---
|
|
@@ -27,7 +27,7 @@ Display comprehensive increment status overview:
|
|
|
27
27
|
### Default (All Increments)
|
|
28
28
|
|
|
29
29
|
```bash
|
|
30
|
-
/status
|
|
30
|
+
/specweave:status
|
|
31
31
|
|
|
32
32
|
📊 Increment Status Overview
|
|
33
33
|
|
|
@@ -74,30 +74,30 @@ Display comprehensive increment status overview:
|
|
|
74
74
|
- Resume or abandon 0007 (stale)
|
|
75
75
|
|
|
76
76
|
Commands:
|
|
77
|
-
/do # Continue current work
|
|
78
|
-
/resume 0007 # Resume paused increment
|
|
79
|
-
/abandon 0007 # Abandon if obsolete
|
|
77
|
+
/specweave:do # Continue current work
|
|
78
|
+
/specweave:resume 0007 # Resume paused increment
|
|
79
|
+
/specweave:abandon 0007 # Abandon if obsolete
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
### Filtered Views
|
|
83
83
|
|
|
84
84
|
```bash
|
|
85
85
|
# Active only
|
|
86
|
-
/status --active
|
|
86
|
+
/specweave:status --active
|
|
87
87
|
|
|
88
88
|
🔥 Active Increments (2):
|
|
89
89
|
🚨 0005-payment-hotfix [hotfix] (90% done, 6 hours)
|
|
90
90
|
🔧 0006-i18n [feature] (50% done, 2 days)
|
|
91
91
|
|
|
92
92
|
# Paused only
|
|
93
|
-
/status --paused
|
|
93
|
+
/specweave:status --paused
|
|
94
94
|
|
|
95
95
|
⏸️ Paused Increments (1):
|
|
96
96
|
🔄 0007-stripe [feature] (paused 3 days)
|
|
97
97
|
Reason: Waiting for API keys
|
|
98
98
|
|
|
99
99
|
# Stale only (paused >7 days OR active >30 days)
|
|
100
|
-
/status --stale
|
|
100
|
+
/specweave:status --stale
|
|
101
101
|
|
|
102
102
|
⚠️ Stale Increments (2):
|
|
103
103
|
🔄 0008-experiment [experiment] (paused 10 days)
|
|
@@ -201,8 +201,8 @@ Paused >7 days → warning:
|
|
|
201
201
|
⚠️ STALE! Review or abandon?
|
|
202
202
|
|
|
203
203
|
💡 Actions:
|
|
204
|
-
/resume 0007 # If unblocked
|
|
205
|
-
/abandon 0007 # If no longer needed
|
|
204
|
+
/specweave:resume 0007 # If unblocked
|
|
205
|
+
/specweave:abandon 0007 # If no longer needed
|
|
206
206
|
```
|
|
207
207
|
|
|
208
208
|
### Long-Running Active Increments
|
|
@@ -244,7 +244,7 @@ Experiments inactive >14 days → warning:
|
|
|
244
244
|
🚨 AUTO-ABANDON WARNING
|
|
245
245
|
|
|
246
246
|
💡 Experiments auto-abandon after 14 days of inactivity
|
|
247
|
-
To prevent: Update via /do or /touch 0010
|
|
247
|
+
To prevent: Update via /specweave:do or /touch 0010
|
|
248
248
|
```
|
|
249
249
|
|
|
250
250
|
---
|
|
@@ -256,7 +256,7 @@ Experiments inactive >14 days → warning:
|
|
|
256
256
|
Show only active increments
|
|
257
257
|
|
|
258
258
|
```bash
|
|
259
|
-
/status --active
|
|
259
|
+
/specweave:status --active
|
|
260
260
|
|
|
261
261
|
🔥 Active (2):
|
|
262
262
|
🚨 0005-hotfix [hotfix] (90% done)
|
|
@@ -268,7 +268,7 @@ Show only active increments
|
|
|
268
268
|
Show only paused increments
|
|
269
269
|
|
|
270
270
|
```bash
|
|
271
|
-
/status --paused
|
|
271
|
+
/specweave:status --paused
|
|
272
272
|
|
|
273
273
|
⏸️ Paused (2):
|
|
274
274
|
🔄 0007-stripe [feature] (paused 3 days)
|
|
@@ -284,7 +284,7 @@ Show only paused increments
|
|
|
284
284
|
Show only completed increments
|
|
285
285
|
|
|
286
286
|
```bash
|
|
287
|
-
/status --completed
|
|
287
|
+
/specweave:status --completed
|
|
288
288
|
|
|
289
289
|
✅ Completed (5):
|
|
290
290
|
0001-core-framework (completed 30 days ago)
|
|
@@ -299,7 +299,7 @@ Show only completed increments
|
|
|
299
299
|
Show only abandoned increments
|
|
300
300
|
|
|
301
301
|
```bash
|
|
302
|
-
/status --abandoned
|
|
302
|
+
/specweave:status --abandoned
|
|
303
303
|
|
|
304
304
|
❌ Abandoned (3):
|
|
305
305
|
0008-old-approach (Requirements changed)
|
|
@@ -318,7 +318,7 @@ Show only abandoned increments
|
|
|
318
318
|
Show only stale increments (paused >7 days OR active >30 days)
|
|
319
319
|
|
|
320
320
|
```bash
|
|
321
|
-
/status --stale
|
|
321
|
+
/specweave:status --stale
|
|
322
322
|
|
|
323
323
|
⚠️ Stale Increments (3):
|
|
324
324
|
🔄 0007-stripe [feature] (paused 10 days)
|
|
@@ -365,7 +365,7 @@ Show only stale increments (paused >7 days OR active >30 days)
|
|
|
365
365
|
Future enhancement (v0.8.0+):
|
|
366
366
|
|
|
367
367
|
```bash
|
|
368
|
-
/status --analytics
|
|
368
|
+
/specweave:status --analytics
|
|
369
369
|
|
|
370
370
|
📊 Increment Analytics (Last 90 Days):
|
|
371
371
|
|
|
@@ -391,7 +391,7 @@ Recommendations:
|
|
|
391
391
|
|
|
392
392
|
---
|
|
393
393
|
|
|
394
|
-
**Command**: `/specweave:status`
|
|
394
|
+
**Command**: `/specweave:status`
|
|
395
395
|
**Plugin**: specweave (core)
|
|
396
396
|
**Version**: v0.7.0+
|
|
397
397
|
**Part of**: Increment 0007 - Smart Status Management
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: specweave:switch-project
|
|
3
|
+
description: Switch active project for increment planning. Future increments will use the selected project's specs, modules, and team folders.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Switch Active Project
|
|
7
|
+
|
|
8
|
+
Switch the active project. Future increments will use the selected project's specs folder.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
/specweave:switch-project <project-id>
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Examples
|
|
17
|
+
|
|
18
|
+
### Example 1: Switch to Specific Project
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
/specweave:switch-project web-app
|
|
22
|
+
|
|
23
|
+
# Result:
|
|
24
|
+
# ✅ Switched to project: Web Application (web-app)
|
|
25
|
+
# ℹ️ Future increments will use:
|
|
26
|
+
# - projects/web-app/specs/
|
|
27
|
+
# - projects/web-app/modules/
|
|
28
|
+
# - projects/web-app/team/
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Example 2: List Available Projects
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
/specweave:switch-project
|
|
35
|
+
|
|
36
|
+
# If no project ID provided, shows list of projects:
|
|
37
|
+
#
|
|
38
|
+
# 📋 Available Projects:
|
|
39
|
+
#
|
|
40
|
+
# default - Default Project
|
|
41
|
+
# Team: Engineering Team
|
|
42
|
+
#
|
|
43
|
+
# → web-app - Web Application
|
|
44
|
+
# Team: Frontend Team
|
|
45
|
+
# Tech: React, TypeScript, Node.js
|
|
46
|
+
#
|
|
47
|
+
# mobile-app - Mobile Application
|
|
48
|
+
# Team: Mobile Team
|
|
49
|
+
# Tech: React Native, Firebase
|
|
50
|
+
#
|
|
51
|
+
# Active project: web-app (→)
|
|
52
|
+
#
|
|
53
|
+
# Usage: /specweave:switch-project <project-id>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## What Happens
|
|
57
|
+
|
|
58
|
+
1. **Updates config** - Sets `multiProject.activeProject` in `.specweave/config.json`
|
|
59
|
+
2. **Clears cache** - Forces reload of project context
|
|
60
|
+
3. **Future operations** use new project:
|
|
61
|
+
- `/specweave:increment` creates specs in new project's `specs/` folder
|
|
62
|
+
- Module docs go to new project's `modules/` folder
|
|
63
|
+
- Team docs go to new project's `team/` folder
|
|
64
|
+
|
|
65
|
+
## Requirements
|
|
66
|
+
|
|
67
|
+
- Multi-project mode must be enabled
|
|
68
|
+
- Project ID must exist in config
|
|
69
|
+
|
|
70
|
+
## Error Cases
|
|
71
|
+
|
|
72
|
+
### Multi-Project Not Enabled
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
/specweave:switch-project web-app
|
|
76
|
+
|
|
77
|
+
# Error:
|
|
78
|
+
# ❌ Multi-project mode not enabled
|
|
79
|
+
# Run /specweave:init-multiproject first
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Project Not Found
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
/specweave:switch-project nonexistent
|
|
86
|
+
|
|
87
|
+
# Error:
|
|
88
|
+
# ❌ Project 'nonexistent' not found
|
|
89
|
+
# Available projects: default, web-app, mobile-app
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## Integration with Increments
|
|
93
|
+
|
|
94
|
+
When you create an increment, it uses the active project:
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
# Switch to web-app
|
|
98
|
+
/specweave:switch-project web-app
|
|
99
|
+
|
|
100
|
+
# Create increment
|
|
101
|
+
/specweave:increment "Add user authentication"
|
|
102
|
+
|
|
103
|
+
# Result:
|
|
104
|
+
# Spec created in: projects/web-app/specs/spec-001-user-auth.md
|
|
105
|
+
# Increment: .specweave/increments/0013-user-auth/
|
|
106
|
+
# Linked to project: web-app
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## Integration with External Sync
|
|
110
|
+
|
|
111
|
+
Each project can have its own sync profiles:
|
|
112
|
+
|
|
113
|
+
```json
|
|
114
|
+
{
|
|
115
|
+
"multiProject": {
|
|
116
|
+
"projects": [{
|
|
117
|
+
"id": "web-app",
|
|
118
|
+
"syncProfiles": ["web-app-github", "web-app-jira"]
|
|
119
|
+
}]
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
When you switch projects, the relevant sync profiles become active.
|
|
125
|
+
|
|
126
|
+
## Checking Current Project
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
# List all projects (shows active with →)
|
|
130
|
+
/specweave:switch-project
|
|
131
|
+
|
|
132
|
+
# Or check config directly
|
|
133
|
+
cat .specweave/config.json | grep activeProject
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## Use Cases
|
|
137
|
+
|
|
138
|
+
### Multi-Team Organization
|
|
139
|
+
```bash
|
|
140
|
+
# Morning: Work on web app
|
|
141
|
+
/specweave:switch-project web-app
|
|
142
|
+
/specweave:increment "Add payment integration"
|
|
143
|
+
|
|
144
|
+
# Afternoon: Work on mobile app
|
|
145
|
+
/specweave:switch-project mobile-app
|
|
146
|
+
/specweave:increment "Add push notifications"
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### Platform Engineering
|
|
150
|
+
```bash
|
|
151
|
+
# Manage infrastructure project
|
|
152
|
+
/specweave:switch-project platform-infra
|
|
153
|
+
/specweave:increment "Upgrade Kubernetes cluster"
|
|
154
|
+
|
|
155
|
+
# Then switch to application project
|
|
156
|
+
/specweave:switch-project backend-api
|
|
157
|
+
/specweave:increment "Add rate limiting"
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## See Also
|
|
161
|
+
|
|
162
|
+
- `/specweave:init-multiproject` - Enable multi-project mode
|
|
163
|
+
- `/specweave:increment` - Create increments (uses active project)
|
|
164
|
+
- [Multi-Project Guide](https://docs.spec-weave.com/guides/multi-project-setup)
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
**Implementation**: `src/cli/commands/switch-project.ts`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: sync-tasks
|
|
2
|
+
name: specweave:sync-tasks
|
|
3
3
|
description: Sync tasks.md with actual completion status (GitHub issue or reality check)
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -212,31 +212,31 @@ Progress recalculated:
|
|
|
212
212
|
|
|
213
213
|
✓ tasks.md synced successfully!
|
|
214
214
|
|
|
215
|
-
Next: Run /progress to verify
|
|
215
|
+
Next: Run /specweave:progress to verify
|
|
216
216
|
```
|
|
217
217
|
|
|
218
218
|
---
|
|
219
219
|
|
|
220
220
|
## Integration with Other Commands
|
|
221
221
|
|
|
222
|
-
### /progress
|
|
222
|
+
### /specweave:progress
|
|
223
223
|
```bash
|
|
224
224
|
# Check sync status before showing progress
|
|
225
|
-
/sync-tasks --validate
|
|
225
|
+
/specweave:sync-tasks --validate
|
|
226
226
|
# If out of sync, warn user
|
|
227
227
|
```
|
|
228
228
|
|
|
229
|
-
### /validate
|
|
229
|
+
### /specweave:validate
|
|
230
230
|
```bash
|
|
231
231
|
# Validate tasks.md is in sync
|
|
232
|
-
/sync-tasks --validate
|
|
232
|
+
/specweave:sync-tasks --validate
|
|
233
233
|
# Fail validation if mismatch detected
|
|
234
234
|
```
|
|
235
235
|
|
|
236
|
-
### /done
|
|
236
|
+
### /specweave:done
|
|
237
237
|
```bash
|
|
238
238
|
# Ensure tasks.md is current before closing
|
|
239
|
-
/sync-tasks --auto
|
|
239
|
+
/specweave:sync-tasks --auto
|
|
240
240
|
# Auto-sync if needed, then proceed
|
|
241
241
|
```
|
|
242
242
|
|
|
@@ -249,7 +249,7 @@ Next: Run /progress to verify
|
|
|
249
249
|
- ✅ Syncs from git history (fallback)
|
|
250
250
|
- ✅ Updates progress counters accurately
|
|
251
251
|
- ✅ Commits changes with clear message
|
|
252
|
-
- ✅ Integrates with /progress, /validate, /done
|
|
252
|
+
- ✅ Integrates with /specweave:progress, /specweave:validate, /specweave:done
|
|
253
253
|
|
|
254
254
|
---
|
|
255
255
|
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: specweave:tdd-cycle
|
|
3
|
+
description: Execute comprehensive TDD workflow with strict red-green-refactor discipline. Orchestrates test-first development with automated validation gates at each phase.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# TDD Cycle - Comprehensive Test-Driven Development
|
|
7
|
+
|
|
1
8
|
Execute a comprehensive Test-Driven Development (TDD) workflow with strict red-green-refactor discipline:
|
|
2
9
|
|
|
3
10
|
[Extended thinking: This workflow enforces test-first development through coordinated agent orchestration. Each phase of the TDD cycle is strictly enforced with fail-first verification, incremental implementation, and continuous refactoring. The workflow supports both single test and test suite approaches with configurable coverage thresholds.]
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: specweave:tdd-green
|
|
3
|
+
description: Implement minimal code to make failing tests pass in TDD green phase. Focuses on simplicity and making tests green without over-engineering.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# TDD Green Phase - Make Tests Pass
|
|
7
|
+
|
|
1
8
|
Implement minimal code to make failing tests pass in TDD green phase:
|
|
2
9
|
|
|
3
10
|
[Extended thinking: This tool uses the test-automator agent to implement the minimal code necessary to make tests pass. It focuses on simplicity, avoiding over-engineering while ensuring all tests become green.]
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: specweave:tdd-red
|
|
3
|
+
description: Write comprehensive failing tests following TDD red phase principles. Generates failing tests that properly define expected behavior.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# TDD Red Phase - Write Failing Tests
|
|
7
|
+
|
|
1
8
|
Write comprehensive failing tests following TDD red phase principles.
|
|
2
9
|
|
|
3
10
|
[Extended thinking: Generates failing tests that properly define expected behavior using test-automator agent.]
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: specweave:tdd-refactor
|
|
3
|
+
description: Refactor code with confidence using comprehensive test safety net. Applies design patterns, improves code quality, and optimizes performance while keeping all tests green.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# TDD Refactor Phase - Improve Code Quality
|
|
7
|
+
|
|
1
8
|
Refactor code with confidence using comprehensive test safety net:
|
|
2
9
|
|
|
3
10
|
[Extended thinking: This tool uses the tdd-orchestrator agent (opus model) for sophisticated refactoring while maintaining all tests green. It applies design patterns, improves code quality, and optimizes performance with the safety of comprehensive test coverage.]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: update-scope
|
|
2
|
+
name: specweave:update-scope
|
|
3
3
|
description: Update living completion report with scope changes during increment execution
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -50,13 +50,13 @@ Future: "Why was Task 5 removed?" → Check report, find exact reason
|
|
|
50
50
|
### Quick Log
|
|
51
51
|
|
|
52
52
|
```bash
|
|
53
|
-
/update-scope "Added dark mode toggle (stakeholder request from CMO, +16 hours)"
|
|
53
|
+
/specweave:update-scope "Added dark mode toggle (stakeholder request from CMO, +16 hours)"
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
### Detailed Log
|
|
57
57
|
|
|
58
58
|
```bash
|
|
59
|
-
/update-scope
|
|
59
|
+
/specweave:update-scope
|
|
60
60
|
# Interactive prompts:
|
|
61
61
|
# - What changed? (Added/Removed/Modified user story)
|
|
62
62
|
# - What specifically? (e.g., "US6: Dark mode toggle")
|
|
@@ -80,7 +80,7 @@ const active = await MetadataManager.getActive();
|
|
|
80
80
|
|
|
81
81
|
if (active.length === 0) {
|
|
82
82
|
console.error('❌ No active increment found');
|
|
83
|
-
console.error(' Run /status to check increment status');
|
|
83
|
+
console.error(' Run /specweave:status to check increment status');
|
|
84
84
|
process.exit(1);
|
|
85
85
|
}
|
|
86
86
|
|
|
@@ -107,7 +107,7 @@ const reportPath = `.specweave/increments/${increment}/reports/COMPLETION-REPORT
|
|
|
107
107
|
if (!fs.existsSync(reportPath)) {
|
|
108
108
|
console.error('❌ Completion report not found');
|
|
109
109
|
console.error(` Expected: ${reportPath}`);
|
|
110
|
-
console.error(' Run /
|
|
110
|
+
console.error(' Run /specweave:increment to create increment properly');
|
|
111
111
|
process.exit(1);
|
|
112
112
|
}
|
|
113
113
|
|
|
@@ -342,9 +342,9 @@ Always include:
|
|
|
342
342
|
|
|
343
343
|
## Related Commands
|
|
344
344
|
|
|
345
|
-
- `/
|
|
346
|
-
- `/done <id>` - Finalizes report and marks increment complete
|
|
347
|
-
- `/status` - Check which increment is active
|
|
345
|
+
- `/specweave:increment "feature"` - Creates increment with initial completion report
|
|
346
|
+
- `/specweave:done <id>` - Finalizes report and marks increment complete
|
|
347
|
+
- `/specweave:status` - Check which increment is active
|
|
348
348
|
|
|
349
349
|
---
|
|
350
350
|
|