@skitterbyte/skitterspec-github 0.0.0-stage → 1.0.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 +1107 -0
- package/README.md +53 -2
- package/assets/claude-md-section.md +85 -0
- package/assets/commands/allow-main.md +33 -0
- package/assets/commands/spec-connect.md +13 -0
- package/assets/commands/spec-live.md +14 -0
- package/assets/commands/spec-remote-review.md +37 -0
- package/assets/commands/spec-skip.md +24 -0
- package/assets/core/SETUP.md +112 -0
- package/assets/core/env.config.json.example +56 -0
- package/assets/core/env.config.md +557 -0
- package/assets/core/gating.config.json.example +4 -0
- package/assets/core/gating.config.md +81 -0
- package/assets/core/github.config.json.example +18 -0
- package/assets/core/github.config.md +66 -0
- package/assets/hooks/main-guard.cjs +162 -0
- package/assets/hooks/review-gate.cjs +146 -0
- package/assets/review/page.html +3384 -0
- package/assets/rules/commit-trailers.md +103 -0
- package/assets/rules/negative-checks.md +69 -0
- package/assets/rules/offered-unblocks.md +100 -0
- package/assets/rules/spec-planning.md +692 -0
- package/assets/rules/spec-reports.md +557 -0
- package/assets/skills/no-spec/SKILL.md +246 -0
- package/assets/skills/spec/SKILL.md +718 -0
- package/assets/skills/spec-bug/SKILL.md +646 -0
- package/assets/skills/spec-cancel/SKILL.md +263 -0
- package/assets/skills/spec-claim/SKILL.md +122 -0
- package/assets/skills/spec-complete/SKILL.md +450 -0
- package/assets/skills/spec-diff/SKILL.md +870 -0
- package/assets/skills/spec-github-setup/SKILL.md +236 -0
- package/assets/skills/spec-hotfix/SKILL.md +668 -0
- package/assets/skills/spec-init/SKILL.md +178 -0
- package/assets/skills/spec-list/SKILL.md +172 -0
- package/assets/skills/spec-next/SKILL.md +685 -0
- package/assets/skills/spec-push/SKILL.md +307 -0
- package/assets/skills/spec-review/SKILL.md +258 -0
- package/assets/skills/spec-reviewed/SKILL.md +284 -0
- package/assets/skills/spec-start/SKILL.md +554 -0
- package/assets/skills/spec-status/SKILL.md +112 -0
- package/assets/skills/spec-sync/SKILL.md +226 -0
- package/assets/skills/spec-to-main/SKILL.md +139 -0
- package/bin/skitterspec-github.js +61 -0
- package/package.json +41 -4
- package/src/cli.js +5901 -0
- package/src/deprecate.js +138 -0
- package/src/env/bootstrap.js +188 -0
- package/src/env/building.js +143 -0
- package/src/env/classify.js +176 -0
- package/src/env/commitcmd.js +108 -0
- package/src/env/config.js +753 -0
- package/src/env/dev.js +63 -0
- package/src/env/hooks.js +226 -0
- package/src/env/hotfix.js +411 -0
- package/src/env/hotfixland.js +302 -0
- package/src/env/integrate.js +126 -0
- package/src/env/live.js +504 -0
- package/src/env/mainguard.js +299 -0
- package/src/env/provision.js +466 -0
- package/src/env/proxy.js +192 -0
- package/src/env/prune.js +119 -0
- package/src/env/registry.js +159 -0
- package/src/env/render.js +17 -0
- package/src/env/resolve.js +716 -0
- package/src/env/review.js +2577 -0
- package/src/env/reviewers/coderabbit.js +228 -0
- package/src/env/reviewers.js +517 -0
- package/src/env/serve.js +1044 -0
- package/src/env/supervise.js +157 -0
- package/src/env/teardown.js +248 -0
- package/src/env/trust.js +87 -0
- package/src/gating.js +155 -0
- package/src/init.js +1150 -0
- package/src/lines-diff.js +114 -0
- package/src/prompts.js +129 -0
- package/src/vendor/github/api.js +786 -0
- package/src/vendor/github/cli-sync.js +1530 -0
- package/src/vendor/github/commands.js +44 -0
- package/src/vendor/github/config.js +414 -0
- package/src/vendor/github/credentials.js +109 -0
- package/src/vendor/github/dialect.js +62 -0
- package/src/vendor/github/identity.js +38 -0
- package/src/vendor/github/mcp.js +85 -0
- package/src/vendor/provider-kit/index.js +41 -0
- package/src/vendor/provider-kit/src/adapter.js +23 -0
- package/src/vendor/provider-kit/src/apply.js +207 -0
- package/src/vendor/provider-kit/src/args.js +68 -0
- package/src/vendor/provider-kit/src/assignment.js +277 -0
- package/src/vendor/provider-kit/src/config.js +198 -0
- package/src/vendor/provider-kit/src/credentials.js +404 -0
- package/src/vendor/provider-kit/src/doctor.js +35 -0
- package/src/vendor/provider-kit/src/http.js +63 -0
- package/src/vendor/provider-kit/src/identity.js +93 -0
- package/src/vendor/provider-kit/src/md-compare.js +39 -0
- package/src/vendor/provider-kit/src/md-tables.js +94 -0
- package/src/vendor/provider-kit/src/prompt.js +50 -0
- package/src/vendor/provider-kit/src/released.js +269 -0
- package/src/vendor/provider-kit/src/releases.js +380 -0
- package/src/vendor/provider-kit/src/specs.js +166 -0
- package/src/vendor/provider-kit/src/transport.js +22 -0
- package/src/vendor/sync-core/index.js +93 -0
- package/src/vendor/sync-core/src/base.js +81 -0
- package/src/vendor/sync-core/src/compare.js +338 -0
- package/src/vendor/sync-core/src/dialect.js +51 -0
- package/src/vendor/sync-core/src/fields.js +36 -0
- package/src/vendor/sync-core/src/legacy.js +100 -0
- package/src/vendor/sync-core/src/normalize.js +998 -0
- package/src/vendor/sync-core/src/push.js +85 -0
- package/src/vendor/sync-core/src/retarget.js +278 -0
- package/src/vendor/sync-core/src/task-block.js +308 -0
- package/src/vendor/sync-core/src/verify.js +67 -0
- package/src/vendor/sync-core/src/write.js +191 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: spec-init
|
|
3
|
+
description: Bootstrap the spec-driven-development workflow in the current project — create the specs/ lifecycle folders and .core, wire version-control so specs are tracked, verify the spec skills are installed, and add the spec workflow to CLAUDE.md and .claude/rules. Idempotent and safe to re-run. Use when setting up a new project for specs or repairing the setup, or when the user says "/spec-init", "set up specs here", "initialise the spec process".
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /spec-init — set up the spec-driven-development workflow
|
|
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
|
+
Bootstrap (or repair) everything this project needs to run the spec lifecycle.
|
|
14
|
+
**Idempotent:** detect what already exists, create only what's missing, and never
|
|
15
|
+
clobber customised content. Finish with a summary of created vs already-present.
|
|
16
|
+
|
|
17
|
+
> If `@skitterbyte/skitterspec` is installed, `npx @skitterbyte/skitterspec init` does
|
|
18
|
+
> all of the below mechanically. This skill is the manual/repair path and is
|
|
19
|
+
> useful when the package isn't available or you only need to fix part of the
|
|
20
|
+
> setup.
|
|
21
|
+
>
|
|
22
|
+
> **Re-running on an already-set-up repo is safe.** `init` detects the existing
|
|
23
|
+
> setup (via the committed `specs/.core/.skitterspec-manifest.json` of installed
|
|
24
|
+
> file hashes) and, interactively, offers three paths — **Resync** (update managed
|
|
25
|
+
> skills/rules to the latest but keep files you've edited), **Start again** (reset
|
|
26
|
+
> the managed scaffolding fresh — never your specs or config, with a confirm), or
|
|
27
|
+
> **Leave alone**. Non-interactively it only adds what's missing; `--resync` /
|
|
28
|
+
> `--reset` (reset needs `--yes`) drive the stronger actions.
|
|
29
|
+
|
|
30
|
+
The system is **thirteen skills**: `spec` (feature), `spec-bug` (bug),
|
|
31
|
+
`spec-hotfix` (a bug fixed on a released tag),
|
|
32
|
+
`no-spec` (work that genuinely has none — off the base branch all the same),
|
|
33
|
+
`spec-review`, `spec-start`,
|
|
34
|
+
`spec-next`, `spec-diff` (read a spec's diff as a page),
|
|
35
|
+
`spec-reviewed` (pick up a review you approved on that page), `spec-to-main`,
|
|
36
|
+
`spec-complete`, `spec-cancel`, and this `spec-init`. The lifecycle is `backlog → in-progress → complete / cancelled`,
|
|
37
|
+
with `.core` holding always-apply project rules.
|
|
38
|
+
|
|
39
|
+
## 0. Workspace mode (only when adopting isolation)
|
|
40
|
+
|
|
41
|
+
If this project is adopting per-spec isolation, ask which `mode` belongs in
|
|
42
|
+
`specs/.core/env.config.json` — `worktree` (default; a checkout per spec, several
|
|
43
|
+
at once, one terminal session each) or `checkout` (the branch is built in the
|
|
44
|
+
checkout you are already in; one spec at a time, no hand-off). It is a question
|
|
45
|
+
about how the operator works, not about what the repo contains, so ask rather
|
|
46
|
+
than infer it from whether dev servers or Docker are configured.
|
|
47
|
+
|
|
48
|
+
## 0b. Release gating (optional, and separate)
|
|
49
|
+
|
|
50
|
+
Ask whether specs should record a **release-gating** decision — does this change
|
|
51
|
+
ship behind a feature flag, or land live? Adopting it copies
|
|
52
|
+
`specs/.core/gating.config.json.example` → `gating.config.json` and sets
|
|
53
|
+
`guidance` to wherever this project documents its flags.
|
|
54
|
+
|
|
55
|
+
It is **orthogonal to isolation**: a project can adopt either, both, or neither.
|
|
56
|
+
Skitterspec never learns how the flags work — it asks the question, cites that
|
|
57
|
+
path, and records the answer on each spec. Leave it off and nothing appears:
|
|
58
|
+
no question, no header, no check. Off is a perfectly good answer for a project
|
|
59
|
+
that does not use flags.
|
|
60
|
+
|
|
61
|
+
## 1. Folders
|
|
62
|
+
|
|
63
|
+
Create any that are missing; drop a `.gitkeep` into ones that would otherwise be
|
|
64
|
+
empty so git keeps them:
|
|
65
|
+
|
|
66
|
+
- `specs/.core/` — project rules (always apply; never moved)
|
|
67
|
+
- `specs/backlog/` `specs/in-progress/` `specs/complete/` `specs/cancelled/`
|
|
68
|
+
|
|
69
|
+
## 2. Version control — keep specs tracked
|
|
70
|
+
|
|
71
|
+
The whole lifecycle lives in git — **everything under `specs/` is tracked**, so
|
|
72
|
+
the default is simply *no ignore rule excluding it*. Ensure `.gitignore` has no
|
|
73
|
+
`/specs/*` (or similar) entry that would hide spec folders; if one exists and the
|
|
74
|
+
project wants everything tracked, remove it. Confirm with
|
|
75
|
+
`git check-ignore -v specs/.core/<any-file>` — it should print nothing (tracked).
|
|
76
|
+
|
|
77
|
+
- **`.core` dotfile caveat:** only relevant if a `/specs/*` ignore is
|
|
78
|
+
(re)introduced — `*` matches dotfiles, so `.core` would need an explicit
|
|
79
|
+
`!/specs/.core/` negation. With no ignore rule, it's tracked automatically.
|
|
80
|
+
- If the project uses a formatter/linter ignore glob that excludes `specs/**`,
|
|
81
|
+
decide whether spec markdown should be formatted/linted and adjust accordingly.
|
|
82
|
+
- If a project later wants to **stop** versioning work-in-progress specs, that's
|
|
83
|
+
a deliberate opt-out (e.g. `/specs/*` + `!/specs/.core/`) — ask first; the
|
|
84
|
+
default is track-everything.
|
|
85
|
+
|
|
86
|
+
## 3. Verify the skills are installed
|
|
87
|
+
|
|
88
|
+
Check each of the ten skills resolves — `.claude/skills/<name>/SKILL.md`
|
|
89
|
+
(project) or `~/.claude/skills/<name>/` (global). List any missing. This skill
|
|
90
|
+
scaffolds the project; it does **not** regenerate skill bodies — missing skills
|
|
91
|
+
must be copied in (e.g. `npx @skitterbyte/skitterspec init`) from a global install
|
|
92
|
+
or a sibling project. If most/all are global, just confirm availability.
|
|
93
|
+
|
|
94
|
+
## 4. Governing rule (`.claude/rules/spec-planning.md`)
|
|
95
|
+
|
|
96
|
+
Ensure it exists. If missing, create it documenting:
|
|
97
|
+
|
|
98
|
+
- the lifecycle skills with their **status** and **folder** (table);
|
|
99
|
+
- the **type** convention — header `> **Type:** Feature|Bug` + filename prefix
|
|
100
|
+
`feat-`/`bug-` (never `[BUG]` brackets — glob hazard);
|
|
101
|
+
- the **Author** / **Developer** header fields;
|
|
102
|
+
- the **State log** audit table (folder/status transitions), kept separate from
|
|
103
|
+
the **Changelog** (decisions);
|
|
104
|
+
- the project's concrete typecheck/test commands, and the rule that
|
|
105
|
+
**every phase ends with creating + running tests**.
|
|
106
|
+
|
|
107
|
+
Read a sibling spec skill (e.g. `spec`, `spec-next`) for the canonical shapes
|
|
108
|
+
rather than inventing them. If the rule already exists, leave it unless stale.
|
|
109
|
+
|
|
110
|
+
## 4a. The review-gate hook (`.claude/hooks/review-gate.cjs`)
|
|
111
|
+
|
|
112
|
+
`skitterspec init` **and `skitterspec update`** install the hook script and
|
|
113
|
+
register it in the project's **committed** `.claude/settings.json` as a
|
|
114
|
+
`PreToolUse` hook on `Bash`. It runs one engine call per Bash tool call and
|
|
115
|
+
refuses a `git commit` in a worktree whose phase is still awaiting a verdict.
|
|
116
|
+
|
|
117
|
+
**Both commands, and that is not a detail.** Copying the script and registering
|
|
118
|
+
it are one operation, and they were once split across two code paths — so
|
|
119
|
+
`update` landed the file, reported `created:`, and wired nothing, on every
|
|
120
|
+
project that upgraded. Landing the script is not installing the hook.
|
|
121
|
+
|
|
122
|
+
**`.cjs`, and the extension is load-bearing.** The script lands inside the
|
|
123
|
+
target project, where *that* project's `package.json` decides how node parses a
|
|
124
|
+
`.js` — so CommonJS shipped as `.js` crashes in any `"type": "module"` project,
|
|
125
|
+
on every Bash tool call. `.cjs` settles it at the file. A registration left over
|
|
126
|
+
from the release that named `.js` is rewritten in place, keeping any wrapping
|
|
127
|
+
the operator added, rather than gaining a second entry beside it.
|
|
128
|
+
|
|
129
|
+
**Committed, not machine-local**, and the difference is the point: the trusted
|
|
130
|
+
worktree root is one machine's absolute path, while *a phase that ended owes an
|
|
131
|
+
answer* is the project's policy and should reach everyone who clones it. The
|
|
132
|
+
command is written with `${CLAUDE_PROJECT_DIR}`, so it holds in worktrees too.
|
|
133
|
+
|
|
134
|
+
**Say it is there, once.** A hook that blocks a commit with the operator not
|
|
135
|
+
knowing a hook exists reads as a broken git, so name it in the report when it is
|
|
136
|
+
newly registered — and say what turns it off (`review.required: false` in
|
|
137
|
+
`env.config.json`, which the hook defers to entirely).
|
|
138
|
+
|
|
139
|
+
**Never fatal, and never rewritten.** A settings file that is not parseable JSON
|
|
140
|
+
is reported and left exactly as it is — it is the operator's config, and
|
|
141
|
+
everything else in it would be lost. A settings file that already names this
|
|
142
|
+
script, however it was wrapped, is left alone rather than gaining a second copy.
|
|
143
|
+
|
|
144
|
+
## 5. CLAUDE.md
|
|
145
|
+
|
|
146
|
+
Ensure a `## Spec workflow` section exists. If absent, add one with the
|
|
147
|
+
skill table (`Skill | Action | Status | Folder`), the Feature/Bug type note,
|
|
148
|
+
and a pointer to `.claude/rules/spec-planning.md`. Also update the `specs/` entry
|
|
149
|
+
in any project-structure tree to show `.core/` + the four lifecycle folders. If
|
|
150
|
+
the section exists, refresh only stale folder/skill names — don't rewrite it.
|
|
151
|
+
|
|
152
|
+
## 6. Report
|
|
153
|
+
|
|
154
|
+
Do **not** `git commit` unless the user asks.
|
|
155
|
+
|
|
156
|
+
End with the block defined in `.claude/rules/spec-reports.md`. That file carries
|
|
157
|
+
the shape; this section carries only what is specific here.
|
|
158
|
+
|
|
159
|
+
**Verdicts**
|
|
160
|
+
|
|
161
|
+
- `✅` — every area is in place.
|
|
162
|
+
- `⚠️` — bootstrapped, with something worth knowing: a skill that could not be
|
|
163
|
+
installed, a CLAUDE.md that was left alone, a `.core` that is still ignored.
|
|
164
|
+
- `❌` — it wrote some areas and failed on another. Name which, so the re-run is
|
|
165
|
+
informed; this skill is idempotent and re-running it is the fix.
|
|
166
|
+
- `⏸` — not a git repo, or nothing it could safely write into.
|
|
167
|
+
|
|
168
|
+
**Fields:** `Built` · `Follow-ups` · `Next`
|
|
169
|
+
|
|
170
|
+
**`Built` is per area, one line each** — folders, `.gitignore` lines,
|
|
171
|
+
tooling-ignore negations, skills (present/missing), rule files, CLAUDE.md
|
|
172
|
+
section — as created / updated / already-present, plus the `git check-ignore`
|
|
173
|
+
result for `.core`. This is the one skill whose `Built` is a list rather than a
|
|
174
|
+
clause, because "what is now true of this project" is the entire answer it
|
|
175
|
+
exists to give.
|
|
176
|
+
|
|
177
|
+
**There is no spec to name**, so the verdict line drops that segment:
|
|
178
|
+
`✅ /spec-init · every area in place`.
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: spec-list
|
|
3
|
+
description: List every spec GitHub holds — key, title, status, and the local spec folder name to paste into /spec-start. Read-only, and it starts nothing. Falls back to the repo's own listing when GitHub is unreachable. Opt-in — needs specs/.core/github.config.json. Use when the user says "/spec-list", "what specs are there", "what is in the backlog", or "list specs from GitHub".
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# /spec-list — every spec GitHub holds
|
|
8
|
+
|
|
9
|
+
> Stay silent while this runs — speak only to ask something you cannot answer
|
|
10
|
+
> yourself, or to report a failure at the moment it happens. Read
|
|
11
|
+
> `.claude/rules/spec-reports.md` before reporting; it defines the block this
|
|
12
|
+
> skill ends with.
|
|
13
|
+
|
|
14
|
+
Read-only. It answers a question and writes nothing — no branch, no folder move,
|
|
15
|
+
no GitHub write.
|
|
16
|
+
|
|
17
|
+
Why ask GitHub rather than `ls specs/`? Because `/spec-start` moves a spec to
|
|
18
|
+
`specs/in-progress/` **on that spec's own branch**. On the base branch an
|
|
19
|
+
in-flight spec still reads `backlog`, and a teammate's unlanded spec is not on
|
|
20
|
+
disk at all. GitHub knows what is actually in progress; the repo knows what each
|
|
21
|
+
issue is **called on disk**. The listing joins the two.
|
|
22
|
+
|
|
23
|
+
**Opt-in**: only runs when `specs/.core/github.config.json` exists. If absent,
|
|
24
|
+
tell the user how to enable GitHub sync (`/spec-github-setup`) and stop.
|
|
25
|
+
|
|
26
|
+
## 1. Turn the question into flags
|
|
27
|
+
|
|
28
|
+
The user asks in plain language; the engine takes flags. Map, then run:
|
|
29
|
+
|
|
30
|
+
| They ask | Flags |
|
|
31
|
+
|----------|-------|
|
|
32
|
+
| "what specs are there", "/spec-list" | *(none — the live default)* |
|
|
33
|
+
| "what's done", "everything" | `--all` |
|
|
34
|
+
| "what's cancelled", a named status | `--state "<name>"` (repeatable) |
|
|
35
|
+
|
|
36
|
+
The default scope is **live** — whatever `config.states` maps `backlog` and
|
|
37
|
+
`in-progress` to. It is deliberately not everything: in a project with any
|
|
38
|
+
history, Done dwarfs the rows anyone wanted.
|
|
39
|
+
|
|
40
|
+
`--state` and `--all` are **alternatives**, and the engine refuses the pair
|
|
41
|
+
rather than letting one win silently.
|
|
42
|
+
|
|
43
|
+
The Linear provider's `--mine`, `--by` and `--next` filters are
|
|
44
|
+
**not yet shipped for the GitHub provider** — assignee filtering and backlog
|
|
45
|
+
ordering wait on identity support. Say so when one is asked for, rather than approximating it.
|
|
46
|
+
|
|
47
|
+
## 2. Run the engine
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
skitterspec spec-sync list [--state <name> …|--all] [--json]
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
- **`transport = api`** (credentials resolve) → it queried GitHub and printed the
|
|
54
|
+
listing. **Relay its output verbatim** and stop. Do not re-format it and do not
|
|
55
|
+
make GitHub calls of your own — the engine already joined the local spec
|
|
56
|
+
folders on.
|
|
57
|
+
- **`transport = mcp`** → the engine made no call. Go to step 3.
|
|
58
|
+
- Anything else it prints on one `spec-sync list:` line is a **degradation**, not
|
|
59
|
+
a crash — go to step 4.
|
|
60
|
+
|
|
61
|
+
## 3. The MCP path
|
|
62
|
+
|
|
63
|
+
Only when the engine said `transport = mcp`. Discover the board **read** tool at
|
|
64
|
+
runtime the way `/spec-push` describes (`projects_list` / `projects_get`). If
|
|
65
|
+
GitHub isn't connected or the tool is missing, go to step 4 — do not stop with
|
|
66
|
+
nothing.
|
|
67
|
+
|
|
68
|
+
Then list the board's items once per run:
|
|
69
|
+
|
|
70
|
+
- **Only this repo's issues.** A board can hold other repos' issues, draft items
|
|
71
|
+
and pull requests; keep items whose content is an issue in
|
|
72
|
+
`github.owner/github.repo`.
|
|
73
|
+
- **Scope by state.** The live default is the open issues; `--state` keeps only
|
|
74
|
+
items whose `github.statusField` value matches; `--all` keeps closed ones too.
|
|
75
|
+
- **Filter out phase sub-issues** — keep issues with no parent. A spec is a
|
|
76
|
+
top-level issue; a phase is its sub-issue, and a listing that includes them
|
|
77
|
+
buries the specs.
|
|
78
|
+
- **Page, and never cap silently.** Follow the tool's pagination until it runs
|
|
79
|
+
out. If you stop early, say so on its own line and say what you stopped at.
|
|
80
|
+
|
|
81
|
+
**The current phase, on in-progress rows only.** For each row whose Status is
|
|
82
|
+
the in-progress one, read its sub-issues (`issue_read`). Order them by
|
|
83
|
+
**number** — sub-issues are minted in phase order, so the number carries it.
|
|
84
|
+
Print the live one as `2/5 — <title>`. Three shapes, none of them guessed at:
|
|
85
|
+
|
|
86
|
+
- **No child in progress** — print nothing extra. A spec sits between phases all
|
|
87
|
+
the time; that is not a missing phase.
|
|
88
|
+
- **More than one** — print the lowest-numbered, then append
|
|
89
|
+
`(+N more in progress)`. Two people on one spec is real, not an error.
|
|
90
|
+
- **`mapping.phases` is `inline` for this spec's bucket** — skip the call
|
|
91
|
+
entirely. Those phases live in the spec issue's own body, so there are no
|
|
92
|
+
sub-issues, and asking would report "no phase in progress" for a spec that is
|
|
93
|
+
mid-build.
|
|
94
|
+
|
|
95
|
+
Do **not** make this call for backlog, done or cancelled rows — one lookup per
|
|
96
|
+
in-progress row is the budget, and there are rarely many.
|
|
97
|
+
|
|
98
|
+
Then join locally — no second GitHub call:
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
skitterspec spec-sync linked --json
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
That is `[{ spec, bucket, identifier }]`. Key it by `identifier` and attach each
|
|
105
|
+
issue's local `spec` folder name. Format the rows exactly as the API path does
|
|
106
|
+
(step 5), including the `showing N of M` count.
|
|
107
|
+
|
|
108
|
+
## 4. Degrade — never leave them with nothing
|
|
109
|
+
|
|
110
|
+
GitHub unreachable, no credential, no MCP tool, a GitHub error: **do not stop**.
|
|
111
|
+
Print the local listing instead:
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
skitterspec spec-sync linked --json
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
Show `spec`, `bucket` and `identifier`, under a one-line banner naming what is
|
|
118
|
+
missing and why it may be wrong:
|
|
119
|
+
|
|
120
|
+
```
|
|
121
|
+
GitHub unreachable (<reason>) — this is the repo's own listing.
|
|
122
|
+
Buckets are this branch's; a spec someone else has started still reads "backlog" here.
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
That caveat is the point of the banner. A local bucket is not evidence of a
|
|
126
|
+
spec's real state — it is evidence of what this branch knows, which is exactly
|
|
127
|
+
what the command exists to go beyond. A query command that fails closed is one
|
|
128
|
+
people stop typing.
|
|
129
|
+
|
|
130
|
+
## 5. Report
|
|
131
|
+
|
|
132
|
+
Relay the listing. Whatever the path, three things must survive into what the
|
|
133
|
+
user reads:
|
|
134
|
+
|
|
135
|
+
- **The count, as `showing N of M`.** If they are not the same number, say what
|
|
136
|
+
was left out and how to see it.
|
|
137
|
+
- **The phase, on in-progress rows** — `2/5 — <title>`, after the status.
|
|
138
|
+
- **A row with no local match stays in**, marked `— (not linked here)`. It is not
|
|
139
|
+
noise: a teammate's unlanded spec, or one authored inside another spec's
|
|
140
|
+
worktree, is precisely what the repo could not have told them.
|
|
141
|
+
|
|
142
|
+
Finish with the hand-off, because every row carries the folder name for it —
|
|
143
|
+
as a sentence, not a fenced block: say that `/spec-start <name>` starts any of
|
|
144
|
+
them, with the name copied from a row.
|
|
145
|
+
|
|
146
|
+
**Never start it yourself.** `/spec-start` provisions a branch, moves a folder
|
|
147
|
+
and commits, and it has dirty-tree refusals this skill does not reproduce.
|
|
148
|
+
Offering the name is the whole job.
|
|
149
|
+
|
|
150
|
+
End with the block defined in `.claude/rules/spec-reports.md`. That file carries
|
|
151
|
+
the shape; this section carries only what is specific here.
|
|
152
|
+
|
|
153
|
+
**The listing goes above the block, unflattened.** It is rows of other people's
|
|
154
|
+
work; the block is the verdict on this run of the query. Do not fold the listing
|
|
155
|
+
into fields, and do not repeat it there.
|
|
156
|
+
|
|
157
|
+
**Verdicts**
|
|
158
|
+
|
|
159
|
+
- `✅` — the listing is GitHub's, joined to the local folder names.
|
|
160
|
+
- `⚠️` — listed, with a caveat that changes how the rows read: a paging cap you
|
|
161
|
+
stopped at, or the local fallback listing under its banner.
|
|
162
|
+
- `⏸` — refused before acting: no config, so there is nothing to list against.
|
|
163
|
+
- `❌` — the query was wrong: `--state` and `--all` together, or a status name
|
|
164
|
+
GitHub rejects.
|
|
165
|
+
|
|
166
|
+
**Fields:** `Follow-ups` · `Next`
|
|
167
|
+
|
|
168
|
+
**No `Tracker` row.** This skill names many specs and owns none, so an id row
|
|
169
|
+
would have to pick one. The counts — `showing N of M` — belong to the listing
|
|
170
|
+
above, where the engine already prints them.
|
|
171
|
+
|
|
172
|
+
`Next` is the hand-off: `/spec-start <name>`, with a name copied from a row.
|