@kynetic-ai/spec 0.8.0 → 0.9.0
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/cli/commands/ralph.d.ts +48 -0
- package/dist/cli/commands/ralph.d.ts.map +1 -1
- package/dist/cli/commands/ralph.js +268 -47
- package/dist/cli/commands/ralph.js.map +1 -1
- package/dist/cli/commands/session/commands.d.ts.map +1 -1
- package/dist/cli/commands/session/commands.js +8 -0
- package/dist/cli/commands/session/commands.js.map +1 -1
- package/dist/cli/commands/session/compact.d.ts +13 -0
- package/dist/cli/commands/session/compact.d.ts.map +1 -0
- package/dist/cli/commands/session/compact.js +207 -0
- package/dist/cli/commands/session/compact.js.map +1 -0
- package/dist/cli/commands/session/log.d.ts +2 -0
- package/dist/cli/commands/session/log.d.ts.map +1 -1
- package/dist/cli/commands/session/log.js +12 -2
- package/dist/cli/commands/session/log.js.map +1 -1
- package/dist/parser/skill-render.d.ts +14 -0
- package/dist/parser/skill-render.d.ts.map +1 -1
- package/dist/parser/skill-render.js +14 -4
- package/dist/parser/skill-render.js.map +1 -1
- package/dist/sessions/store.d.ts +57 -0
- package/dist/sessions/store.d.ts.map +1 -1
- package/dist/sessions/store.js +337 -9
- package/dist/sessions/store.js.map +1 -1
- package/package.json +1 -1
- package/plugin/.claude-plugin/marketplace.json +1 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/plugins/kspec/skills/create-workflow/SKILL.md +10 -0
- package/plugin/plugins/kspec/skills/plan/SKILL.md +10 -0
- package/plugin/plugins/kspec/skills/review/SKILL.md +2 -0
- package/plugin/plugins/kspec/skills/task-work/SKILL.md +10 -0
- package/plugin/plugins/kspec/skills/triage-automation/SKILL.md +1 -0
- package/templates/skills/create-workflow/SKILL.md +10 -0
- package/templates/skills/plan/SKILL.md +10 -0
- package/templates/skills/review/SKILL.md +2 -0
- package/templates/skills/task-work/SKILL.md +10 -0
- package/templates/skills/triage-automation/SKILL.md +1 -0
|
@@ -133,6 +133,16 @@ git add templates/skills/<name>/SKILL.md
|
|
|
133
133
|
git commit -m "feat: add <name> skill for workflow integration"
|
|
134
134
|
```
|
|
135
135
|
|
|
136
|
+
### Cross-Skill Consistency Check (When Updating Existing Skills)
|
|
137
|
+
|
|
138
|
+
If your workflow or wording change is cross-cutting, run this quick consistency pass before committing:
|
|
139
|
+
|
|
140
|
+
1. List related skills/templates that describe the same concept (for example: `codex`, `pr-review`, `local-review`, review templates).
|
|
141
|
+
2. Verify each related file is either updated in the same PR or explicitly noted as intentionally unchanged.
|
|
142
|
+
3. Add a short checklist in PR notes showing which related files were reviewed.
|
|
143
|
+
|
|
144
|
+
This prevents partial updates where one skill changes but sibling skills keep outdated guidance.
|
|
145
|
+
|
|
136
146
|
## Step Design Guidelines
|
|
137
147
|
|
|
138
148
|
### Action Steps
|
|
@@ -281,6 +281,16 @@ kspec task set @task-slug --depends-on @other-task
|
|
|
281
281
|
kspec plan get @plan-slug
|
|
282
282
|
```
|
|
283
283
|
|
|
284
|
+
If derived tasks are too generic to execute without chat history, add a structured task note immediately:
|
|
285
|
+
|
|
286
|
+
```bash
|
|
287
|
+
kspec task note @task-slug "Execution context:
|
|
288
|
+
- Background: why this task exists
|
|
289
|
+
- Scope: concrete boundaries for this task
|
|
290
|
+
- Files: exact files/areas to touch
|
|
291
|
+
- Verification: commands/tests to run"
|
|
292
|
+
```
|
|
293
|
+
|
|
284
294
|
## Plan Lifecycle
|
|
285
295
|
|
|
286
296
|
```
|
|
@@ -109,6 +109,7 @@ grep -rn "// AC: @spec-ref" tests/
|
|
|
109
109
|
```
|
|
110
110
|
|
|
111
111
|
Each AC listed in the spec output must have a corresponding annotation. Missing annotations are MUST-FIX.
|
|
112
|
+
Before accepting coverage, confirm each annotation matches the AC text from `kspec item get @spec-ref` (not only the `ac-N` label).
|
|
112
113
|
|
|
113
114
|
## Trait AC Coverage
|
|
114
115
|
|
|
@@ -149,6 +150,7 @@ If a trait AC genuinely doesn't apply to this spec, annotate it with a reason:
|
|
|
149
150
|
```
|
|
150
151
|
|
|
151
152
|
The annotation must exist so coverage tooling can track it.
|
|
153
|
+
Annotations must be standalone line comments (`// AC:` or `# AC:`), not embedded inside block/JSDoc comments.
|
|
152
154
|
|
|
153
155
|
### No Traits?
|
|
154
156
|
|
|
@@ -120,6 +120,16 @@ Note when you:
|
|
|
120
120
|
- Encounter a blocker
|
|
121
121
|
- Complete a significant piece
|
|
122
122
|
|
|
123
|
+
For tasks that are missing standalone context (for example, generic derived notes), add one structured note before deep implementation work:
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
kspec task note @ref "Execution context:
|
|
127
|
+
- Background: why this task matters
|
|
128
|
+
- Scope: what is in/out for this task
|
|
129
|
+
- Files: exact files expected to change
|
|
130
|
+
- Verification: tests/commands that prove completion"
|
|
131
|
+
```
|
|
132
|
+
|
|
123
133
|
### 5. Commit
|
|
124
134
|
|
|
125
135
|
Include task and spec trailers:
|
|
@@ -67,6 +67,7 @@ For each task shown:
|
|
|
67
67
|
- Is the spec appropriate for this task?
|
|
68
68
|
- Are the ACs adequate and testable?
|
|
69
69
|
- Does the task have sufficient context?
|
|
70
|
+
- Can the task be executed from task data alone (without hidden chat/session context)?
|
|
70
71
|
- If yes: `kspec task set @ref --automation eligible`
|
|
71
72
|
- If no: Fix issues or mark `needs_review` with specific reason
|
|
72
73
|
|
|
@@ -126,6 +126,16 @@ git add templates/skills/<name>/SKILL.md
|
|
|
126
126
|
git commit -m "feat: add <name> skill for workflow integration"
|
|
127
127
|
```
|
|
128
128
|
|
|
129
|
+
### Cross-Skill Consistency Check (When Updating Existing Skills)
|
|
130
|
+
|
|
131
|
+
If your workflow or wording change is cross-cutting, run this quick consistency pass before committing:
|
|
132
|
+
|
|
133
|
+
1. List related skills/templates that describe the same concept (for example: `codex`, `pr-review`, `local-review`, review templates).
|
|
134
|
+
2. Verify each related file is either updated in the same PR or explicitly noted as intentionally unchanged.
|
|
135
|
+
3. Add a short checklist in PR notes showing which related files were reviewed.
|
|
136
|
+
|
|
137
|
+
This prevents partial updates where one skill changes but sibling skills keep outdated guidance.
|
|
138
|
+
|
|
129
139
|
## Step Design Guidelines
|
|
130
140
|
|
|
131
141
|
### Action Steps
|
|
@@ -274,6 +274,16 @@ kspec task set @task-slug --depends-on @other-task
|
|
|
274
274
|
kspec plan get @plan-slug
|
|
275
275
|
```
|
|
276
276
|
|
|
277
|
+
If derived tasks are too generic to execute without chat history, add a structured task note immediately:
|
|
278
|
+
|
|
279
|
+
```bash
|
|
280
|
+
kspec task note @task-slug "Execution context:
|
|
281
|
+
- Background: why this task exists
|
|
282
|
+
- Scope: concrete boundaries for this task
|
|
283
|
+
- Files: exact files/areas to touch
|
|
284
|
+
- Verification: commands/tests to run"
|
|
285
|
+
```
|
|
286
|
+
|
|
277
287
|
## Plan Lifecycle
|
|
278
288
|
|
|
279
289
|
```
|
|
@@ -102,6 +102,7 @@ grep -rn "// AC: @spec-ref" tests/
|
|
|
102
102
|
```
|
|
103
103
|
|
|
104
104
|
Each AC listed in the spec output must have a corresponding annotation. Missing annotations are MUST-FIX.
|
|
105
|
+
Before accepting coverage, confirm each annotation matches the AC text from `kspec item get @spec-ref` (not only the `ac-N` label).
|
|
105
106
|
|
|
106
107
|
## Trait AC Coverage
|
|
107
108
|
|
|
@@ -142,6 +143,7 @@ If a trait AC genuinely doesn't apply to this spec, annotate it with a reason:
|
|
|
142
143
|
```
|
|
143
144
|
|
|
144
145
|
The annotation must exist so coverage tooling can track it.
|
|
146
|
+
Annotations must be standalone line comments (`// AC:` or `# AC:`), not embedded inside block/JSDoc comments.
|
|
145
147
|
|
|
146
148
|
### No Traits?
|
|
147
149
|
|
|
@@ -113,6 +113,16 @@ Note when you:
|
|
|
113
113
|
- Encounter a blocker
|
|
114
114
|
- Complete a significant piece
|
|
115
115
|
|
|
116
|
+
For tasks that are missing standalone context (for example, generic derived notes), add one structured note before deep implementation work:
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
kspec task note @ref "Execution context:
|
|
120
|
+
- Background: why this task matters
|
|
121
|
+
- Scope: what is in/out for this task
|
|
122
|
+
- Files: exact files expected to change
|
|
123
|
+
- Verification: tests/commands that prove completion"
|
|
124
|
+
```
|
|
125
|
+
|
|
116
126
|
### 5. Commit
|
|
117
127
|
|
|
118
128
|
Include task and spec trailers:
|
|
@@ -61,6 +61,7 @@ For each task shown:
|
|
|
61
61
|
- Is the spec appropriate for this task?
|
|
62
62
|
- Are the ACs adequate and testable?
|
|
63
63
|
- Does the task have sufficient context?
|
|
64
|
+
- Can the task be executed from task data alone (without hidden chat/session context)?
|
|
64
65
|
- If yes: `kspec task set @ref --automation eligible`
|
|
65
66
|
- If no: Fix issues or mark `needs_review` with specific reason
|
|
66
67
|
|