@wrongstack/core 0.6.5 → 0.6.6
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/dist/defaults/index.d.ts +2 -2
- package/dist/defaults/index.js +36 -0
- package/dist/defaults/index.js.map +1 -1
- package/dist/execution/index.d.ts +36 -2
- package/dist/execution/index.js +15 -0
- package/dist/execution/index.js.map +1 -1
- package/dist/{goal-store-_Er467ya.d.ts → goal-store-HHgaq5ue.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +39 -4
- package/dist/index.js.map +1 -1
- package/dist/sdd/index.d.ts +6 -1
- package/dist/sdd/index.js +21 -0
- package/dist/sdd/index.js.map +1 -1
- package/dist/storage/index.d.ts +1 -1
- package/dist/storage/index.js +2 -1
- package/dist/storage/index.js.map +1 -1
- package/dist/{task-graph-BITvWt4t.d.ts → task-graph-D1YQbpxF.d.ts} +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/sdd/SKILL.md +122 -106
package/package.json
CHANGED
package/skills/sdd/SKILL.md
CHANGED
|
@@ -1,107 +1,123 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: sdd
|
|
3
|
-
description: |
|
|
4
|
-
Use this skill when starting a non-trivial implementation, bug fix, or refactor
|
|
5
|
-
in WrongStack. Triggers: user says "/sdd", "spec", "specification", "task graph",
|
|
6
|
-
"SDD", "acceptance criteria", or starts a new feature.
|
|
7
|
-
version: 2.1.0
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
# Spec-Driven Development — WrongStack
|
|
11
|
-
|
|
12
|
-
Every non-trivial change starts with a spec. The spec is the source of truth.
|
|
13
|
-
|
|
14
|
-
## When to use
|
|
15
|
-
|
|
16
|
-
- New feature implementation
|
|
17
|
-
- Bug fix with complexity
|
|
18
|
-
- Refactoring with scope
|
|
19
|
-
- Any task requiring more than 1 hour
|
|
20
|
-
|
|
21
|
-
## The SDD workflow
|
|
22
|
-
|
|
23
|
-
```
|
|
24
|
-
1. /sdd new [title] → Build spec from questions
|
|
25
|
-
2. /sdd tasks <id> → Generate task graph from spec
|
|
26
|
-
3. /sdd graph <id> → Visualize dependencies
|
|
27
|
-
4. /sdd critical <id> → Find bottlenecks
|
|
28
|
-
5. /sdd execute <id> → Run tasks (or execute manually)
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
##
|
|
32
|
-
|
|
33
|
-
| Command | What it does |
|
|
34
|
-
|---------|--------------|
|
|
35
|
-
| `/sdd
|
|
36
|
-
| `/sdd
|
|
37
|
-
| `/sdd
|
|
38
|
-
| `/sdd
|
|
39
|
-
| `/sdd
|
|
40
|
-
| `/sdd
|
|
41
|
-
| `/sdd
|
|
42
|
-
| `/sdd
|
|
43
|
-
| `/sdd
|
|
44
|
-
| `/sdd
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
| `
|
|
52
|
-
| `
|
|
53
|
-
| `
|
|
54
|
-
| `
|
|
55
|
-
| `
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
[
|
|
71
|
-
[
|
|
72
|
-
[
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
- **
|
|
91
|
-
- **
|
|
92
|
-
- **
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
1
|
+
---
|
|
2
|
+
name: sdd
|
|
3
|
+
description: |
|
|
4
|
+
Use this skill when starting a non-trivial implementation, bug fix, or refactor
|
|
5
|
+
in WrongStack. Triggers: user says "/sdd", "spec", "specification", "task graph",
|
|
6
|
+
"SDD", "acceptance criteria", or starts a new feature.
|
|
7
|
+
version: 2.1.0
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Spec-Driven Development — WrongStack
|
|
11
|
+
|
|
12
|
+
Every non-trivial change starts with a spec. The spec is the source of truth.
|
|
13
|
+
|
|
14
|
+
## When to use
|
|
15
|
+
|
|
16
|
+
- New feature implementation
|
|
17
|
+
- Bug fix with complexity
|
|
18
|
+
- Refactoring with scope
|
|
19
|
+
- Any task requiring more than 1 hour
|
|
20
|
+
|
|
21
|
+
## The SDD workflow
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
1. /sdd new [title] → Build spec from questions
|
|
25
|
+
2. /sdd tasks <id> → Generate task graph from spec
|
|
26
|
+
3. /sdd graph <id> → Visualize dependencies
|
|
27
|
+
4. /sdd critical <id> → Find bottlenecks
|
|
28
|
+
5. /sdd execute <id> → Run tasks (or execute manually)
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Task lifecycle commands
|
|
32
|
+
|
|
33
|
+
| Command | What it does |
|
|
34
|
+
|---------|--------------|
|
|
35
|
+
| `/sdd tasks` | Show task list with progress bar (sorted: in_progress → pending → review → blocked → failed → completed) |
|
|
36
|
+
| `/sdd next` | Show next executable task + blockers |
|
|
37
|
+
| `/sdd done <N>` | Complete a task (by number or fuzzy title match) |
|
|
38
|
+
| `/sdd skip <N>` | Skip a task back to pending |
|
|
39
|
+
| `/sdd fail <N>` | Mark a task as failed |
|
|
40
|
+
| `/sdd review <N>` | Send a task to review |
|
|
41
|
+
| `/sdd edit <N> <text>` | Edit task title (short text) or description (long text) |
|
|
42
|
+
| `/sdd undo` | Undo last task completion |
|
|
43
|
+
| `/sdd graph` | ASCII task dependency visualization |
|
|
44
|
+
| `/sdd critical` | Critical path analysis + bottlenecks |
|
|
45
|
+
|
|
46
|
+
## Spec templates
|
|
47
|
+
|
|
48
|
+
| Template | Best for |
|
|
49
|
+
|---|---|
|
|
50
|
+
| `feature` | New feature development |
|
|
51
|
+
| `bugfix` | Bug fix with root cause analysis |
|
|
52
|
+
| `refactor` | Code refactoring with goals |
|
|
53
|
+
| `infra` | Infrastructure/tooling changes |
|
|
54
|
+
| `integration` | External service integration |
|
|
55
|
+
| `cli-command` | New CLI commands/slash commands |
|
|
56
|
+
|
|
57
|
+
## Spec structure
|
|
58
|
+
|
|
59
|
+
A complete spec has:
|
|
60
|
+
1. **Overview** — What problem does this solve?
|
|
61
|
+
2. **Requirements** — `[priority] description` format
|
|
62
|
+
3. **Architecture** — High-level design (if needed)
|
|
63
|
+
4. **API Design** — Endpoints, inputs, outputs (if applicable)
|
|
64
|
+
5. **Acceptance Criteria** — How do we know it's done?
|
|
65
|
+
|
|
66
|
+
### Requirement format
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
[critical] Users can authenticate with OAuth2
|
|
70
|
+
[high] Rate limiting: 100 req/min per user
|
|
71
|
+
[medium] Response time < 200ms p95
|
|
72
|
+
[low] Support dark mode
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Task graph generation
|
|
76
|
+
|
|
77
|
+
Each requirement generates one or more tasks. Tasks have states:
|
|
78
|
+
```
|
|
79
|
+
pending → in_progress → review → completed
|
|
80
|
+
↓
|
|
81
|
+
blocked (waiting on dependencies)
|
|
82
|
+
↓
|
|
83
|
+
failed
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Critical path
|
|
87
|
+
|
|
88
|
+
The critical path finds:
|
|
89
|
+
- **Bottleneck tasks** blocking the most downstream work
|
|
90
|
+
- **Parallel groups** that can run concurrently
|
|
91
|
+
- **Ready tasks** that can start immediately
|
|
92
|
+
- **Execution order** respecting all dependencies
|
|
93
|
+
|
|
94
|
+
## Goal & Eternal Mode
|
|
95
|
+
|
|
96
|
+
`/sdd` pairs with `/goal` for autonomous execution:
|
|
97
|
+
|
|
98
|
+
| Command | What it does |
|
|
99
|
+
|---------|--------------|
|
|
100
|
+
| `/goal set <text>` | Set an autonomous mission |
|
|
101
|
+
| `/goal pause` | Pause at end of current iteration |
|
|
102
|
+
| `/goal resume` | Resume a paused goal |
|
|
103
|
+
| `/goal journal [N]` | Show recent journal entries |
|
|
104
|
+
| `/goal clear` | Clear goal and stop eternal mode |
|
|
105
|
+
| `/autonomy eternal` | Run goal loop indefinitely |
|
|
106
|
+
| `/autonomy stop` | Stop eternal mode |
|
|
107
|
+
|
|
108
|
+
**Eternal stage flow:** `decide → execute → reflect → sleep | paused | stopped`
|
|
109
|
+
Stage shown in real-time. Pause stops after current iteration completes.
|
|
110
|
+
|
|
111
|
+
## Anti-patterns
|
|
112
|
+
|
|
113
|
+
- **Writing code before the spec** — you'll rewrite it anyway
|
|
114
|
+
- **Spec that's too vague** — "improve auth" is not a spec, "Users authenticate via OAuth2 with PKCE" is
|
|
115
|
+
- **Tasks with no dependencies** — everything is a dependency of something
|
|
116
|
+
- **Spec without acceptance criteria** — how do you know when it's done?
|
|
117
|
+
- **Skipping /sdd for urgent tasks** — the spec is what makes "urgent" possible
|
|
118
|
+
|
|
119
|
+
## Skills in scope
|
|
120
|
+
|
|
121
|
+
- `refactor-planner` — when the spec reveals a multi-file refactor
|
|
122
|
+
- `bug-hunter` — when a bugfix spec needs a root cause analysis section
|
|
107
123
|
- `multi-agent` — for executing parallel task groups
|