@skitterbyte/skitterspec
Spec-driven development for Claude Code — a
tracker-free filesystem workflow. The everyday loop is five verbs:
/spec → /spec-start → /spec-next → /commit → /spec-complete
plan build it test it live save it finish + land
↳ /spec-diff — read what the phase changed
Ships per-spec isolation — a git worktree per in-progress spec, Docker on
demand, host dev servers on reserved ports — and everything below.
|
|
/spec |
Grill to a shared understanding, then write a groomed spec |
/spec-bug |
Reproduce with a failing test, then drive it red→green |
/spec-hotfix |
Fix the released version: fork from a tag, land by tag + cherry-pick |
/spec-incident |
Capture a live outage as a record written during it, fixes linked |
/no-spec |
Work that genuinely has no spec — on its own branch all the same |
/spec-review |
Re-validate a spec against the code; refresh what drifted |
/spec-start |
Put a spec in flight — provision its branch, then build phase 1 |
/spec-next |
Build the next phase of the spec in flight |
/spec-diff |
Read what a phase changed, on a page you can mark up |
/spec-reviewed |
Pick up a verdict pressed when nothing was waiting for it |
/spec-epic-next |
Name the epic member that can start now, to start in a new tab |
/spec-resume |
Go back into a spec in flight, by name or ticket, and act on a message |
/spec-park |
Record what a spec in flight is waiting on: a deploy, a release, a soak |
/spec-to-main |
Land the branch mid-spec, without finishing it |
/spec-complete |
Verify, land, tear down |
/spec-cancel |
Record why, stamp the header, tear down |
/spec-tada |
A ta-da list: what you did today, by project and by spec, plus a standup |
/spec-todo |
Where you left off on your last working day, what is open and what is waiting on you |
/spec-idea |
Capture an idea without specing it — in the tracker or specs/ideas.md — and list or drop the ones waiting |
/spec-init |
Bootstrap or repair the workflow in a project |
/spec-connect |
Point your canonical localhost ports at one spec's stack |
/spec-live |
Check one spec out in the primary checkout, so your running server reloads it |
/allow-main |
Allow writes on the base branch for this session — yours to run, never Claude's |
/allow-project |
Let this session work on another skitterspec project — yours to run, never Claude's |
/spec-skip |
Move on from a phase without a verdict, reason recorded — yours to run, never Claude's |
/spec-epic |
What every member of an epic needs next, in which tab, and the epic page |
The last three are slash commands rather than skills: each pre-executes one
skitterspec spec-env verb and relays it, so only you can run them.
npx @skitterbyte/skitterspec init
This installs the skills + rules into .claude/, scaffolds specs/, and patches
CLAUDE.md. See .claude/rules/spec-planning.md after install to set your
project's typecheck/test/lint commands.
Just you, on a shared repo — init --local
When you are the only one on a team using skitterspec, keep it to yourself:
npm i -g @skitterbyte/skitterspec # or your provider's package
skitterspec init --local
The skills, commands, rules and hooks are installed exactly as above but kept
out of git — each path is listed in .git/info/exclude, the hooks go in
.claude/settings.local.json, and the workflow block goes in CLAUDE.local.md.
Only specs/ is committed, so specs still travel with branches and PRs. Each
spec worktree gets the install seeded in from your checkout, and update
remembers the mode. On a repo where skitterspec is already committed, --local
converts it in place: the files stay on disk, their removal is staged for you
to commit, and nothing touches package.json.
Never for a team. The hooks and rules are policy a team shares; --local
takes them away from everyone else.
Skills and commands call the CLI through whatever is installed — pnpm exec,
npx --no-install, yarn, or the bare binary from a global install — and
never fetch an unscoped package from npm.
Upgrading
npx @skitterbyte/skitterspec update
update refreshes the files it manages (skills, rules, specs/.core docs) and
keeps anything you edited. A file it kept is listed under
customized (kept) with the change it declined summarised as +added −removed:
customized (kept):
.claude/rules/spec-planning.md +34 −13
Add --diff to see those changes as a unified diff before deciding whether to
re-apply your edits on top, or --force to take the package version and lose
them. Your specs/ content and live .core config are never touched.
Pick one distribution
Ticketing sync is a separate superset you install instead of this one:
| Install |
You get |
@skitterbyte/skitterspec |
The base filesystem workflow. No tracker. |
@skitterbyte/skitterspec-linear |
Everything here plus one-way Linear sync (/spec-status · /spec-push, the spec-sync CLI) — repo canonical, Linear a generated mirror. |
Install exactly one — the superset is a strict superset of this package.
Testing UI/API worktrees — /spec-connect
When your app runs from main on localhost, a worktree's changes are
unreachable. Add a dev block to specs/.core/env.config.json listing your host
dev servers (each { name, command, portVar, health?, frontPort? }); /spec-start
starts them on the spec's reserved ports, and /spec-connect <name> points
your canonical localhost ports at that spec (via a small bundled reverse proxy —
no external install), so you test at the exact URL you always use.
/spec-connect main hands the ports back. Exclusive: one spec at a time. See
specs/.core/env.config.md for the dev/proxy config.
Reading the diff — /spec-diff
A phase is built in its own worktree, so git diff in your terminal answers
about the base branch — and a 350-line diff read as terminal text is scrolling,
not review. /spec-diff collects the worktree's changes with git -C and
writes a self-contained HTML page: whole-file context that folds away, a file
tree, new files included. Open it locally, or on a phone over your LAN or tailnet.
The page lands in .spec-env/reviews/<spec>.html, which is gitignored — so
reviewing a branch leaves no change in the branch you are reviewing. The diff never passes through the model, so it costs no context tokens however large it
is; the optional written review (a short read plus flag/confirm/good
notes) is the part that costs, and it is offered rather than assumed.
The page takes a verdict back, and the phase waits for it
Reading is half of it. The page also takes marks — tick ✓ accept per file as
you read, write a note against a line or a whole file, answer the questions a
written review asked — and then ends in a decision:
| Button |
Does |
✓ Commit |
commits the phase, and stops |
✓ Commit & Continue |
commits, then builds the next phase — and stops there |
✓ Commit & Start |
on a freshly written spec: commits it and puts it in flight. The commit && /spec-start you would otherwise type |
↺ Request changes |
sends your notes straight back to be worked |
… Discuss first |
reports what you wrote and asks what's up |
The last one appears only on a spec's own page — a spec with no phase in flight
has nothing to continue — and ▶ Put it live sits above them all, which is not
a verdict: it commits the phase, checks the branch out where your dev server can
see it, and hands you back the same page. It clears no gate.
/spec-next ends a phase by rendering the page and then watching for that press,
so the button is what carries the work on — there is no command to
remember. A press on a page the engine served reaches it directly; a file://
page has no server to talk to, so it copies the pass and you paste it.
A verdict sent when nothing was watching is not lost. Type
/spec-reviewed to pick it up — bare when one is waiting, or
/spec-reviewed 324199 to name one exactly, which matters only when two are.
It is the only path the harness itself enforces: the model cannot run it, so a
pass picked up that way is only ever picked up because a person asked.
Fixes come back as resolutions, so the next render shows each note struck
through with a one-line account of what changed — you verify the fix rather than
trusting it. An accept remembers the file's content, so it lapses by itself when
that file changes again, announced rather than silent.
The marks are information, never a gate:
nothing counts them, and the verdict is the one thing you choose, once.
Or let it run start to finish
/spec-start <name> --auto (or > **Run:** auto on the spec, or
auto.default: "auto" in env.config.json) builds every phase without waiting
for a verdict. Each phase is committed and its page kept as a read-only
snapshot, listed as they land on the run index at <spec>/run. The run stops
and waits for you on red tests after auto.maxFixAttempts tries, a
Blocked on: line, steps only a person can do, or a decision the spec left
open; Commit & Continue on that page resumes it. It ends as auto.then or
--then says:
pause: one final page with every phase's follow-ups and notes above the
whole-branch diff, offering Complete, Push branch and Open PR
push: push the branch, spec still in flight
pr: /spec-complete's PR run, with each phase's commit in the PR body
Naming push or pr is the push consent for that run. A push notification
says when it finished or stopped, and a PreCompact hook records how often the
context compacted. --supervised on any command turns it back off.
Every page carries its report. Supervised or not, the table a phase ends
with in the terminal (Built, Tests, Notes, Follow-ups) is on that phase's page
too.
A phase that ended owes an answer
The gate is armed when a phase ends and its page is rendered, and exactly two
things clear it: a committing verdict, or
skitterspec spec-env review skip "<reason>". While it is armed /spec-next
refuses to build the next phase, and — where the hook is installed —
git commit refuses in that worktree. Mid-phase renders arm nothing, every
cannot-tell exits 0 and says nothing, and review.required: false turns it off
for a project. The exit is always one command, and one of them is "I am moving
on" with the reason on the record.
Where the page can be read
Every render prints one line per surface, labelled, so you pick the one that
reaches you rather than the engine guessing:
local: http://127.0.0.1:7760/7e9e123e7540/feat-orders
network: http://192.168.0.136:7760/7e9e123e7540/feat-orders
remote: http://100.126.111.34:7760/7e9e123e7540/feat-orders (tailnet)
live: off — /spec-live to put it live
Each line is labelled by what the address is: local is this machine,
network your LAN, remote your tailnet. They are three doors into one room —
the same server, the same waiting verdict — so one wait covers them all. On a
machine with no tailnet address the remote line says so. The live: line is the other way to judge a
change: whether it is also running, and the page has a button to put it
there.
The random-looking segment in the URL is a serve token — 48 bits minted per
server, and the only thing deciding who can POST a verdict at all. That, and why
/spec-reviewed is user-only, are written up in
.claude/rules/spec-reports.md and .claude/rules/spec-planning.md, which
init installs into your project.
The review.* config keys
All optional, in specs/.core/env.config.json: