speckit-companion-auto
Skill0 starsChanged 50 days agoMITView on GitHub
Companion auto — run the whole pipeline hands-off (specify → plan → tasks → implement → mark-complete), no pauses
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- monicahq/monicaedited, first seen Nov 29, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- monicahq/monica★ 26k66% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository39 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- speckit-analyzeSkill
- speckit-assess-decideSkill
- speckit-assess-defineSkill
- speckit-assess-intakeSkill
- speckit-assess-researchSkill
- speckit-assess-shapeSkill
- speckit-checklistSkill
- speckit-clarifySkill
- speckit-companion-after-convergeSkill
- speckit-companion-after-implementSkill
- speckit-companion-after-planSkill
- speckit-companion-after-specifySkill
- speckit-companion-after-tasksSkill
- speckit-companion-before-convergeSkill
- speckit-companion-before-stepSkill
- speckit-companion-classifySkill
- speckit-companion-doctorSkill
- speckit-companion-implementSkill
- speckit-companion-living-adoptSkill
- speckit-companion-living-coverageSkill
- speckit-companion-living-driftSkill
- speckit-companion-living-moveSkill
- speckit-companion-living-showSkill
- speckit-companion-living-syncSkill
- speckit-companion-living-validateSkill
- speckit-companion-mark-completeSkill
- speckit-companion-planSkill
- speckit-companion-resumeSkill
- speckit-companion-specifySkill
- speckit-companion-statusSkill
- speckit-companion-tasksSkill
- speckit-constitutionSkill
- speckit-convergeSkill
- speckit-implementSkill
- speckit-planSkill
- speckit-specifySkill
- speckit-tasksSkill
- speckit-taskstoissuesSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 34
Add --at "<dispatch time>" when the dispatcher printed one.
- Very specific: line 48
Run the entire Companion pipeline end-to-end and unattended.
- Very specific: line 52
If the request explicitly names a target path (or SPECIFY_FEATURE_DIRECTORY is set), use it.
- Distinctive: line 78
If your host has no way to invoke another command mid-session, fall back to following each command's body faithfully (read it and do …
- Very specific: line 138
If a project has no checkpoint hooks, unattended: true has nothing to act on.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
User Input
$ARGUMENTS<!-- speckit-companion:part step-start -->Record this step's start: before anything else runs
A step's recorded window has to contain the work it claims. Stamping the start partway down the body leaves the extension hooks, and any node above the stamp, outside the window the step later reports. So this is the first instruction in the command, ahead of the hooks.
Let <step> be this command's phase and <status> its in-progress status: specify/specifying, plan/planning, tasks/tasking, implement/implementing.
Which feature directory this step stamps against decides when it stamps.
- A step that mints its own feature directory, meaning any fresh-spec entry point such as
specifyorauto, has nothing to stamp against yet..specify/feature.jsonis this step's output: it still points at the previous spec, so stamping now would write this run's status onto finished work. Resolve the directory first, then stamp the instant it exists, before any other work in the step. - Every other step reads the feature directory it was given, from the invocation or from
.specify/feature.json, which by then points at this spec. Stamp immediately, before the extension hooks and before any node.
In both cases the call is the same:
python3 .specify/extensions/companion/scripts/write-context.py --feature-dir <feature_directory> --step <step> --status <status> --kind start --by extensionAdd --at "<dispatch time>" when the dispatcher printed one; otherwise the script stamps now. Two things keep this honest:
- Run it, never hand-write it. The script stamps the real clock and writes atomically. A hand-authored entry in
.spec-context.jsonis what corrupts the file. - A second start is refused, not reconciled. History is append-only, so if the extension already seeded this step's start, this call appends nothing and the earlier timestamp stands. Running it is always safe; skipping it loses the window.
<!-- /speckit-companion:part step-start --><!-- speckit-companion:part command-spelling -->Name every command the way this project registers it
Commands are named in dot form throughout this body, speckit.companion.plan, because that is their canonical id, and without a leading slash, because the spelling a host actually registers is not always this one. Claude Code installs /speckit-companion-plan. Look at how the commands are installed in this project, under the agent's own commands or skills directory, and use that spelling every time you name one to the developer or dispatch one yourself. A dotted name typed into a host that registered dashes resolves to nothing at all.
<!-- /speckit-companion:part command-spelling -->Outline
Run the entire Companion pipeline end-to-end and unattended. Walk every step in order, specify → plan → tasks → implement → mark-complete, dispatching the same per-step speckit.companion.* commands, never pausing for approval in between, and finish the spec at status: completed.
<!-- speckit-companion:phase gather --><!-- speckit-companion:node resolve-dir -->- Resolve the feature directory — mint a fresh dir for new work. Auto is a fresh-spec entry point, exactly like specify.
.specify/feature.jsonis an output, not an input to reuse: it points at the previous spec (frequently already completed), so reusing it would clobber finished work. Pick the target:- If the request explicitly names a target path (or
SPECIFY_FEATURE_DIRECTORYis set), use it. - Otherwise create the next numbered dir: scan
specs/for the highestNNN-…prefix, derive a 2–4 word short-name from the description, and usespecs/<NNN+1>-<short-name>/. The spec file is<feature_directory>/<short-name>.spec.md(for a named target,<short-name>is its directory name without the numeric prefix). Never write into a directory that already contains a feature spec (*.spec.md, or an olderspec.md) — that's a stale pointer to a prior spec, not this feature. Create<feature_directory>/, then point.specify/feature.jsonat it by writing{"feature_directory": "<feature_directory>"}— that exact key is what the later capture calls resolve the spec through when they run without--feature-dir, so any other key silently drops those writes. Then stamp the specify START as the step-start instruction above directs — the directory now exists, so this is the moment it says to run it, before any other work.
- If the request explicitly names a target path (or
<!-- /speckit-companion:node resolve-dir --><!-- /speckit-companion:phase gather --><!-- speckit-companion:phase orchestrate --><!-- speckit-companion:node orchestrate -->Run the pipeline — every step, no pauses
Run the full Companion pipeline by invoking each per-step command for real, in order, without pausing for approval between them. You are the conductor, not the author: each step's behavior is defined by its own command body — do not write the spec, plan, design docs, task list, or code yourself from scratch. Invoke the command and let it do the step the way it's defined.
This is the rule that makes auto faithful. A standalone speckit.companion.tasks run produces a size-classified spec, a slim plan with its design artifacts (research.md, data-model.md, contracts/), and a wave-structured task list — because those behaviors live inside each command. If you improvise the artifacts here instead of invoking the commands, auto silently drops all of that (no sizing, no design docs, a flat task list) and stops matching the manual flow. So: invoke, don't reproduce.
- Mark the run unattended. This run has no human watching it. Set
unattended: trueso project checkpoint hooks record-and-continue instead of asking (see the unattended convention below) — write it into.spec-context.json:
Carrypython3 .specify/extensions/companion/scripts/write-context.py --feature-dir <feature_directory> --set unattended=trueunattendedforward to every step you dispatch. - Invoke each command in order — actually run it, don't re-enact it. Use your command/skill invocation tool (the same
speckit.companion.*command a person would type) for each step, waiting for its full work to finish before starting the next. Each command does its own size-classification, artifact generation, and capture — your job is only to call them in sequence and not stop:speckit.companion.specify <feature description>— runs the real specify command: classifies size, writes the full spec, persists the size.- Read the verdict before the next dispatch. When specify returns, read
<feature_directory>/.spec-context.json. Ifsizeissimple, or itshistoryalready holds ataskscomplete, specify folded plan and tasks: the leanplan.mdandtasks.mdexist and both steps are recorded. Print[companion] specify folded plan and tasks; going to implement, skip the two commands below, and dispatch implement. A re-run of plan or tasks here would only overwrite the lean files and cost the time the fold saved. Any other verdict runs all three. speckit.companion.plan— runs the real plan command: the slim plan plusresearch.md,data-model.md, andcontracts/(right-sized by the recorded size).speckit.companion.tasks— runs the real tasks command: the wave-structured, dependency-ordered task list.speckit.companion.implement— runs the real implement command: executes the tasks and journals each finish. If your host has no way to invoke another command mid-session, fall back to following each command's body faithfully (read it and do exactly what it specifies — same artifacts, same sizing, same structure); never substitute a quicker improvised version.
- Do not pause at review gates. Where the manual flow would stop and wait for a person at a
gate(review-spec, review-plan, …), auto instead records the checkpoint and continues. Background hooks still fire and review/PR hooks still run — only the human pause is skipped. This is the one behavioral difference from a manual run. - End at
completed. Implement's own final node writes it, throughwrite-context.py --mark-complete, which refuses unless the spec is alreadyimplemented. So the run ends when implement ends — do not dispatchspeckit.companion.mark-completeas a fifth step. There is exactly one writer ofcompleted; never introduce a second. - Degrade gracefully on a one-shot environment. Auto needs an agent that keeps acting after each step finishes. If your environment runs one command and then stops (a plain / one-shot terminal), you cannot chain the steps yourself: run the first step, record its progress, and stop. The run stays valid and resumable — the remaining steps are triggered the normal one-step-at-a-time way (by the developer or the companion panel). No error; auto simply behaves like the manual flow there.
<!-- /speckit-companion:node orchestrate --><!-- /speckit-companion:phase orchestrate --><!-- speckit-companion:phase wrap-up --><!-- speckit-companion:node handoff --><!-- speckit-companion:part timing -->Timing: keep .spec-context.json honest
Record every boundary by running the writer script. Never edit .spec-context.json yourself; a hand-authored edit is what corrupts the file. The model is finish-only: one finish per task and per substep, its duration the gap back to the previous finish. Never a start+complete pair for either, which stamps a 0s tick and measures nothing.
Close your own step, as the last thing you do, after emitting any mandatory after-hook block:
python3 .specify/extensions/companion/scripts/write-context.py --feature-dir <feature_dir> --step <this step> --advance --by ai--advanceappends the step's complete and flipsstatusin one atomic write. It is idempotent and first-writer-wins, so it changes nothing when the after-hook already closed the step, and it is the only thing that closes the step when that hook was printed rather than dispatched. Run it every time, with two exceptions: clarify and analyze use--finish, which records a boundary without owning a status; implement runs neither, because its own final node writescompletedand closes the step in the same write.One finish per substep, the moment it ends. Plan records
researchanddesign, tasks recordsgenerate, implement recordsliving-reviewandliving-foldwhen living specs are on. Never two in one batch, never a separate start: a finish measures the gap back to the previous boundary, so several stamped together at the close of a step read as0seach and record nothing.python3 .specify/extensions/companion/scripts/write-context.py --feature-dir <feature_dir> --step <step> --substep <name> --finish --by aiClosing a task is that task's last action, not a bookkeeping pass you batch later. Feature dir from
.specify/feature.json:python3 .specify/extensions/companion/scripts/write-context.py --feature-dir <feature_dir> --close-task <TaskID> --by ai --did "<one line>" --files "<files>"One call appends the finish with its own real clock, folds it into the panel, and flips that task's box in
tasks.md. Never hand-edit that box or hand-author per-task JSON, and never write a per-task start. Re-closing is safe. Batching is a defect the doctor catches: it names any cluster of finishes stamped seconds apart, because those timestamps record when the batch was written, and history is append-only so it cannot be repaired afterwards. Trust the per-task summaries and their order; the timestamps are best-effort.A fanned-out worker appends only, because folding is a read-modify-write and two folders contend:
python3 .specify/extensions/companion/scripts/write-context.py --feature-dir <feature_dir> --task <TaskID> --kind complete --by ai --did "<one line>" --files "<files>" --appendThe MAIN agent folds each returned result with
--materialize, one at a time, and once more at a wave join as a backstop.- Never write the next step's start. The next command owns it. Writing it here renders a phantom "Generating
<next>…".
<!-- /speckit-companion:part timing --><!-- speckit-companion:part unattended -->Unattended: the "don't pause" signal
This run is unattended: a human is not watching it and cannot answer a prompt. The orchestrator records this by setting unattended: true in the dispatched prompt and in .spec-context.json, and every step you dispatch carries it forward.
What unattended: true means for hooks:
- Checkpoint
prompthooks read it. A project checkpoint hook ("Continue / Fix / Stop") is authored to check the flag: ifunattended, record the checkpoint and continue; otherwise ask the human to proceed. The hook stays declarative: it does not need to know it is in auto, only that the run is unattended. A hook may still log one line such as[hook] checkpoint recorded, continuing (unattended). - Background hooks still fire. A
background: truehook (tests, builds, notifications) runs exactly as it would in a manual run. Unattended skips the human pause, not the side-effects. - Review / PR hooks still run. Anything that produces an artifact or a review still happens; only the wait-for-a-person gate is bypassed.
If a project has no checkpoint hooks, unattended: true has nothing to act on. Set it anyway so any hook added later inherits the contract.
<!-- /speckit-companion:part unattended --><!-- /speckit-companion:node handoff --><!-- /speckit-companion:phase wrap-up --><!-- speckit-companion:part orchestrator -->Node hooks: run the project's before/after inserts
This command is assembled from ordered nodes. A project attaches its own work around any node in .specify/companion.yml, and you are the runtime. Like the rest of the pipeline it must never fail the host command: degrade and continue.
Find the hooks. Look up commands.<this-command>.hooks, whose before and after anchors are keyed by a node id from this command's order. Run a node's before hooks immediately before its work and its after hooks immediately after, several at one anchor in declared order. An absent, empty, malformed or unparseable file means no hooks: run the shipped command unchanged, silently when it is absent and with one short warning when it is broken.
Hook types:
{ type: command, run: "<shell>" }: run it with your terminal tool, then continue. Without a terminal tool, report the command you would have run rather than pretending.{ type: prompt, text: "<instruction>" }: act on the text before moving on.{ type: node, ref: <id> }: carry out.specify/companion/nodes/<id>.mdas part of this command. A missingreffile is a real misconfiguration: report it and stop rather than silently skipping.
Background hooks. Any hook may add background: true: start it and continue without waiting, detaching a command (&, nohup … &) and not blocking on a node or prompt. Report its result whenever it lands. Never background anything that writes .spec-context.json, meaning the timing and capture calls: they read-modify-write a shared file, so two at once lose an update. Background is for slow side-effects like a test run or a build, not for bookkeeping.
A hook anchored to a node this run does not include, because a recipe dropped it, warns once and is skipped. A hook whose own work fails is reported and the pipeline continues, unless the failure clearly makes the rest unsafe.
<!-- /speckit-companion:part orchestrator -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

