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,18 +1,16 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: validate
|
|
2
|
+
name: specweave:validate
|
|
3
3
|
description: Validate SpecWeave increment with rule-based checks and optional AI quality assessment
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Validate Increment
|
|
7
7
|
|
|
8
|
-
**⚡ Convenient Short Form**: Use `/validate` for quick access, or `/specweave:validate` for explicit namespace.
|
|
9
|
-
|
|
10
8
|
You are helping the user validate a SpecWeave increment with optional AI-powered quality assessment.
|
|
11
9
|
|
|
12
10
|
## Usage
|
|
13
11
|
|
|
14
12
|
```bash
|
|
15
|
-
/validate
|
|
13
|
+
/specweave:validate <increment-id> [--quality] [--export] [--fix] [--always]
|
|
16
14
|
```
|
|
17
15
|
|
|
18
16
|
## Arguments
|
|
@@ -30,7 +28,7 @@ You are helping the user validate a SpecWeave increment with optional AI-powered
|
|
|
30
28
|
### Step 1: Parse and Validate Arguments
|
|
31
29
|
|
|
32
30
|
1. **Extract increment ID**:
|
|
33
|
-
- Parse from command: `/validate
|
|
31
|
+
- Parse from command: `/specweave:validate 001` → "001"
|
|
34
32
|
- Normalize to 4-digit format: "0001"
|
|
35
33
|
- Support formats: "1", "01", "001", "0001"
|
|
36
34
|
|
|
@@ -54,7 +52,7 @@ Available increments:
|
|
|
54
52
|
• 0003-payment-processing
|
|
55
53
|
• 0004-reporting-dashboard
|
|
56
54
|
|
|
57
|
-
Usage: /validate-increment <id> [--quality] [--export] [--fix] [--always]
|
|
55
|
+
Usage: /specweave:validate-increment <id> [--quality] [--export] [--fix] [--always]
|
|
58
56
|
```
|
|
59
57
|
|
|
60
58
|
### Step 2: Run Rule-Based Validation (Always)
|
|
@@ -438,7 +436,7 @@ To disable:
|
|
|
438
436
|
1. Initialize your project
|
|
439
437
|
2. Set validation.quality_judge.always_run: false
|
|
440
438
|
|
|
441
|
-
Or run: /validate-increment <id> (quality will run automatically)
|
|
439
|
+
Or run: /specweave:validate-increment <id> (quality will run automatically)
|
|
442
440
|
```
|
|
443
441
|
|
|
444
442
|
### Step 8: Generate Validation Report
|
|
@@ -451,7 +449,7 @@ Or run: /validate-increment <id> (quality will run automatically)
|
|
|
451
449
|
# Validation Report: Increment 0001-authentication
|
|
452
450
|
|
|
453
451
|
Generated: 2025-10-28 14:32:15 UTC
|
|
454
|
-
Command: /validate-increment 001 --quality
|
|
452
|
+
Command: /specweave:validate-increment 001 --quality
|
|
455
453
|
|
|
456
454
|
## Executive Summary
|
|
457
455
|
|
|
@@ -554,7 +552,7 @@ Command: /validate-increment 001 --quality
|
|
|
554
552
|
|
|
555
553
|
| Date | Rule-Based | Quality Score | Command |
|
|
556
554
|
|------|------------|---------------|---------|
|
|
557
|
-
| 2025-10-28 | 120/120 | 87/100 | /validate-increment 001 --quality |
|
|
555
|
+
| 2025-10-28 | 120/120 | 87/100 | /specweave:validate-increment 001 --quality |
|
|
558
556
|
| 2025-10-25 | 115/120 | N/A | Auto-validation on save |
|
|
559
557
|
| 2025-10-24 | 110/120 | N/A | Auto-validation on save |
|
|
560
558
|
|
|
@@ -575,7 +573,7 @@ For details: .specweave/docs/internal/delivery/guides/increment-validation.md
|
|
|
575
573
|
### Example 1: Basic Validation (Rule-Based Only)
|
|
576
574
|
|
|
577
575
|
```bash
|
|
578
|
-
/validate
|
|
576
|
+
/specweave:validate 001
|
|
579
577
|
```
|
|
580
578
|
|
|
581
579
|
**Output**:
|
|
@@ -588,7 +586,7 @@ For details: .specweave/docs/internal/delivery/guides/increment-validation.md
|
|
|
588
586
|
### Example 2: Validation with Quality Assessment
|
|
589
587
|
|
|
590
588
|
```bash
|
|
591
|
-
/validate
|
|
589
|
+
/specweave:validate 001 --quality
|
|
592
590
|
```
|
|
593
591
|
|
|
594
592
|
**Output**:
|
|
@@ -605,7 +603,7 @@ Suggestions: 3 (2 high, 1 medium)
|
|
|
605
603
|
### Example 3: Validate and Export Suggestions
|
|
606
604
|
|
|
607
605
|
```bash
|
|
608
|
-
/validate
|
|
606
|
+
/specweave:validate 001 --quality --export
|
|
609
607
|
```
|
|
610
608
|
|
|
611
609
|
**Output**:
|
|
@@ -622,7 +620,7 @@ Suggestions: 3 (2 high, 1 medium)
|
|
|
622
620
|
### Example 4: Auto-Fix Issues
|
|
623
621
|
|
|
624
622
|
```bash
|
|
625
|
-
/validate
|
|
623
|
+
/specweave:validate 001 --quality --fix
|
|
626
624
|
```
|
|
627
625
|
|
|
628
626
|
**Output**:
|
|
@@ -643,7 +641,7 @@ Re-validated: 92/100 (improvement: +5)
|
|
|
643
641
|
### Example 5: Make Quality Assessment Default
|
|
644
642
|
|
|
645
643
|
```bash
|
|
646
|
-
/validate
|
|
644
|
+
/specweave:validate 001 --always
|
|
647
645
|
```
|
|
648
646
|
|
|
649
647
|
**Output**:
|
|
@@ -665,7 +663,7 @@ Available increments:
|
|
|
665
663
|
• 0002-core-enhancements
|
|
666
664
|
• 0003-payment-processing
|
|
667
665
|
|
|
668
|
-
Usage: /validate-increment <id> [--quality] [--export] [--fix] [--always]
|
|
666
|
+
Usage: /specweave:validate-increment <id> [--quality] [--export] [--fix] [--always]
|
|
669
667
|
```
|
|
670
668
|
|
|
671
669
|
### Invalid Flags
|
|
@@ -678,7 +676,7 @@ Valid flags:
|
|
|
678
676
|
--fix Auto-fix issues (experimental)
|
|
679
677
|
--always Make quality assessment default
|
|
680
678
|
|
|
681
|
-
Usage: /validate-increment <id> [--quality] [--export] [--fix] [--always]
|
|
679
|
+
Usage: /specweave:validate-increment <id> [--quality] [--export] [--fix] [--always]
|
|
682
680
|
```
|
|
683
681
|
|
|
684
682
|
### Quality Assessment Failed
|
|
@@ -688,7 +686,7 @@ Usage: /validate-increment <id> [--quality] [--export] [--fix] [--always]
|
|
|
688
686
|
✅ Rule-based validation completed successfully (120/120)
|
|
689
687
|
|
|
690
688
|
You can:
|
|
691
|
-
1. Try again: /validate-increment 001 --quality
|
|
689
|
+
1. Try again: /specweave:validate-increment 001 --quality
|
|
692
690
|
2. Continue with rule-based results
|
|
693
691
|
3. Check logs: .specweave/increments/0001-name/logs/validation.log
|
|
694
692
|
```
|
|
@@ -709,7 +707,7 @@ Export suggestions to tasks? [Y/n]: _
|
|
|
709
707
|
|
|
710
708
|
This command can be triggered by:
|
|
711
709
|
|
|
712
|
-
1. **Manual execution**: `/validate
|
|
710
|
+
1. **Manual execution**: `/specweave:validate 001 --quality`
|
|
713
711
|
2. **Post-document-save hook**: Auto-runs rule-based validation
|
|
714
712
|
3. **Pre-implementation hook**: Validates before starting tasks
|
|
715
713
|
4. **CI/CD pipeline**: Automated validation in GitHub Actions
|
|
@@ -724,7 +722,7 @@ if [[ "$FILE" =~ spec\.md|plan\.md|tasks\.md|tests\.md ]]; then
|
|
|
724
722
|
INCREMENT_ID=$(echo "$FILE" | grep -oP '(?<=increments/)\d{4}')
|
|
725
723
|
|
|
726
724
|
# Run validation (rule-based only, no quality unless config says so)
|
|
727
|
-
/validate-increment "$INCREMENT_ID"
|
|
725
|
+
/specweave:validate-increment "$INCREMENT_ID"
|
|
728
726
|
fi
|
|
729
727
|
```
|
|
730
728
|
|
|
@@ -749,6 +747,6 @@ All validation settings use sensible defaults. Quality assessment is prompted ea
|
|
|
749
747
|
|
|
750
748
|
**Important**: This command works alongside intent-based validation. Users can say:
|
|
751
749
|
- "Validate quality of increment 001" (intent-based)
|
|
752
|
-
- `/validate
|
|
750
|
+
- `/specweave:validate 001 --quality` (slash command)
|
|
753
751
|
|
|
754
752
|
Both routes activate the same validation logic for consistency.
|
|
@@ -295,11 +295,11 @@ swnext # Instead of /specweave next
|
|
|
295
295
|
```yaml
|
|
296
296
|
# .claude/config.yaml
|
|
297
297
|
command_aliases:
|
|
298
|
-
/
|
|
299
|
-
/do: /specweave do
|
|
300
|
-
/next: /specweave next
|
|
301
|
-
/done: /specweave done
|
|
302
|
-
/progress: /specweave progress
|
|
298
|
+
/specweave:increment: /specweave inc
|
|
299
|
+
/specweave:do: /specweave do
|
|
300
|
+
/specweave:next: /specweave next
|
|
301
|
+
/specweave:done: /specweave done
|
|
302
|
+
/specweave:progress: /specweave progress
|
|
303
303
|
```
|
|
304
304
|
|
|
305
305
|
**Usage**:
|
|
@@ -77,7 +77,7 @@ Step 4: Execute → Follow the increment planning workflow
|
|
|
77
77
|
|
|
78
78
|
#### specweave-detector
|
|
79
79
|
|
|
80
|
-
**Description**: Detects SpecWeave context (.specweave/ directory exists) and provides workflow documentation. v0.3.8+ features PROACTIVE auto-detection - when in SpecWeave folder, product descriptions automatically trigger increment planning. Explicit slash commands still work (/
|
|
80
|
+
**Description**: Detects SpecWeave context (.specweave/ directory exists) and provides workflow documentation. v0.3.8+ features PROACTIVE auto-detection - when in SpecWeave folder, product descriptions automatically trigger increment planning. Explicit slash commands still work (/specweave:increment, /specweave:do, /specweave:progress, /specweave:validate, /specweave:done, /specweave:sync-docs, /sync-github). Keywords slash commands, specweave commands, smart workflow, auto-detection, specweave folder.
|
|
81
81
|
|
|
82
82
|
**Location**: `.claude/skills/specweave-detector/SKILL.md`
|
|
83
83
|
|
|
@@ -33,6 +33,7 @@ The increment-planner skill automates the creation of implementation plans for A
|
|
|
33
33
|
- Constitutional compliance
|
|
34
34
|
- Separation of WHAT/WHY (spec) from HOW (plan) from STEPS (tasks with test plans)
|
|
35
35
|
- **v0.7.0+**: Test-Aware Planning (bidirectional AC↔Task↔Test linking)
|
|
36
|
+
- **v0.8.0+**: Multi-Project Support (specs organized by project/team)
|
|
36
37
|
|
|
37
38
|
## Increment Types (v0.7.0+)
|
|
38
39
|
|
|
@@ -84,6 +85,34 @@ This skill activates automatically when users say:
|
|
|
84
85
|
|
|
85
86
|
---
|
|
86
87
|
|
|
88
|
+
## 🆕 Multi-Project Support (v0.8.0+)
|
|
89
|
+
|
|
90
|
+
**Key Changes**:
|
|
91
|
+
- Specs are now organized by project: `.specweave/docs/internal/projects/{project-id}/specs/`
|
|
92
|
+
- Use `ProjectManager` (from `src/core/project-manager.ts`) to get correct paths
|
|
93
|
+
- Single project uses `projects/default/` automatically (transparent)
|
|
94
|
+
- Multi-project mode allows multiple teams/repos
|
|
95
|
+
|
|
96
|
+
**Path Resolution**:
|
|
97
|
+
```typescript
|
|
98
|
+
import { ProjectManager } from '../../core/project-manager';
|
|
99
|
+
|
|
100
|
+
const projectManager = new ProjectManager(projectRoot);
|
|
101
|
+
const activeProject = projectManager.getActiveProject();
|
|
102
|
+
|
|
103
|
+
// Get correct paths for active project
|
|
104
|
+
const specsPath = projectManager.getSpecsPath(); // projects/{activeProject.id}/specs/
|
|
105
|
+
const modulesPath = projectManager.getModulesPath(); // projects/{activeProject.id}/modules/
|
|
106
|
+
const teamPath = projectManager.getTeamPath(); // projects/{activeProject.id}/team/
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
**In PM Agent Instructions**:
|
|
110
|
+
- DO NOT hardcode `.specweave/docs/internal/specs/`
|
|
111
|
+
- USE ProjectManager to get correct path for active project
|
|
112
|
+
- Specs go to: `{projectManager.getSpecsPath()}/spec-{number}-{name}.md`
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
87
116
|
## ⚠️ CRITICAL: Living Documentation Workflow
|
|
88
117
|
|
|
89
118
|
**MANDATORY**: Feature planner must orchestrate **BOTH** living docs and increment files.
|
|
@@ -114,7 +143,9 @@ Task(
|
|
|
114
143
|
You MUST create living Spec (living docs - source of truth) AND optionally create increment spec.md:
|
|
115
144
|
|
|
116
145
|
1. Spec (living docs - SOURCE OF TRUTH, permanent):
|
|
117
|
-
-
|
|
146
|
+
- IMPORTANT: Use ProjectManager to get correct path for active project
|
|
147
|
+
- Create at: {projectManager.getSpecsPath()}/spec-{number}-{name}.md
|
|
148
|
+
(This resolves to projects/{activeProject}/specs/ automatically)
|
|
118
149
|
- This is the COMPLETE, PERMANENT source of truth
|
|
119
150
|
- Include ALL of:
|
|
120
151
|
* User stories (US-001, US-002, etc.) with full details
|
|
@@ -236,12 +267,17 @@ STEP 5: Validate Living Docs and Increment Files
|
|
|
236
267
|
|
|
237
268
|
#### Living Spec (Living Docs - Source of Truth) ✅
|
|
238
269
|
```
|
|
239
|
-
.specweave/docs/internal/specs/
|
|
240
|
-
└── spec-{number}-{name}
|
|
241
|
-
|
|
270
|
+
.specweave/docs/internal/projects/{project-id}/specs/ # ← Multi-project (v0.8.0+)
|
|
271
|
+
└── spec-{number}-{name}.md # ← PM Agent (MANDATORY)
|
|
272
|
+
# COMPLETE user stories, AC, requirements
|
|
242
273
|
# This is the PERMANENT source of truth
|
|
243
274
|
# Can be linked to Jira/ADO/GitHub Issues
|
|
244
275
|
# Persists after increment completes
|
|
276
|
+
|
|
277
|
+
# Examples:
|
|
278
|
+
# Single project: projects/default/specs/spec-001-user-auth.md
|
|
279
|
+
# Multi-project: projects/web-app/specs/spec-001-user-auth.md
|
|
280
|
+
# projects/mobile/specs/spec-001-push-notifications.md
|
|
245
281
|
```
|
|
246
282
|
|
|
247
283
|
#### Strategy Docs (Optional, High-Level) ⚠️
|
|
@@ -25,7 +25,7 @@ Provide nuanced quality assessment of SpecWeave artifacts (spec.md, plan.md, tes
|
|
|
25
25
|
|
|
26
26
|
**Triggered by:**
|
|
27
27
|
- Natural language: "validate quality of increment 0001", "quality check", "assess spec"
|
|
28
|
-
- Slash command: `/validate
|
|
28
|
+
- Slash command: `/specweave:validate 0001 --quality` (supports --export, --fix, --always flags)
|
|
29
29
|
- Manual invocation when reviewing docs
|
|
30
30
|
|
|
31
31
|
## What It Does
|
|
@@ -116,7 +116,7 @@ interface Suggestion {
|
|
|
116
116
|
### 3. Interactive Workflow
|
|
117
117
|
|
|
118
118
|
```bash
|
|
119
|
-
/validate
|
|
119
|
+
/specweave:validate 001
|
|
120
120
|
|
|
121
121
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
122
122
|
VALIDATION RESULTS: Increment 0001-authentication
|
|
@@ -352,7 +352,7 @@ if (confidence < 0.80) {
|
|
|
352
352
|
### Current: Rule-Based Only
|
|
353
353
|
|
|
354
354
|
```
|
|
355
|
-
User: /validate-increment 001
|
|
355
|
+
User: /specweave:validate-increment 001
|
|
356
356
|
↓
|
|
357
357
|
Run 120 rule-based checks
|
|
358
358
|
↓
|
|
@@ -362,7 +362,7 @@ Show results: ✅ PASSED or ❌ FAILED
|
|
|
362
362
|
### With Quality Judge (Interactive)
|
|
363
363
|
|
|
364
364
|
```
|
|
365
|
-
User: /validate-increment 001
|
|
365
|
+
User: /specweave:validate-increment 001
|
|
366
366
|
↓
|
|
367
367
|
Run 120 rule-based checks
|
|
368
368
|
↓
|
|
@@ -380,7 +380,7 @@ Prompt: "Export suggestions to tasks? [Y/n]"
|
|
|
380
380
|
### With Quality Judge (Always-On)
|
|
381
381
|
|
|
382
382
|
```
|
|
383
|
-
User: /validate-increment 001
|
|
383
|
+
User: /specweave:validate-increment 001
|
|
384
384
|
↓
|
|
385
385
|
Run in parallel:
|
|
386
386
|
• Rule-based checks (120 rules)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: increment-quality-judge-v2
|
|
3
|
-
description: Enhanced AI-powered quality assessment with RISK SCORING (BMAD pattern) and quality gate decisions. Evaluates specifications, plans, and tests for clarity, testability, completeness, feasibility, maintainability, edge cases, and RISKS. Provides PASS/CONCERNS/FAIL decisions. Activates for validate quality, quality check, assess spec, evaluate increment, spec review, quality score, risk assessment, qa check, quality gate, /qa command.
|
|
3
|
+
description: Enhanced AI-powered quality assessment with RISK SCORING (BMAD pattern) and quality gate decisions. Evaluates specifications, plans, and tests for clarity, testability, completeness, feasibility, maintainability, edge cases, and RISKS. Provides PASS/CONCERNS/FAIL decisions. Activates for validate quality, quality check, assess spec, evaluate increment, spec review, quality score, risk assessment, qa check, quality gate, /specweave:qa command.
|
|
4
4
|
allowed-tools: Read, Grep, Glob
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -303,7 +303,7 @@ Would you like to:
|
|
|
303
303
|
### Quick Mode (Default)
|
|
304
304
|
|
|
305
305
|
```
|
|
306
|
-
User: /qa 0001
|
|
306
|
+
User: /specweave:qa 0001
|
|
307
307
|
|
|
308
308
|
Step 1: Rule-based validation (120 checks) - FREE, FAST
|
|
309
309
|
├── If FAILED → Stop, show errors
|
|
@@ -320,7 +320,7 @@ Output: Enhanced report with risks and gate decision
|
|
|
320
320
|
### Pre-Implementation Mode
|
|
321
321
|
|
|
322
322
|
```
|
|
323
|
-
User: /qa 0001 --pre
|
|
323
|
+
User: /specweave:qa 0001 --pre
|
|
324
324
|
|
|
325
325
|
Checks:
|
|
326
326
|
✅ Spec quality (clarity, testability, completeness)
|
|
@@ -334,7 +334,7 @@ Gate decision before implementation starts
|
|
|
334
334
|
### Quality Gate Mode
|
|
335
335
|
|
|
336
336
|
```
|
|
337
|
-
User: /qa 0001 --gate
|
|
337
|
+
User: /specweave:qa 0001 --gate
|
|
338
338
|
|
|
339
339
|
Comprehensive checks:
|
|
340
340
|
✅ All pre-implementation checks
|
|
@@ -496,4 +496,4 @@ gate_decision = decide({
|
|
|
496
496
|
|
|
497
497
|
**Version**: 2.0.0
|
|
498
498
|
**Since**: v0.8.0
|
|
499
|
-
**Related**: /qa command, QAOrchestrator agent (v0.9.0)
|
|
499
|
+
**Related**: /specweave:qa command, QAOrchestrator agent (v0.9.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: specweave-detector
|
|
3
|
-
description: Detects SpecWeave context (.specweave/ directory exists) and provides workflow documentation. v0.3.8+ features PROACTIVE auto-detection - when in SpecWeave folder, product descriptions automatically trigger increment planning. Explicit slash commands still work (/inc, /do, /progress, /validate, /done, /specweave:sync-docs, /sync-github). Keywords slash commands, /
|
|
3
|
+
description: Detects SpecWeave context (.specweave/ directory exists) and provides workflow documentation. v0.3.8+ features PROACTIVE auto-detection - when in SpecWeave folder, product descriptions automatically trigger increment planning. Explicit slash commands still work (/inc, /specweave:do, /specweave:progress, /specweave:validate, /specweave:done, /specweave:sync-docs, /sync-github). Keywords slash commands, /specweave:increment, /increment, /specweave:do, /specweave:progress, /specweave:validate, /specweave:done, specweave commands, smart workflow, auto-detection, specweave folder.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# SpecWeave - Smart Workflow with Auto-Detection
|
|
@@ -86,7 +86,7 @@ npx specweave init my-saas
|
|
|
86
86
|
/do
|
|
87
87
|
# Auto-finds active increment 0002
|
|
88
88
|
|
|
89
|
-
# Repeat: /
|
|
89
|
+
# Repeat: /specweave:increment → /specweave:do → /specweave:progress → /specweave:increment (auto-closes) → /specweave:do...
|
|
90
90
|
```
|
|
91
91
|
|
|
92
92
|
## Command Details
|
|
@@ -329,7 +329,7 @@ User: "What SpecWeave commands are available?"
|
|
|
329
329
|
**Command syntax**:
|
|
330
330
|
```
|
|
331
331
|
User: "How do I create a new increment?"
|
|
332
|
-
→ Claude explains /
|
|
332
|
+
→ Claude explains /specweave:increment command with examples
|
|
333
333
|
```
|
|
334
334
|
|
|
335
335
|
## Documentation
|