specweave 0.1.7 → 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.
- package/README.md +31 -24
- package/SPECWEAVE.md +61 -59
- package/package.json +2 -2
- package/src/agents/pm/AGENT.md +286 -0
- package/src/commands/build.md +433 -0
- package/src/commands/done.md +544 -56
- package/src/commands/inc.md +85 -0
- package/src/commands/{validate-increment.md → validate.md} +1 -1
- package/src/commands/add-tasks.md +0 -176
- package/src/commands/at.md +0 -114
- package/src/commands/close-increment.md +0 -347
- package/src/commands/init.md +0 -123
- package/src/commands/ls.md +0 -100
- package/src/commands/pi.md +0 -65
- package/src/commands/si.md +0 -83
- package/src/commands/start-increment.md +0 -139
- package/src/commands/vi.md +0 -89
- /package/src/commands/{create-increment.md → increment.md} +0 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: inc
|
|
3
|
+
description: Shorthand for /increment - Plan new Product Increment (PM-led process)
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Plan Product Increment (Quick Alias)
|
|
7
|
+
|
|
8
|
+
**⚡ Quick Alias**: This is a shorthand for `/increment`.
|
|
9
|
+
|
|
10
|
+
This is the **most frequently used command** in SpecWeave's append-only increment workflow. Every new feature starts here.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Why This Alias Exists
|
|
15
|
+
|
|
16
|
+
In an append-only increment workflow:
|
|
17
|
+
- `/increment` is your starting point for ALL new work
|
|
18
|
+
- You'll use it dozens/hundreds of times
|
|
19
|
+
- Short alias saves time and mental overhead
|
|
20
|
+
- Other commands are used less frequently (no aliases needed)
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
/inc "feature description"
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
**Examples**:
|
|
31
|
+
```bash
|
|
32
|
+
/inc "User authentication with JWT"
|
|
33
|
+
/inc "Payment processing with Stripe"
|
|
34
|
+
/inc "Real-time notifications"
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## What This Does
|
|
40
|
+
|
|
41
|
+
Runs the full `/increment` command, which:
|
|
42
|
+
|
|
43
|
+
1. **Detects tech stack** (TypeScript, Python, Go, etc.)
|
|
44
|
+
2. **PM-led planning**:
|
|
45
|
+
- Market research
|
|
46
|
+
- Create spec.md (WHAT & WHY)
|
|
47
|
+
- Create plan.md (HOW)
|
|
48
|
+
- **Auto-generate tasks.md** from plan
|
|
49
|
+
- Create tests.md (test strategy)
|
|
50
|
+
3. **Strategic agent review**:
|
|
51
|
+
- Architect designs system
|
|
52
|
+
- Security reviews threats
|
|
53
|
+
- QA defines test strategy
|
|
54
|
+
- DevOps plans infrastructure
|
|
55
|
+
4. **User review checkpoint**
|
|
56
|
+
5. **Ready to build**: `/build 0001`
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Typical Workflow
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
# 1. Plan increment (most common command - use alias!)
|
|
64
|
+
/inc "User authentication"
|
|
65
|
+
|
|
66
|
+
# 2. Review generated docs
|
|
67
|
+
# spec.md, plan.md, tasks.md, tests.md
|
|
68
|
+
|
|
69
|
+
# 3. Build it
|
|
70
|
+
/build 0001
|
|
71
|
+
|
|
72
|
+
# 4. Validate quality (optional)
|
|
73
|
+
/validate 0001 --quality
|
|
74
|
+
|
|
75
|
+
# 5. Close when done
|
|
76
|
+
/done 0001
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
**💡 Pro Tip**: `/inc` is the ONLY aliased command. Use full names for others (`/build`, `/validate`, `/done`) to keep the workflow clear and explicit.
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
For complete documentation, see `/increment`.
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
# /add-tasks - Add Tasks to Existing Increment
|
|
2
|
-
|
|
3
|
-
**Command**: `/add-tasks <increment-id> <description> [options]`
|
|
4
|
-
|
|
5
|
-
**Purpose**: Add new tasks to an existing increment during implementation
|
|
6
|
-
|
|
7
|
-
**Framework**: Framework-agnostic (works with all tech stacks)
|
|
8
|
-
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
/add-tasks 001 "Fix error handling in context-loader"
|
|
15
|
-
/add-tasks 001 --priority P2 "Add caching to skill-router"
|
|
16
|
-
/add-tasks 001 "Multiple task lines..." --estimate "3 days"
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Arguments
|
|
20
|
-
|
|
21
|
-
- `<increment-id>` (required): Increment number (e.g., `001`, `002`)
|
|
22
|
-
- `<description>` (required): Task description
|
|
23
|
-
- `--priority` (optional): P1/P2/P3 (default: P2)
|
|
24
|
-
- `--estimate` (optional): Time estimate (default: detected from description)
|
|
25
|
-
|
|
26
|
-
---
|
|
27
|
-
|
|
28
|
-
## When to Use
|
|
29
|
-
|
|
30
|
-
**Add as task** ✅ when:
|
|
31
|
-
- Duration: Hours-Days
|
|
32
|
-
- Components affected: 1 agent/skill
|
|
33
|
-
- Discovered during implementation
|
|
34
|
-
- Examples: Bug fixes, small enhancements, error handling
|
|
35
|
-
|
|
36
|
-
**Create new increment** ❌ when:
|
|
37
|
-
- Duration: Weeks+
|
|
38
|
-
- Components affected: 2+ agents/skills
|
|
39
|
-
- Major new feature
|
|
40
|
-
- Use `/create-increment` instead
|
|
41
|
-
|
|
42
|
-
---
|
|
43
|
-
|
|
44
|
-
## Workflow
|
|
45
|
-
|
|
46
|
-
### Step 1: Validate Increment
|
|
47
|
-
|
|
48
|
-
```
|
|
49
|
-
Validating increment 001-core-framework...
|
|
50
|
-
|
|
51
|
-
→ Status: in-progress ✅ (can add tasks)
|
|
52
|
-
→ Current tasks: 50
|
|
53
|
-
→ Completed: 44 (88%)
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
**If increment not valid**:
|
|
57
|
-
```
|
|
58
|
-
❌ Cannot add tasks
|
|
59
|
-
|
|
60
|
-
Reason: Increment 001 status is "closed"
|
|
61
|
-
|
|
62
|
-
Options:
|
|
63
|
-
A) Create new increment (recommended)
|
|
64
|
-
B) Reopen 001 (if justified)
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
### Step 2: Auto-Increment Task ID
|
|
68
|
-
|
|
69
|
-
```
|
|
70
|
-
→ Scanning tasks.md for highest task ID...
|
|
71
|
-
→ Found: T050
|
|
72
|
-
→ New task ID: T051
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
### Step 3: Add to tasks.md
|
|
76
|
-
|
|
77
|
-
```markdown
|
|
78
|
-
## Additional Tasks (Added During Implementation)
|
|
79
|
-
|
|
80
|
-
### T051: Fix error handling in context-loader
|
|
81
|
-
**Added**: 2025-10-26
|
|
82
|
-
**Discovered**: During integration testing
|
|
83
|
-
**Priority**: P1
|
|
84
|
-
**Estimated**: 2 hours
|
|
85
|
-
**Status**: [ ] Pending
|
|
86
|
-
|
|
87
|
-
**Implementation**:
|
|
88
|
-
- Check if manifest file exists before parsing
|
|
89
|
-
- Return helpful error message with file path
|
|
90
|
-
- Log warning to .specweave/increments/0001-core-framework/logs/errors.log
|
|
91
|
-
|
|
92
|
-
**Acceptance Criteria**:
|
|
93
|
-
- [ ] Handles missing manifest gracefully
|
|
94
|
-
- [ ] Error message includes file path
|
|
95
|
-
- [ ] No crash when manifest not found
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
### Step 4: Update Frontmatter
|
|
99
|
-
|
|
100
|
-
Update `spec.md`:
|
|
101
|
-
|
|
102
|
-
```yaml
|
|
103
|
-
---
|
|
104
|
-
updated: 2025-10-26 # ← Current date
|
|
105
|
-
total_tasks: 51 # ← Incremented
|
|
106
|
-
completed_tasks: 44 # ← Unchanged
|
|
107
|
-
completion_rate: 86 # ← Recalculated (44/51)
|
|
108
|
-
---
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
### Step 5: Confirm
|
|
112
|
-
|
|
113
|
-
```
|
|
114
|
-
✅ Task added successfully
|
|
115
|
-
|
|
116
|
-
Summary:
|
|
117
|
-
→ Task ID: T051
|
|
118
|
-
→ Description: Fix error handling in context-loader
|
|
119
|
-
→ Priority: P1
|
|
120
|
-
→ Increment: 001-core-framework
|
|
121
|
-
→ Total tasks: 51 (was 50)
|
|
122
|
-
→ Completion rate: 86% (was 88%)
|
|
123
|
-
|
|
124
|
-
File: .specweave/increments/0001-core-framework/tasks.md
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
---
|
|
128
|
-
|
|
129
|
-
## Examples
|
|
130
|
-
|
|
131
|
-
### Example 1: Bug Fix
|
|
132
|
-
|
|
133
|
-
```bash
|
|
134
|
-
/add-tasks 001 "Fix null pointer in skill-router when no skills installed"
|
|
135
|
-
|
|
136
|
-
# Result:
|
|
137
|
-
→ Task T052: Fix null pointer in skill-router
|
|
138
|
-
→ Priority: P1 (critical bug)
|
|
139
|
-
→ Estimated: 1 hour
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
### Example 2: Enhancement
|
|
143
|
-
|
|
144
|
-
```bash
|
|
145
|
-
/add-tasks 001 --priority P2 "Add caching to context-loader for better performance"
|
|
146
|
-
|
|
147
|
-
# Result:
|
|
148
|
-
→ Task T053: Add caching to context-loader
|
|
149
|
-
→ Priority: P2 (enhancement)
|
|
150
|
-
→ Estimated: 1 day
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
### Example 3: Multiple Tasks
|
|
154
|
-
|
|
155
|
-
```bash
|
|
156
|
-
/add-tasks 001 "Add error handling, logging, and validation to hetzner-provisioner"
|
|
157
|
-
|
|
158
|
-
# Result:
|
|
159
|
-
→ Task T054: Add error handling to hetzner-provisioner
|
|
160
|
-
→ Task T055: Add logging to hetzner-provisioner
|
|
161
|
-
→ Task T056: Add validation to hetzner-provisioner
|
|
162
|
-
→ Priority: P2 (improvements)
|
|
163
|
-
```
|
|
164
|
-
|
|
165
|
-
---
|
|
166
|
-
|
|
167
|
-
## Related Documentation
|
|
168
|
-
|
|
169
|
-
- [CLAUDE.md](../../CLAUDE.md#adding-tasks-to-current-increment) - Task addition guide
|
|
170
|
-
- [INCREMENT-LIFECYCLE-DESIGN.md](../../.specweave/increments/0001-core-framework/reports/INCREMENT-LIFECYCLE-DESIGN.md) - Lifecycle design
|
|
171
|
-
|
|
172
|
-
---
|
|
173
|
-
|
|
174
|
-
**Command Type**: Task management
|
|
175
|
-
**Framework Support**: All
|
|
176
|
-
**Impact**: Adds tasks to existing increment, updates completion rate
|
package/src/commands/at.md
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: 🔥 Shorthand for /add-tasks - Add tasks to increment (Alias)
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Add Tasks (Short Alias)
|
|
6
|
-
|
|
7
|
-
**⚡ Quick Alias**: This is a shorthand command for `/add-tasks`.
|
|
8
|
-
|
|
9
|
-
Use this when you want to quickly add tasks to an increment without typing the full command name.
|
|
10
|
-
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
## Full Command
|
|
14
|
-
|
|
15
|
-
For complete documentation, see `/add-tasks`.
|
|
16
|
-
|
|
17
|
-
This alias provides the exact same functionality as the full command.
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
## Usage
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
/at <increment-id> <task-description>
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
**Examples**:
|
|
28
|
-
```bash
|
|
29
|
-
/at 0001 "Implement login endpoint"
|
|
30
|
-
/at 0001 "Add password validation"
|
|
31
|
-
/at 0001 "Write E2E tests for auth flow"
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
---
|
|
35
|
-
|
|
36
|
-
## What This Does
|
|
37
|
-
|
|
38
|
-
1. **Analyzes task** against spec/plan
|
|
39
|
-
2. **Determines priority** (P1, P2, P3)
|
|
40
|
-
3. **Estimates effort** (based on complexity)
|
|
41
|
-
4. **Identifies dependencies** (from existing tasks)
|
|
42
|
-
5. **Adds to tasks.md** with proper formatting
|
|
43
|
-
6. **Updates progress** percentage
|
|
44
|
-
|
|
45
|
-
---
|
|
46
|
-
|
|
47
|
-
## Task Format
|
|
48
|
-
|
|
49
|
-
Tasks are added with:
|
|
50
|
-
- ✅ **Task ID** (auto-numbered: T001, T002, ...)
|
|
51
|
-
- ✅ **Description** (clear, actionable)
|
|
52
|
-
- ✅ **Priority** (P1/P2/P3)
|
|
53
|
-
- ✅ **Estimated time** (based on analysis)
|
|
54
|
-
- ✅ **Dependencies** (if any)
|
|
55
|
-
- ✅ **Status** (Pending by default)
|
|
56
|
-
|
|
57
|
-
**Example Output**:
|
|
58
|
-
```markdown
|
|
59
|
-
### T012: Implement login endpoint
|
|
60
|
-
**Priority**: P1
|
|
61
|
-
**Estimated**: 2 hours
|
|
62
|
-
**Depends on**: T008
|
|
63
|
-
**Status**: [ ] Pending
|
|
64
|
-
|
|
65
|
-
**Implementation**:
|
|
66
|
-
- Create POST /api/auth/login endpoint
|
|
67
|
-
- Validate email and password
|
|
68
|
-
- Return JWT token on success
|
|
69
|
-
- Handle rate limiting
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
---
|
|
73
|
-
|
|
74
|
-
## Bulk Add
|
|
75
|
-
|
|
76
|
-
You can add multiple tasks by calling the command multiple times or providing a list:
|
|
77
|
-
|
|
78
|
-
```bash
|
|
79
|
-
/at 0001 "Task 1"
|
|
80
|
-
/at 0001 "Task 2"
|
|
81
|
-
/at 0001 "Task 3"
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
---
|
|
85
|
-
|
|
86
|
-
## When to Add Tasks
|
|
87
|
-
|
|
88
|
-
**During planning**:
|
|
89
|
-
- Breaking down large features
|
|
90
|
-
- After spec/plan review
|
|
91
|
-
|
|
92
|
-
**During implementation**:
|
|
93
|
-
- Discovered new requirements
|
|
94
|
-
- Technical debt identified
|
|
95
|
-
- Bug fixes needed
|
|
96
|
-
|
|
97
|
-
**After review**:
|
|
98
|
-
- Feedback from code review
|
|
99
|
-
- QA findings
|
|
100
|
-
- Security audit results
|
|
101
|
-
|
|
102
|
-
---
|
|
103
|
-
|
|
104
|
-
## Other Useful Aliases
|
|
105
|
-
|
|
106
|
-
- `/ci` - Create increment (shorthand for `/create-increment`)
|
|
107
|
-
- `/si` - Start increment (shorthand for `/start-increment`)
|
|
108
|
-
- `/vi` - Validate increment (shorthand for `/validate-increment`)
|
|
109
|
-
- `/done` - Close increment (shorthand for `/close-increment`)
|
|
110
|
-
- `/ls` - List increments (shorthand for `/list-increments`)
|
|
111
|
-
|
|
112
|
-
---
|
|
113
|
-
|
|
114
|
-
**💡 Tip**: Add tasks as you discover them - don't wait until sprint planning!
|