@skitterbyte/skitterspec 23.18.0 → 23.20.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/MIGRATION.md +27 -0
- package/README.md +36 -13
- package/assets/claude-md-section.md +18 -9
- package/assets/commands/allow-main.md +1 -2
- package/assets/core/env.config.json.example +0 -1
- package/assets/core/env.config.md +28 -26
- package/assets/hooks/main-guard.cjs +73 -6
- package/assets/hooks/project-guard.cjs +80 -6
- package/assets/hooks/review-gate.cjs +73 -6
- package/assets/review/page.html +10 -83
- package/assets/rules/spec-planning.md +26 -22
- package/assets/rules/spec-reports.md +52 -52
- package/assets/skills/no-spec/SKILL.md +2 -2
- package/assets/skills/spec/SKILL.md +14 -3
- package/assets/skills/spec-bug/SKILL.md +10 -13
- package/assets/skills/spec-complete/SKILL.md +23 -1
- package/assets/skills/spec-diff/SKILL.md +47 -115
- package/assets/skills/spec-hotfix/SKILL.md +10 -13
- package/assets/skills/spec-init/SKILL.md +4 -2
- package/assets/skills/spec-next/SKILL.md +66 -41
- package/assets/skills/spec-park/SKILL.md +92 -0
- package/assets/skills/spec-resume/SKILL.md +153 -0
- package/assets/skills/spec-review/SKILL.md +2 -2
- package/assets/skills/spec-reviewed/SKILL.md +1 -8
- package/assets/skills/spec-todo/SKILL.md +5 -2
- package/package.json +1 -1
- package/src/cli.js +361 -208
- package/src/env/bootstrap.js +3 -1
- package/src/env/checks.js +49 -0
- package/src/env/config.js +27 -7
- package/src/env/hooks.js +53 -4
- package/src/env/live.js +48 -0
- package/src/env/provision.js +10 -2
- package/src/env/resume.js +234 -0
- package/src/env/review.js +71 -173
- package/src/env/serve.js +3 -7
- package/src/init.js +383 -50
- package/src/tada/todo.js +19 -4
- package/assets/commands/spec-remote-review.md +0 -37
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: spec-resume
|
|
3
|
+
description: Go back into a spec that is already in flight, by its name or its ticket (#N), without starting anything. Rebuilds its worktree when this machine has none, moves the session there, shows what it is blocked on, then acts on the message given with it — feedback on shipped work, "the deploy is out", a question. Use when the user says "/spec-resume", "back to <spec>", "pick up #N again", or reports on a spec that is already in progress.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /spec-resume — back into a spec in flight
|
|
7
|
+
|
|
8
|
+
> Stay silent while this runs — speak only to ask something you cannot answer
|
|
9
|
+
> yourself, or to report a failure at the moment it happens. Read
|
|
10
|
+
> `.claude/rules/spec-reports.md` before reporting; it defines the block this
|
|
11
|
+
> skill ends with.
|
|
12
|
+
|
|
13
|
+
Some specs wait on things outside the repo: a deploy, another project's
|
|
14
|
+
release, a phase that has to run in prod for a week. This skill is how you come
|
|
15
|
+
back to one. **It is not a start.** It moves no bucket, assigns nobody, touches
|
|
16
|
+
no tracker status and builds nothing itself. `/spec-start` puts a spec in
|
|
17
|
+
flight, and `/spec-next` builds a phase. This skill puts you back where the
|
|
18
|
+
spec is, then does what the message asks.
|
|
19
|
+
|
|
20
|
+
The argument is `<name|#N> [message]`. The first word is the spec, and
|
|
21
|
+
everything after it, a leading `-` or `—` dropped, is the message.
|
|
22
|
+
|
|
23
|
+
## 1. Ask the engine
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
skitterspec spec-env resume <name|#N> --json
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
It reads every copy of the spec it can see: this checkout, each worktree, and
|
|
30
|
+
each spec branch, local then remote-tracking, never fetched. That matters
|
|
31
|
+
because the base branch reads `backlog` for the whole life of a spec, and under
|
|
32
|
+
`land.specDocs: "branch"` an in-flight spec may exist only on its branch.
|
|
33
|
+
|
|
34
|
+
- **`ok: false`.** Relay the `refused` text and stop with `⏸`. It covers a
|
|
35
|
+
name or ticket that matches nothing (it never guesses the nearest), a spec in
|
|
36
|
+
`backlog` (`Next` is `/spec-start <name>`), one already complete or
|
|
37
|
+
cancelled, and one with no branch anywhere to resume from.
|
|
38
|
+
- **`ok: true`.** Carry on. `blockers`, `progress` and `identifier` are read
|
|
39
|
+
in step 3.
|
|
40
|
+
|
|
41
|
+
## 2. Get into its worktree
|
|
42
|
+
|
|
43
|
+
**Only when the project has per-spec isolation** (`specs/.core/env.config.json`).
|
|
44
|
+
Without it there is no worktree, so you are already where the spec is. Skip to
|
|
45
|
+
step 3.
|
|
46
|
+
|
|
47
|
+
**Bring the review server up first, from the primary checkout**, exactly as
|
|
48
|
+
`/spec-start` §2b does: `skitterspec spec-env review serve --host 0.0.0.0`.
|
|
49
|
+
Say nothing when it is already up. If it can't start, say so in one line and
|
|
50
|
+
carry on.
|
|
51
|
+
|
|
52
|
+
**When `commands` is non-empty, this machine has no worktree for the spec.**
|
|
53
|
+
That is the expected path, not an edge case: a spec parked on another machine,
|
|
54
|
+
or pruned while it waited. Run the `commands` as printed, then the `then`
|
|
55
|
+
commands, with the `cd` in front, as `/spec-start` step 3 does:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
cd "<worktree.path>" && skitterspec spec-env bootstrap <spec>
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
The commands attach the spec's own branch, local or tracked from the remote.
|
|
62
|
+
**Never add a `-b` of your own.** A fresh fork would hand back an empty tree with
|
|
63
|
+
the work out of reach, and the engine refused that case already.
|
|
64
|
+
|
|
65
|
+
**When `commands` is empty, the worktree is there.** `cd` into `worktree.path`
|
|
66
|
+
unless the session is already standing in it.
|
|
67
|
+
|
|
68
|
+
**Then confirm the move landed.** `skitterspec spec-env resolve` with no
|
|
69
|
+
argument must name this spec, the same positive signal `/spec-start` asks for.
|
|
70
|
+
If it names anything else, stop with `❌`, print the path, and write nothing.
|
|
71
|
+
|
|
72
|
+
## 3. Show where it stands
|
|
73
|
+
|
|
74
|
+
Before acting on the message, read the spec's `00-overview.md` and the phase
|
|
75
|
+
file for `progress.current` (else the first unfinished one). Then put any
|
|
76
|
+
`blockers` in front of the reader, one per line, with the `until` date where it
|
|
77
|
+
has one. A blocker is the most important thing a resumed spec can say: it is
|
|
78
|
+
why the spec stopped.
|
|
79
|
+
|
|
80
|
+
## 4. Act on the message
|
|
81
|
+
|
|
82
|
+
**No message: report and stop.** `Next` is `/spec-next` (or the blocker, if
|
|
83
|
+
one stands in its way).
|
|
84
|
+
|
|
85
|
+
**With a message, read it against the spec and decide what it is asking.**
|
|
86
|
+
This is judgment, not a template. A message is usually one of these, and can
|
|
87
|
+
be several:
|
|
88
|
+
|
|
89
|
+
- **A blocker's condition is met.** For example: "LSC is released", "it has
|
|
90
|
+
been live a week". Where the message plainly says so, remove that
|
|
91
|
+
`> **Blocked on:**` line and add a dated Changelog line naming what cleared
|
|
92
|
+
it. Where you cannot tell whether it is met, **ask once**: "this was blocked
|
|
93
|
+
on `<text>`, is that done?". Never clear a blocker in silence.
|
|
94
|
+
- **A question about the spec.** For example: "now LSC is out, what do we need
|
|
95
|
+
to test?". Answer it from the spec's own phases, tasks and Decisions, and
|
|
96
|
+
quote the tasks rather than paraphrasing them. Write nothing.
|
|
97
|
+
- **Feedback on the work this spec shipped.** For example: "the toast says why,
|
|
98
|
+
but the record stays on screen and delete does nothing". Turn it into tasks:
|
|
99
|
+
add them to the current `🔄` phase, or, when every phase is `✅`, to a new
|
|
100
|
+
phase file plus an index row (`/spec-next` §4's rule for new work). Add a
|
|
101
|
+
dated Changelog line quoting the report.
|
|
102
|
+
- **Work outside this spec.** For example: a different feature, or a defect in
|
|
103
|
+
code the spec never touched. Propose the right door with a one-line reason,
|
|
104
|
+
confirm first, as `.claude/rules/spec-planning.md`'s kind routing does. A
|
|
105
|
+
defect goes to `/spec-bug`; new behaviour goes to `/spec`. On a no, carry
|
|
106
|
+
on with whatever part of the message was this spec's.
|
|
107
|
+
|
|
108
|
+
**Commit what you wrote to the spec before building anything.** Use
|
|
109
|
+
`skitterspec spec-env stage <spec>` and its `owned` paths, pathspec-bounded on
|
|
110
|
+
both the `add` and the `commit`, as `docs(spec): resume <spec> — <what changed>`
|
|
111
|
+
with the `Refs:` trailer when there is a ticket. `/spec-next` §2 refuses to
|
|
112
|
+
build on an uncommitted tree, and these edits are the spec's own documents, not
|
|
113
|
+
a phase's work.
|
|
114
|
+
|
|
115
|
+
**Then build, if the message asked for work.** Hand off to a bare
|
|
116
|
+
**`/spec-next`**: it resolves this spec from the worktree you are standing in,
|
|
117
|
+
honours the review gate, builds the first unfinished phase (which now holds the
|
|
118
|
+
new tasks), and ends on its own review page. That is the only way this skill
|
|
119
|
+
writes code. A gate that `/spec-next` refuses on is relayed as it says. It is
|
|
120
|
+
never stepped past.
|
|
121
|
+
|
|
122
|
+
**Where the message cleared a blocker and asked for nothing more**, do not
|
|
123
|
+
build on that alone. Offer it instead: "build phase N now?", recommending yes,
|
|
124
|
+
the same question `/spec-start` step 6 asks. A blocker clearing is a reason the
|
|
125
|
+
work can go on, not an instruction to do it now.
|
|
126
|
+
|
|
127
|
+
## 5. Report
|
|
128
|
+
|
|
129
|
+
**When step 4 handed off to `/spec-next`, emit no block here.** That skill
|
|
130
|
+
ends with its own block, and two blocks for one run is the noise the contract
|
|
131
|
+
exists to remove.
|
|
132
|
+
|
|
133
|
+
Otherwise, end with the block defined in `.claude/rules/spec-reports.md`.
|
|
134
|
+
|
|
135
|
+
**Verdicts**
|
|
136
|
+
|
|
137
|
+
- `✅`: the session is standing in the spec's worktree and the message, if
|
|
138
|
+
any, was answered.
|
|
139
|
+
- `⚠️`: resumed, with something worth knowing. For example, a blocker still
|
|
140
|
+
stands, or bootstrap failed a step that does not stop the reading.
|
|
141
|
+
- `❌`: provisioning or the move failed part-way. Name what was left and
|
|
142
|
+
where.
|
|
143
|
+
- `⏸`: the engine refused. Nothing was provisioned and nothing moved.
|
|
144
|
+
|
|
145
|
+
**Fields:** `Tracker` · `Spec` · `Built` · `Notes` · `Worktree` ·
|
|
146
|
+
`Follow-ups` · `Next`
|
|
147
|
+
|
|
148
|
+
`Spec` is the bucket and progress (`2 of 4 done, phase 3 in progress`).
|
|
149
|
+
`Worktree` is the path, and says **entered** or **provisioned**. `Built` lists
|
|
150
|
+
what the message added to the spec (tasks, a cleared blocker), and is absent
|
|
151
|
+
when nothing was written. `Notes` carries any blocker still standing, quoted.
|
|
152
|
+
`Next` is `/spec-next` when the spec is ready to build, or the blocker when one
|
|
153
|
+
stands in the way.
|
|
@@ -202,9 +202,9 @@ reader:
|
|
|
202
202
|
|
|
203
203
|
- **local** — <the `local:` URL>
|
|
204
204
|
- **network** — <the `network:` URL, or off with the command that turns it on>
|
|
205
|
-
- **remote** — <the `remote:` URL, or
|
|
205
|
+
- **remote** — <the `remote:` tailnet URL, or what that line says when there is none>
|
|
206
206
|
|
|
207
|
-
I'm holding here until you send a verdict — the wait covers
|
|
207
|
+
I'm holding here until you send a verdict — the wait covers <the tiers the engine's `covers` names>.
|
|
208
208
|
|
|
209
209
|
`Commit` commits the refresh · `Request changes` works them now
|
|
210
210
|
|
|
@@ -176,14 +176,7 @@ everything a decision needs, so there is nothing to go looking for, and going
|
|
|
176
176
|
looking is the bypass step 0 forbids. The file is right there and readable; that
|
|
177
177
|
is precisely why the rule is written down rather than assumed.
|
|
178
178
|
|
|
179
|
-
**
|
|
180
|
-
has a published page (`--json` reports a `url`): a reader off the LAN sent their
|
|
181
|
-
pass to the artifact's own `passes` collection rather than to the engine, so an
|
|
182
|
-
empty holding area is not an empty answer yet. Read it with the Artifact tool's
|
|
183
|
-
`read_db`, merge the `blob` through `--notes`, and **delete the document** —
|
|
184
|
-
`/spec-diff` §6 owns the whole sequence, including that a claim consumes.
|
|
185
|
-
|
|
186
|
-
**Nothing waiting in either is an ordinary answer.** Say so and stop. Do not hunt
|
|
179
|
+
**Nothing waiting is an ordinary answer.** Say so and stop. Do not hunt
|
|
187
180
|
through other specs, and do not treat an empty holding area as a problem — a
|
|
188
181
|
`file://` page copies to the clipboard instead of sending, so mention that the
|
|
189
182
|
pass may be on their clipboard waiting to be pasted, and finish.
|
|
@@ -44,8 +44,11 @@ What the lines mean:
|
|
|
44
44
|
stopped.
|
|
45
45
|
- `in flight:` — where the spec stands now, and its next action.
|
|
46
46
|
- `finished:` — the specs that day completed or cancelled, by name.
|
|
47
|
-
- `blocked:` — a review verdict waiting,
|
|
48
|
-
and still owes an answer
|
|
47
|
+
- `blocked:` — a review verdict waiting, a gate armed by a phase that ended
|
|
48
|
+
and still owes an answer, or a spec **parked** on something outside the repo
|
|
49
|
+
(its `Blocked on:` line, naming `/spec-resume`). A parked spec whose
|
|
50
|
+
`until` date has arrived says *ready to resume*. Read only for specs in
|
|
51
|
+
flight.
|
|
49
52
|
- `ideas:` — how many ideas are waiting for the `(here)` project. It is a count,
|
|
50
53
|
never the next action: `/spec-idea` lists them, and the line is absent when
|
|
51
54
|
there are none or the count could not be read.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skitterbyte/skitterspec",
|
|
3
|
-
"version": "23.
|
|
3
|
+
"version": "23.20.0",
|
|
4
4
|
"description": "Spec-driven development for Claude Code \u2014 a tracker-free filesystem workflow: lifecycle skills and per-spec isolation. For Linear sync, install @skitterbyte/skitterspec-linear instead.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude",
|