@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrongstack/core",
3
- "version": "0.6.5",
3
+ "version": "0.6.6",
4
4
  "license": "MIT",
5
5
  "description": "WrongStack core: kernel, types, defaults, and shared utilities for the WrongStack CLI agent.",
6
6
  "repository": {
@@ -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
- ## /sdd command reference
32
-
33
- | Command | What it does |
34
- |---------|--------------|
35
- | `/sdd new [title]` | Interactive spec builder |
36
- | `/sdd from <template>` | Create from template (feature, bugfix, refactor, infra, cli-command) |
37
- | `/sdd list` | List saved specs |
38
- | `/sdd show <id>` | Show spec + completeness |
39
- | `/sdd tasks <id>` | Generate task graph |
40
- | `/sdd graph <id>` | ASCII visualization |
41
- | `/sdd status <id>` | Task list by status |
42
- | `/sdd critical <id>` | Critical path + bottlenecks |
43
- | `/sdd execute <id>` | Auto-execute tasks |
44
- | `/sdd approve <id>` | Approve pending tasks |
45
- | `/sdd version <id>` | Version history |
46
-
47
- ## Spec templates
48
-
49
- | Template | Best for |
50
- |---|---|
51
- | `feature` | New feature development |
52
- | `bugfix` | Bug fix with root cause analysis |
53
- | `refactor` | Code refactoring with goals |
54
- | `infra` | Infrastructure/tooling changes |
55
- | `integration` | External service integration |
56
- | `cli-command` | New CLI commands/slash commands |
57
-
58
- ## Spec structure
59
-
60
- A complete spec has:
61
- 1. **Overview** — What problem does this solve?
62
- 2. **Requirements** — `[priority] description` format
63
- 3. **Architecture** — High-level design (if needed)
64
- 4. **API Design** — Endpoints, inputs, outputs (if applicable)
65
- 5. **Acceptance Criteria** — How do we know it's done?
66
-
67
- ### Requirement format
68
-
69
- ```
70
- [critical] Users can authenticate with OAuth2
71
- [high] Rate limiting: 100 req/min per user
72
- [medium] Response time < 200ms p95
73
- [low] Support dark mode
74
- ```
75
-
76
- ## Task graph generation
77
-
78
- Each requirement generates one or more tasks. Tasks have states:
79
- ```
80
- pending → in_progress → review → completed
81
-
82
- blocked (waiting on dependencies)
83
-
84
- failed
85
- ```
86
-
87
- ## Critical path
88
-
89
- The critical path finds:
90
- - **Bottleneck tasks** blocking the most downstream work
91
- - **Parallel groups** that can run concurrently
92
- - **Ready tasks** that can start immediately
93
- - **Execution order** respecting all dependencies
94
-
95
- ## Anti-patterns
96
-
97
- - **Writing code before the spec** — you'll rewrite it anyway
98
- - **Spec that's too vague** "improve auth" is not a spec, "Users authenticate via OAuth2 with PKCE" is
99
- - **Tasks with no dependencies** — everything is a dependency of something
100
- - **Spec without acceptance criteria** how do you know when it's done?
101
- - **Skipping /sdd for urgent tasks** the spec is what makes "urgent" possible
102
-
103
- ## Skills in scope
104
-
105
- - `refactor-planner` when the spec reveals a multi-file refactor
106
- - `bug-hunter` when a bugfix spec needs a root cause analysis section
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