/repomatic:repomatic-ship [--deep]from Repomatic
Drives a release from working tree to ready-to-merge PR: reconciles changelog, code, and docs, commits, pushes, and monitors CI until the release PR is green.
Ships in Repomatic. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
When the harness leaves these ! lines unexpanded, as pi does, run them first.
!grep -m1 'version' pyproject.toml 2>/dev/null
!awk '/^## \[/{n++} n==2{exit} {print}' changelog.md 2>/dev/null
!git tag --sort=-v:refname | head -3 2>/dev/null
!git log --oneline -25 2>/dev/null
!git status --short 2>/dev/null
![ -f repomatic/__init__.py ] && echo "CANONICAL_REPO" || echo "DOWNSTREAM"
!grep -rhoE 'kdeldycke/repomatic/[^@ ]+@[0-9a-f]{40} # v[0-9.]+' .github/workflows 2>/dev/null | grep -oE '[0-9]+\.[0-9]+\.[0-9]+$' | sort -u | sed 's/^/WORKFLOW_PIN=/'
You drive a release from a working tree to a ready-to-merge release PR: reconcile the tree to its net state since the last tag, validate it locally, commit and push, then babysit CI until the auto-generated release PR is green. You stop there: the human marks the draft release PR ready for review and performs the final "Rebase and merge".
The release is push-driven: the prepare-release job in changelog.yaml runs repomatic prepare-release on push to main, once the unreleased changelog section holds an entry, to build the freeze and unfreeze commits and open the release PR. Do not run prepare-release yourself: a local run previews a freeze that must not be committed (it marks the changelog "released", and on the canonical repo rewrites every workflow action ref). Your job is to make main clean enough that the auto-generated release PR is correct, then keep main green.
git commit, git push, and subagent write; step 4 shows the consolidated changelog diff before the first commit prompt, so approving that commit is the review gate and denying it stops the run. --dangerously-skip-permissions removes these prompts and the auto-mode classifier, so the full sequence runs autonomously. Some checks stay on in Claude Code 2.1.326: a deny rule blocks the call it matches, and an ask rule prompts. A few safety checks also prompt. The flag also lets Claude Code run a command outside its own sandbox without asking, unless sandbox.allowUnsandboxedCommands is false. A session under the flag can carry a While bypass permissions mode is active: reminder, but not every one does: run the same sequence either way.CANONICAL_REPO, use uv run --frozen repomatic: without --frozen, an edit to pyproject.toml makes the local uv relock uv.lock. Otherwise use uvx --exclude-newer '{window}' --exclude-newer-package repomatic=P0D --from 'repomatic==X.Y.Z' -- repomatic, with X.Y.Z the WORKFLOW_PIN the context shows. Read {window} from the workflow-level UV_EXCLUDE_NEWER of .github/workflows/tests.yaml or release.yaml, which repomatic init renders from [tool.repomatic] minimum-release-age. This applies the supply-chain cooldown to repomatic's dependency tree while keeping a fresh release installable. The pin matters because the tool registry ships inside repomatic: a newer release pins newer ruff, typos or mypy than the ones CI runs, and a gate built on it stops reproducing CI. Drop the --from clause only when the context shows no WORKFLOW_PIN. References to <cmd> below resolve to one or the other.Skill tool can load an installed copy from the last release, older than .claude/skills/. Read the repository copy instead, and tell each spawned agent to do the same. This skill is no exception: its slash command can load the installed copy, so diff it against .claude/skills/repomatic-ship/SKILL.md and follow the repository copy.Edit/Write. The changelog is the exception: a skill is instructions rather than an actor, and /repomatic-changelog tells whoever loaded it to apply the consolidation directly, so you write changelog.md inline.The sweep agents (step 1) and the babysitter (step 6) all follow these rules. Restate them in every spawn prompt: a spawned agent only sees what the prompt carries.
Co-Authored-By: Claude <[email protected]> trailer by default, so unattended changes stay traceable, and that default holds even where a downstream AGENTS.md says nothing about commit attribution. A maintainer's explicit standing rule against AI attribution outranks it, because the trailer lands in their repository's permanent history. Check for such a rule before the first commit: stripping a trailer from an already-pushed commit needs a force-push, which is off-limits. When an exemption applies, write it into the spawn prompt of every agent that may commit: a withdrawal issued mid-run can arrive after the agent has committed.SendMessage to the spawning (main) session, naming that recipient explicitly: the spawning session answers to main, while an invented label like "orchestrator" or "main-orchestrator" resolves to nothing. An agent type whose tools: line omits SendMessage (qa-engineer, sphinx-docs and grunt-qa) can still hold it when spawned with a name. When no message arrives, read the idle notification's text before chasing, since it can carry the report of an agent that could not send one. Chase once when it holds none; the tree (git diff) stays the authoritative record either way. Do not pair the message with a "write the same report to a file" fallback: the harness refuses a spawned agent that write. Ask for numbered messages of at most 6000 characters each: a longer report arrives truncated, and its tail holds the verification lines.<cmd> before it reaches a spawn prompt. <cmd> is this document's placeholder, not a shell command, and a prompt that carries it verbatim (or half-expanded) hands the agent something that cannot run. The trap is run <tool>: the tool registry supplies most of them, so dropping the repomatic run prefix fails outright. A spawn brief that expands <cmd> run mypy -- into uv run --frozen -- mypy -- dies on Failed to spawn: mypy, since mypy is not a project dependency. Write the invocation out in full (uv run --frozen repomatic run mypy --) and let the agent report back if it does not resolve.2.1.284, 2026-10-04): its final report then answers none of the messages sent during that turn, and a second report follows once it has read them. Before you chase, check that it shows as running again. After tasking a running agent, confirm the tree reflects the request (git diff the target file) before moving on. Read fresh every time: an edit can land in the gap between two checks. Grep for the absence of the old text (grep -c '<old phrase>' <file> returning 0) instead of eyeballing a diff.checkout, restore, stash, reset, clean), which silently discards the other agents' uncommitted edits. The rule binds investigation too: an agent comparing its file against the committed state reaches for git stash, which takes the whole tree. Say so in the spawn prompt, and name the read-only alternative beside it, git show HEAD:<path>. For full isolation instead, spawn with isolation: "worktree" and merge on join: disjoint files won't conflict.probe.py overwrite each other. Name a subdirectory per agent in every spawn prompt, and mark the orchestrator's own inputs there as read-only.git commit <path>, never -a). Uncommitted files an agent did not create are the maintainer's in-progress work: never revert them and never sweep them into a commit. So is a hunk the agent did not write inside a file it edits: report it, and never document or build on it.Agent or inline. When an Agent spawn itself fails (a terminal API error), do the work in the main thread. An agent that dies mid-run (a machine put to sleep, a lost login, a restarted session) sends no report and can stop halfway through a refactor. A SendMessage resumes it only while the session that spawned it is alive. Before you take its lane over, prove the package still imports, then read its diff file by file.Run the deep pass first when the invocation passes --deep. Read references/deep-pass.md before it starts. The pass refactors the whole repository in phases, its own instruction files included, commits and pushes each phase on its own, and gives step 1 the moves and removals it made.
A release materializes the net state since the last tag, not the path taken to reach it. Reconcile the changelog, the code and the docs against git diff v<last>..HEAD. Order matters: the changelog describes the net change, so reconcile the substance first (code and docs in parallel), then summarize it (changelog). A change introduced and then reverted before release is a no-op for users: no changelog entry, no scaffolding, no docs mention.
Fetch the tags before you read the cycle. The context lists local tags, and the pipeline tags the freeze commit only after the merge. A checkout pulled before then lacks that tag. Its last tag is one release old, and v<last>..HEAD spans a cycle that already shipped. Run git fetch --tags origin first.
Stop when nothing is left to ship. That is the case when the unreleased section is empty and git log v<last>..HEAD lists only the post-release bump. Never backfill a bullet to cut an empty release: consolidation rule 07 covers a mechanical cycle, and the bump alone is no cycle. Check the last release against § What a complete release looks like instead. A release still in draft waits for its binaries, then publishes with whatever built. Follow its runs to the end with <cmd> ci-status --branch main --wait --until-change --state-file <path>, run again until every run settled: a plain --wait returns on the first red cell. Then report what the release lacks: a missing binary is a short ship.
Before spawning, capture the unstaged diff (git diff against HEAD): those lines are the maintainer's in-progress drafts, not cycle work. Pass both diffs to each agent with the rule: preserve every line present only in the unstaged set (a curated TODO, a scratch note in a docstring) unless the maintainer explicitly asked for cleanup. Without the guard an agent strips unstaged scratch as "cycle scaffolding". When in doubt, leave it.
Capture the job-level red inventory in the same breath: run <cmd> ci-status --branch main, which reads the latest run of each monitored workflow on main and lists every failed job, ⁉️ probes included: continue-on-error folds their crashes into a green run-level conclusion. Read release.yaml's canary ✅ <os>, <sha> build job too: its Self-test binary step runs the CLI test plan against the freshly compiled binary, and a toolchain pin bump upstream (a Nuitka release miscompiling a dependency) reddens it with no line of this repository changed. A push compiles only the [tool.repomatic] nuitka.dev-targets canary, so read the newest schedule or workflow_dispatch run of release.yaml as well: gh api 'repos/<owner>/<repo>/actions/workflows/release.yaml/runs?branch=main&event=schedule&created=>=<date>', the same call with event=workflow_dispatch, then gh run view <id> --json jobs. Keep the created filter: without it the page can be days stale. That run alone builds every platform, and a break on one platform, like a Windows console that cannot encode a table, shows nowhere else. Under step 6's genuinely-green goal those reds are release work, and every one fixed before the first push saves a 40-90-minute babysit round-trip: seed the code agent's brief with the list.
Scan the open autofix PRs in the same breath, and read their diffs rather than their titles. An unattended fix-*/format-*/sync-* PR is a pending write to main that no one reviewed, and merging one mid-release silently reverts committed work: <cmd> ci-status --automation-prs lists them with how far each lags main, then gh pr diff <n> on every one. Look for a false positive: a "fix" that is wrong in this repository and that the job re-proposes until the rule is taught otherwise. The tell is a diff that undoes something a human deliberately wrote. Fix it at the rule, not the file: add the word to [tool.typos] default.extend-words, the path to the linter's ignore list, the pattern to extend-ignore-re. Reverting the file alone guarantees the same PR returns on the next run.
Judge that diff against current main, not against the PR's head. An open PR is pinned to the commit it branched from, so its diff can describe a file the maintainer has since fixed. Rewording is the third option beside allowlisting and reverting: dropping the trigger word also stops the job re-proposing, and a rule landed on top of it then allowlists a word that appears nowhere. So git grep the trigger before writing a rule for it, and when the maintainer already solved it their way, leave it alone. Closing or merging the PR is theirs to decide: surface it, land the rule-level fix only while the trigger is still live in the tree, and say either way in the step-7 report.
Read the merged automation PRs too, for a follow-up their job left to a human. A sync-uv-lock run that prunes an exclude-newer-package entry cannot rewrite the comment that justified it, so its PR body asks for that edit in a > [!WARNING]. The merge leaves the edit undone, and no later run asks again. List the cycle's candidates with gh pr list --state merged --search 'merged:>=<last-tag date>' --limit 200 --json number,headRefName,body --jq '.[] | select(.body | test("\\[!WARNING\\]")) | [.number, .headRefName] | @tsv', then read each warning. Add every request still live in the tree to the brief of the lane that owns its file. The prepare-release body carries a squash warning, which asks for no edit.
Always read that run's head_sha, and treat a red as live only if nothing since it could have fixed it. Most monitored workflows carry a paths: filter, so a commit that touches nothing in the filter triggers no run. When that commit is the one that fixed the red, the latest conclusive run stays pinned to the superseded parent and keeps reporting a failure that no longer exists. Before adding a red to the brief, run git log --oneline <run head_sha>..HEAD and check whether an intervening commit touched the failing area; when the answer is unclear, settle it for the cost of one dispatch (gh workflow run <workflow> --ref main, no commit, no PR churn) rather than reasoning about it.
A cancelled verdict of ci-status is no result, and never a green. Settle it with a dispatch (gh workflow run <workflow> --ref main, no commit, no PR churn) or by waiting out HEAD's own run, never by recording "no reds".
A run still going holds no inventory yet. Spawn the lanes anyway, run <cmd> ci-status --branch main --wait in the background, and send each repo-fixable red to the code lane.
The three substance passes own disjoint lanes (code owns Python including docstrings, docs owns prose under docs/ and readme.md, bundled assets owns .claude/), so spawn every lane that has work as one Agent call each, all in a single tool-call block: sequential spawns waste the wall-clock of whichever finishes first.
On a cycle whose diff spans hundreds of files, split the code lane into disjoint halves by package area. Each half owns its modules and the tests that target them. Every split lane runs focused tests with --no-cov, so concurrent runs never share coverage data files, and step 2 runs the full suite. The docs build then moves to the orchestrator. Build HEAD and the last tag in throwaway worktrees at spawn time. Route each warning that only the HEAD build reports to the lane that owns its file.
Code: an Agent that reviews every file changed since the last tag for reuse, quality, simplification, and deduplication, and fixes what it finds, simplifying before adding: existing code or a tool often already covers the case. Two layers: first strip scaffolding from reverted or superseded work within the cycle diff (abandoned workarounds, dead branches, WIP notes that never shipped); then harmonize what remains (collapse duplication, lift repeated literals to their canonical source, align new code with module patterns). Its constraints:
importorskip of Sphinx, where only the docs build installs it) guards nothing: test the fix where the suite runs, or keep the fix without the test and say so in the report.<cmd> run mypy (pinned version and --python-version), never a bare mypy whose newer interpreter raises false positives CI never sees. Pass it no arguments, exactly as step 2's Types gate does: the runner then resolves the file list CI's lint job checks, which is every *.py file that .gitignore does not exclude, tests/ and docs/conf.py included. A downstream AGENTS.md "type checking" command is often the narrow dev-loop form scoped to the package only: do not inherit that scope, since a package-only run stays green on a tests/ or docs/ type error that reddens Lint post-push. Run it in the all-groups environment of step 2's Types gate: the shared .venv holds no type stubs./repomatic-deps modernize --no-bump through the Skill tool. It adopts only what each declared floor provides, and it reaches past the cycle diff: a dependency the cycle moved has call sites in files the cycle never touched. It raises a floor only where the code already calls an API the floor lacks, and step 2's lint-deps then says whether the release waits. List each adoption that needs a higher floor in the report: step 7 passes it on, for a modernize run after the release. When the skill is excluded, apply that rule inline. On a split code lane, the orchestrator runs the pass once both halves join, since two halves would edit the same call sites.uv --no-progress run --frozen -- repomatic are the intended unfrozen state (the freeze commit rewrites them to a uvx 'repomatic=={version}' PyPI pin at release): never flag the local form as a pin regression or downstream breakage.{scratch} a directory outside the repository: UV_PROJECT_ENVIRONMENT={scratch}/docs-venv uv run --frozen --all-extras --group docs -- sphinx-build --fresh-env -b {builder} docs docs/_build/{builder}, with {builder} the [tool.repomatic] sphinx.builder value that docs.yaml builds with (html by default). The shared .venv then keeps the CI-matching groups, which the docs group would perturb (see step 2's --all-groups warning). --fresh-env re-reads every page: an incremental build reports warnings only from the pages it re-read. A checked-in :mirror: block whose cells embed source-line anchors is invalidated by every edit that moves a line in the anchored modules, docstring rewraps included: expect the update-docs autofix PR to refresh it after the push, and take that PR's file (gh api 'repos/<owner>/<repo>/contents/<path>?ref=update-docs' -H 'Accept: application/vnd.github.raw') when a local regeneration would differ from CI's, as a terminal-dependent width does, or when gh pr merge is permission-walled. A <!-- matrix --> region with a dependency axis goes stale with no edit in the tree when that dependency publishes during the sweep. Just before the commit, run click-extra refresh-directives --check docs readme.md behind the same docs-venv uv run prefix: the command needs the click-extra[sphinx] extra, which the docs group installs and a test group can lack. Refresh a stale matrix with the same command, without --check. Build only into the gitignored docs/_build, never an ad-hoc path: a stray build tree pollutes git status and trips tool scans like run typos.git worktree, then compare the two warning lists with their line numbers removed. A warning the tag build lacks is one the cycle added: fix it. A warning both builds hold predates the cycle: report one count per category, and leave it. The tag worktree resolves the tag's own lockfile, so the two builds also differ by the dependency bumps the cycle carries. A new warning a bump surfaced on a reference an earlier cycle wrote is bump fallout, not cycle work: report it with the pre-cycle counts instead of fixing the docstring in the reconciliation. Tell the two apart by grepping the cycle diff for the reference: one it never touched was resolving before the bump.⁉️ probe) and fix it at the source per step 6's taxonomy, even when the failing file saw no change this cycle.**Breaking:** bullet only when it cannot keep working. A moved name can still resolve at its old address without a warning, through an import the old module keeps for its own use: give that address the warning too, or the removal release finds nothing to remove. A field inserted among the released ones of a named tuple breaks positional construction: append it with a default, and give the unpacking break a bullet. A name the deep pass removed or changed on purpose gets the bullet, never a revival. A public constant whose value changed gets its released value back, or a bullet. An added name that no unreleased bullet names goes in the report, for step 4. The commit trail hides each of these: a deduplication pass drops a public constant as dead code, and its commit names no API change.```{todo} admonition where Sphinx renders it, not in a bare # TODO/XXX comment: a comment never reaches the published todo list. This applies to committed cycle-diff lines only: a # TODO present only in the unstaged set is the maintainer's draft and stays untouched.{todo} whose trigger fired, deleting the shim it guards in the same edit. Bound the check to what moved: git diff v<last>..HEAD -- pyproject.toml uv.lock plus the tool-version registry names the upstream releases this cycle actually adopted, and a todo naming one of them is the only kind worth re-reading. Read the trigger's own wording against that diff: a todo waiting on the dependency floor fires only when pyproject.toml raises it, never on a uv.lock bump that merely installs the release, and a shim the old floor still needs gets its todo re-scoped to that floor rather than deleted. Never poll every linked ticket, and leave a todo whose trigger has not fired alone.{todo} that schedules its work for the version this release cuts ("In X.Y.Z, ...") is due whatever moved. Grep the {todo} admonitions for that version, and report each match for step 7: its work lands before the merge, or the maintainer moves the todo to a later version. Never add a public name that such a todo asks for: that decision is the maintainer's.Docs: an Agent that verifies prose docs against current behavior, not the journey (version references, CLI output, removed or renamed features go stale every cycle). Its constraints:
uses: refs) track the latest released tag, never the version being prepared, because the docs site deploys on every push to main. "Manually-maintained" is not a synonym for "under docs/": the freeze reaches into that tree in every repo. It pins the {package}==X.Y.Z and {package}@X.Y.Z examples of each top-level page of docs/ but the changelog pages, and on the canonical repo the download URLs of docs/install.md too. So decide file by file from the freeze's actual scope per the next bullet, never from the path. The tracking runs both ways: advance a sample that lags the released tag (still at N-1 after release N published) up to it, applying the bump directly; only bumping a sample forward to the not-yet-released version is off-limits. A dev-build banner (a --version transcript run from a checkout) is the exception: no checkout prints a released version, so the banner shows the dev version of the cycle that captured it. Refresh it to the current dev version or leave it, and never report it as lagging. Grep every version string in docs/ and readme.md rather than trusting a sub-agent's list.changelog.md, citation.cff, __init__.py, pyproject.toml and the pinned examples of its docs/ pages. Read the last freeze commit's actual diff (git show <last-freeze-sha>, never just --stat) and treat every version sample it does not rewrite, readme.md quick-start output included, as hand-maintained tracking the released tag.--stat clears the whole file and the stale ones survive.git log -S '<the literal string>' -- <file>, which shows whether a freeze commit or a human last moved it.changelog.md says nothing about the repomatic freeze, which also rewrites citation.cff, __init__.py, and pyproject.toml: treat every version sample as hand-maintained until the regenerated release PR's diff shows the new freeze's actual scope.pyproject.toml's urls.Download reading .../releases/tag/vX.Y.Z.devN (a tag that has no GitHub release yet) is the expected post-bump state that the freeze rewrites to the release tag at cut. Classify a version string by which mechanism owns it before judging it stale.autofix.yaml's update-dep-graph job. It runs on every push, unless [tool.repomatic] dependency-graph.update is false, and delivers each refresh through its own PR. docs/assets/dependencies.mmd therefore lags pyproject.toml only while that PR is open: a dependency added since the last refresh is expected to be missing until the PR merges. Never hand-forge the file, and never run <cmd> update-dep-graph to "fix" it mid-sweep: a local run uses whatever repomatic version the sweep resolved rather than the version the job pins, so it produces churn the next regeneration reverts. Classify a stale-looking generated artifact by the job that owns it before reporting it as drift.{pkg}-{X.Y.Z}.tar.gz into ~/rpmbuild/SOURCES, then builds {pkg}.spec with rpmbuild, resolves Source0 through the spec's own %{version}. The tell is that the literal sits inside a procedure invoking a file in the repository: read that file's declared version before touching it. git log -S '<the literal>' settles the owner, since a derived value is written once by the commit that added the recipe.members mapping, a member_ids set, a name list) or carries a mirror-src diagram lags the moment an entry is added, and nothing reports it. Check every such block against the live collection, and derive the file set the change owes from the previous commit of the same kind: git log -S '<a sibling entry>' finds the commit that added the last one, and its diff names each file that change had to touch.{click:run} invocation that no longer parses renders the usage error into the published page instead of failing the build (only click:tree and click:config hard-error). Verify each {click:run} invocation against the current CLI, or grep the built HTML for Error: No such option-class output. Check that each block renders output too: a command can exit 0 and print nothing to the page, which no error grep catches.git log -S, or read the commit that introduced it). When the older figure entered earlier in this same cycle and a later commit measured the thing again, it is superseded intra-cycle scaffolding, which layer 1 of the code pass strips like any other. Replace it, and cite the surviving measurement's source beside it. Only when neither figure obsoletes the other are they independent measurements, and only then does the report-don't-touch rule above apply.sphinx-build into the same output dir. The docs pass's own edits render only in a later build: the orchestrator checks them in the last build of the owner, so the docs pass never waits on a rebuild.uv run form as the tests, group list included. Another group list re-resolves the shared environment, and a test parametrized over installed plugins then collects a different set..py file (typically docs/conf.py) is re-verified with a bare <cmd> run mypy before the agent returns: docs/conf.py may import from the docs group's higher Python floor while mypy checks the project minimum, and the break otherwise surfaces only in CI's lint job. Give it no arguments, per step 2's Types gate.## [X.Y.Z] blocks) are immutable history: a command, option, or config key named there was correct for that release, so never flag or rewrite a since-renamed name in one. When the changelog seeds the checklist for a rename, reconcile only the unreleased section.```{todo} on a docs page follows the same two rules the code pass applies to docstrings: pending work the cycle introduced is written as one rather than as a loose closing sentence, and one whose trigger fired this cycle goes, along with the paragraph it qualified.Bundled assets: an Agent (use qa-engineer, the gatekeeper for agent and skill definitions) that checks .claude/skills/** and .claude/agents/** against what the cycle actually changed. These files deploy verbatim to every downstream repo through repomatic init, and neither substance lane owns them: the code pass sees no Python and the docs pass is scoped to docs/. Its constraints:
docs/ URLs or paths), since downstream repos have neither.Downstream, the lane covers only what the repository authors. A skill named in <cmd> list-skills, or an agent that repomatic init subagents installs, is a synced copy: the next sync overwrites an edit to it, so report a stale claim in one for step 8 instead. When the repository tracks no skill or agent of its own, skip this lane and spawn the code and docs passes alone.
Changelog: once the substance passes settle, invoke /repomatic-changelog consolidate through the Skill tool, so the consolidated entries (and the version advisory reading them) reflect the reconciled tree, renames included. It collapses superseded values and drops intra-cycle reverts. Consolidation assumes the entries already exist: when the unreleased section under-represents the net cycle (a maintainer left one stub bullet for a multi-feature cycle), run add first, or the bare /repomatic-changelog default that runs add then consolidate. When both add and consolidation find nothing user-facing (a purely mechanical cycle), consolidation backfills one generic maintenance bullet rather than leaving the section empty (/repomatic-changelog consolidation rule 07). If the skill is excluded here, degrade gracefully (sub-agent rules). A long unreleased section needs each bullet checked against the last tag. Hand that read-only check to parallel agents while the substance lanes run: it does not depend on the sweep. An in-cycle bug fix, a removal of a name the last tag never had, and a stale path all surface there. So does a change no bullet covers. On the canonical repo, the sync-tool-versions commits move the repomatic run pins and write no bullet, so the net registry diff needs one.
A clean cycle, where every change since the last tag is already at its net end-state, is a normal outcome. With no working-tree edits, the commit-and-push spine collapses and three steps change shape:
HEAD of main), so read its result with <cmd> ci-status --branch main instead of paying for a fresh gate. Still quick-run the time-dependent external smoke checks (<cmd> run typos, <cmd> audit --fix): re-published binaries and new CVEs drift independently of code.<cmd> ci-status --release-pr reports an open release PR that lags main by 0 commits, confirm every stable job on HEAD is green and go to step 7, spawning /babysit-ci only on a real failure. When no current PR exists (the last push missed changelog.yaml's paths: filter), trigger one with gh workflow run changelog.yaml --ref main, still with no commit.Steps 3, 4, and 7 are unchanged: the version advisory and the (empty) changelog diff still inform the maintainer.
When the sweep's edits are confined to prose and Markdown (docs/, readme.md, changelog.md, .claude/; no .py, no pyproject.toml, no uv.lock), the full step-2 gate is disproportionate. Narrow to what step 1's docs and bundled-asset passes do not already own: <cmd> run mdformat --verify -- <file> over the changed Markdown, plus <cmd> lint-changelog when changelog.md changed, plus every test that reads an edited file. Find those with git grep -l -F '<file name>' -- tests/ for each changed path, and again with its built name (install.html for docs/install.md): a readme roster test or a docs conformance test takes prose as its input, and CI may never run it, since a workflow paths: filter can omit the prose file it reads. Run it in the same position as the full gate: before the step-5 commit and push, never after.
When the sweep rewrote code, prove it green before paying for a CI round-trip (no edits: see above). Launch the slow checks (tests, types, changelog lint) in parallel in the background, act on the fastest failure first (mypy and ruff in seconds, pytest in minutes), fix in the working tree, re-run only what failed, and iterate until every check is green. A check earns a blocking seat only while it reports faster than CI would surface the same failure: the push is what starts the 40-90-minute matrices.
First read CI's conclusions on HEAD (<cmd> ci-status --branch main): every red job there is cycle work this release must fix, and no "pre-existing failure" claim from the sweep is valid until checked against it.
"The source did not change" never proves "the check still passes". An in-cycle lockfile bump can invalidate type: ignore comments and override signatures with zero source changes.
The checks:
uv run --frozen --all-extras --group test pytest --no-header -q. That group list mirrors repomatic's own tests.yaml. Downstream, pass the groups the repository's tests.yaml installs: a cell that also installs docs runs tests that a test-only gate skips. Exception: an integration-heavy suite driving real external tooling can outrun a local background timeout and need tools not installed locally, so it is not a fast gate. Skip it, keep the rest of the gate, and treat the CI matrix on the exact commit as the authoritative test signal (step 6 covers dispatching one). Between the extremes, a suite whose local runtime approaches CI's fast platforms (~5-8 minutes from push) stops blocking: start it with the gate, push once every fast check is green, and fold the still-running suite into step 6 as the first babysit channel. Start the suite through the tool's background mode, never with & inside the command. A non-interactive shell starts a & job with SIGINT ignored, which fails every test expecting Python's KeyboardInterrupt handler. A test that restores the default handler then ends the whole run with exit code 130.<cmd> run mypy, with no arguments. The runner resolves the file list CI's lint job checks: every Python file that .gitignore does not exclude, docs/conf.py and an untracked file included. Do not pass directory names instead (<cmd> run mypy -- repomatic tests docs): directories change module resolution enough that mypy follows an installed dependency's own source, so a package pulled in by the docs group and written for a newer Python fails the run under --python-version 3.11 with a syntax error in a file this project does not own. Run it in an environment synced like CI's lint job, which installs every dependency group. Sync one with UV_PROJECT_ENVIRONMENT={scratch}/mypy-venv uv sync --frozen --all-extras --all-groups, and set the same variable on <cmd> run mypy. A venv synced with the test groups alone reports each missing type stub as an import-untyped error.<cmd> lint-changelog. Its date check skips the unreleased section, and re-checks live any release the cached lookups miss, unless its section already records the gap. A ⚠ X.Y.Z: not found on PyPI warning therefore names an earlier release missing from PyPI: report it, though it does not block this release.<cmd> lint-deps. It reads pyproject.toml and uv.lock, and asks PyPI only about a floor below a locked release still inside the cooldown. It covers the one release failure nothing else in this gate can see: a [tool.uv.sources] override never reaches the published metadata, so tests, types, formatting and the build all pass on a tree whose wheel every user then fails to install. Run it even on a docs-only cycle, where a lockfile bump can still have moved a source. A blocker naming a git source paired with a .dev floor is the sync-dep-sources idiom mid-flight: wait for that swap PR, and do not edit pyproject.toml by hand. The release lane carries the same check as a hard gate, but it fires after the freeze commit is already on main, where the only recovery is to burn the version and ship the next one.uv run ruff:
<cmd> run ruff -- check and <cmd> run ruff -- format, and read git diff. Both write in place, but check only does so because the resolved ruff config sets fix = true: a repo carrying a [tool.ruff] section without that key gets a read-only check and an empty diff that means nothing. An empty diff past your reconciliation edits is green; fold a legitimate style fix into the reconciliation. Where the config does set it, that write is repo-wide rather than scoped to the cycle: a repo carrying pre-existing findings has them fixed in files this release never touched, and each one must be reversed before staging. Pass --no-fix when you only want to read the state. That write also runs against your own reconciliation: a compatibility re-export is exactly what F401 deletes, because the old module's body never names it, and the diff then reads clean because the file is back to its committed state. A cycle that moves public symbols to a new module routes each old address through the deprecation mechanism of step 1: a plain re-export resolves without a warning. A PEP 562 __getattr__ alias warns, and holds no import for F401 to delete. Confirm each old address still resolves and warns by importing it, not by reading the diff.<cmd> fix-long-lines over the Python files that differ from HEAD, and read git diff again: git diff --name-only --diff-filter=d HEAD -- '*.py' | xargs <cmd> fix-long-lines. It runs last, as in the autofix.yaml workflow's format-python job, and wraps the comment and docstring lines that ruff leaves too long. Never pass a shell variable holding the space-separated list: the command takes it as one path, and rejects it with File 'a.py b.py c.py ' does not exist.git diff shows them mixed with what the formatters wrote. Copy the changed files aside before the sequence, then compare each one against its copy: an empty comparison is the green. A per-tool --verify cannot replace this: fix-long-lines has no such mode, and it wraps the lines as ruff format leaves them.changelog.md, docs/), ask <cmd> run mdformat --verify -- <file>. It reports what the write path would change without touching the tree. Never a bare mdformat/mdformat --with mdformat-myst, whose plugin set rewrites MyST directive colon-options (a {list-table}'s :header-rows:/:widths:) to --- frontmatter form, diverging from CI's autofix.fix-long-lines leaves a line it cannot shorten for a human to reword, like a string literal, a trailing or pragma comment, a docstring summary line, or a line of a code block, doctest or table in a docstring. lint-python then fails on its E501. Run <cmd> run ruff -- check --no-fix after the sequence, and shorten each line it names by hand.pyproject.toml, run <cmd> run pyproject-fmt before any uv lock. Nothing else in this gate formats that file, so skipping it leaves CI's format-pyproject job to open a pull request mid-release. Running it after the lock respells a specifier the lock already recorded (>=9.0 becomes >=9), and uv lock treats the two spellings as equal, so the lock keeps the stale one until an unrelated change rewrites it..github/workflows/: <cmd> run actionlint --, <cmd> run zizmor -- ., and <cmd> run yamllint -- over every workflow. Nothing else in this gate reads workflow YAML, yet step 1's code pass is told to edit it, and on this repo a bundled workflow carries a regression to every downstream repo, which gets the workflow without the conformance tests guarding it here. Write a multi-line if: condition bare, with no ${{ … }} wrapper (a leading ! rules out the bare single-line form, since YAML reads it as a tag indicator). These three tools contradict each other, so a fix clearing the one that complained can redden one that was green. So re-run all three after adopting any linter's advice, and settle a conflict by measuring: put the proposed form in a scratch workflow outside the repo and run the other linters against it. When they genuinely disagree, keep the working form, silence the complaining tool inline (# zizmor: ignore[rule]), and leave an XXX beside it naming the blocking tool and its upstream ticket, with the swap recorded as a {todo} in whichever docstring owns the concern, since a YAML comment reaches no published todo list.<cmd> run typos, every formatter that downloads a checksum-pinned binary (<cmd> run biome and peers), and the vulnerable-deps scan <cmd> audit --fix (parses live uv audit output). An upstream re-publish flips a pinned SHA-256 and kills the step; pytest mocks these, so the drift (or a changed output schema) surfaces only here or in CI's autofix run. A pin living upstream in repomatic breaks every downstream repo and cannot be patched here: surface it for the step-8 upstream report. Invocation rules:
<cmd> run <tool> builds the invocation CI performs, resolving the tool's own file list. Do not pass . instead: biome check --write . and shfmt -- . resemble what autofix.yaml runs and are not it, and biome ships no .gitignore awareness by default, so . walks ignored trees like docs/_build.<cmd> run <tool> -- --version still downloads and checksum-verifies the binary. That skip covers only tools whose registry entry names a default inventory (default_paths). oxipng names none, since CI drives it through format-images, so a bare run oxipng exits 2 on missing file arguments even in a repo full of PNGs: smoke its pin with -- --version instead.No binary for <platform> <arch>. Available: … (an UnsupportedPlatformError) means the pinned release ships no build for the dev machine's platform, which says nothing about CI's Linux runners; Truncated download for <url>: got N of M bytes is a short body from a proxy or a sandboxed network, not a bad artifact; and PermissionError: [Errno 1] Operation not permitted under the binary cache dir is a sandbox denial. Retry the last two with the sandbox off before concluding anything. Real drift reads SHA-256 mismatch for <url>: expected …, got …: that one alone breaks every downstream repo and belongs in the step-8 report.run typos defaults to --write-changes; audit --fix rewrites pins), and a smoke run can still touch files outside CI's autofix scope: revert any mutation that is not part of this release's net diff before the step-5 commit; a fix that genuinely belongs to the cycle can be kept and folded into the reconciliation. Revert a formatter move as a move: it is a paired add-plus-delete, and reverting only the added copy silently deletes the block from the file. A mutated file carrying no reconciliation edit reverts whole with git checkout -- <file>: safe at this gate, where the sweep agents have already joined (their no-revert rule protects a live shared tree).typos walks the directory, and the mdformat inventory lists untracked Markdown. With one in git status, pass only the changed files, or check the pin alone with -- --version.git worktree at HEAD, while the sweep agents work. A write-mode tool then cannot touch the shared tree, so nothing needs a revert. Pins and advisories do not depend on the sweep edits, so the result holds. Spelling does: once the lanes join, run <cmd> run typos --verify -- <files> over the changed files, which reads them without writing.uv run -- click-extra test-suite --command <source-entrypoint> --jobs max, the same engine tests.yaml (--command) and release.yaml (--binary) drive. It catches the two failures otherwise hidden until the ~90-minute matrix: a case assertion drifted from current CLI output (colors stripped by the piped harness, a moved string), and a plan that cannot load under the binary runner's stdlib-only base deps.
click-extra test-suite stops on an ImportError that names the extra to install. Confirm the plan parses with the standard library alone, since the full-venv source run has the format extras and hides the gap.manylinux container correctly detected as its RHEL/AlmaLinux base) or a manager present only there passes locally and still reds the binary matrix. A cycle that bumps a platform-detection dependency (extra-platforms) can silently shift such attributions: check the test plan in the binary matrix, not just in the source self-test.show-metadata key derived from the pushed files takes one value locally and another in CI. nuitka_matrix is one: it is empty when a push skips the binary build. When a cycle changes how such a key is derived, check every case that asserts on it against both values.uvx --no-progress --from . <cmd-bare> --version, with <cmd-bare> the console script that [project.scripts] declares, like repomatic on the canonical repo. A fresh isolated env resolves [project.dependencies] from scratch, surfacing transitive conflicts the already-synced venv hides. CI finds them only after the push: its test cells install from uv.lock, except a resolution or an sdist cell, and its test-package-install job resolves the pushed tree with no lockfile. End users installing via uvx hit exactly this resolution, so a failure is release-blocking. Fix at the dependency level (drop, swap, or wait on upstream), never with environment-scoped overrides: uvx --from . does not read [tool.uv] override-dependencies.
uvx reads the user-level ~/.config/uv/uv.toml, which on a maintainer's machine typically carries a supply-chain exclude-newer. A release that raises a dependency floor to a version published inside that window then fails to resolve on the maintainer's machine only. The tell is in uv's own output: a hint: <pkg> was filtered by exclude-newer to only include packages uploaded before <date>. The latest version satisfying the requirement is vX, published at <later date>. It is self-clearing: the same command passes once the dependency ages past the window. An install that also gates the release never meets it, since the release is newer than the floor it raised. One that exempts the release alone, as downstream workflows do for their repomatic pin, fails the same way until the dependency clears.uvx --no-progress --exclude-newer 2100-01-01 --from . <cmd-bare> --version. Lifting it per-package (--exclude-newer-package <pkg>=0d) just surfaces the next floor in the chain, one round-trip at a time.hint: above. A floor bug installs cleanly, then dies at runtime on the older version the cooldown fell back to: typically a TypeError naming an argument a newer release introduced. Lifting the cutoff hides it, so judging the lifted run alone passes the gate on a release that every cooled install will break. Downstream repos run the frozen uvx 'repomatic==X.Y.Z' under a workflow-level UV_EXCLUDE_NEWER, and uvx reads neither uv.lock nor [tool.uv]. Read the traceback before crediting the cutoff. When the older version is at fault, raise the floor to what the code needs, and let lint-deps say whether the release waits.uvx --no-progress --from '{package}=={last version}' <cmd-bare> --version. A dependency released after that tag can break what users install today, through a floor that sets no cap. Never lift the cutoff for this check. --version imports every resolved package, so a lifted cutoff runs releases still young enough to be a compromise. The cooled run meets such a dependency once it clears the window. No change to the tree fixes that install, so it does not block the release you prepare. Report the crash and the dependency at step 7: a yank or a capped patch release of the old version is the maintainer's call.uv-build ... missing an upper bound warning here is expected, never a resolution failure. repomatic deliberately leaves uv-build uncapped across managed repos (rationale in repomatic's own pyproject.toml [build-system] comment), so never flag it or add a cap.repomatic=={X.Y.Z} into one scratch venv, then import every repomatic module. An import misses a change of behavior. Search the installed repomatic for each API that a **Breaking:** entry of this cycle changes, and read each call. A break that either check finds reaches every repository pinned to that release once this version clears the cooldown: release the fixed repomatic first, and move the pin.The local gate is single-OS, so platform-specific failures surface only in CI. Shrink that window pre-push:
unless_*, skip_*, skipif) and diff-review those tests' expectations by hand. Extend the review to the inputs those tests consume: new docs prose or docstrings can redden a platform-gated conformance test whose skip list never met that reference class (a reworded docstring a Sphinx test asserts on, a first-ever stdlib cross-reference missing from a skip list). The cycle's earlier pushes already ran those tests in CI, which is why the read of CI's conclusions on HEAD above is what actually catches them pre-push. A test of the built docs names a page by its .html file, so grep the tests for that name too.uv run --python <other> (like 3.15t for a free-threading race) recreates and repoints .venv to that interpreter.
uv sync --frozen --all-extras --group test.--all-groups. It additionally pulls in the docs group whose imports perturb process-global-state-dependent tests (logging config, default theme) into spurious failures, while a default-only uv sync strips the groups the tests need (no pytest at all).lint.yaml/tests.yaml over a local gate re-run against a churned venv. These are venv-provisioning artifacts, not code regressions, so re-sync to the CI-matching groups before re-running the gate.Read the consolidated unreleased section and classify the bump the net diff implies: major, minor or patch.
State the classification and the single strongest reason, then keep going on the patch default (the unfreeze commit bumps the patch automatically). Do not merge a version-increment PR, and do not stop: for minor or major, surface an advisory ("this release looks like a minor: merge the minor-version-increment PR if you want that bump") and proceed. The maintainer merges that PR out of band, which re-triggers the release PR on its own.
Show git diff of changelog.md plus a one-line summary of the code and docs changes the agents made. Consolidation drops and merges entries: surfacing this is what lets you catch an over-eager drop at the commit prompt before it ships.
Commit the reconciled tree with a message describing the net reconciliation (plus the attribution trailer), then push to main: the push regenerates the release PR through prepare-release.
Keep that message short: an imperative subject under 72 characters, and a body only when the sweep bundled orthogonal strands of work. That body is then one short line per strand, never a paragraph per theme. The changelog carries the user-facing story and the diff carries the rest.
Re-read git status immediately before staging, and never reach for git add -A. A sweep agent that has gone quiet can resume editing minutes later, after the step-2 gate has already run and while you are drafting the commit. git add -A then sweeps in files you never reviewed and whose changes the gate never covered. Diff every path that was not in the tree when you ran the gate, and re-run the gate before committing if any appeared: an edit landing after the gate is an ungated edit, whoever made it. The narrow-staging rule of the sub-agent rules (git commit <path>, never -a) binds the orchestrator's own reconciliation commit too.
A gate command you ran yourself re-creates the mutations you already reverted. The step-2 revert is not final. Any later step that builds the documentation regenerates the committed artifacts that build owns, and a test selection can build them without announcing it. So re-read git status after the last command that touched the tree, not after the sweep agents joined, and stage by explicit path so a resurrected artifact cannot enter the commit.
A parallel session can edit the files your sweep edited. The maintainer may drive a second session in the same checkout, and its hunks can land beside yours in one file. Staging that file by path then commits its unfinished work under your message. Stage each shared file as a blob without its hunks: git hash-object -w on a copy outside the tree, then git update-index --cacheinfo. Gate that exact tree in a throwaway git worktree, not in the shared tree. The worktree also keeps an untracked file out of the file inventories some tests check. List the other session's hunks in the step-7 report.
Read git log origin/main..HEAD before the push. A commit that another session made goes out with yours: ask the maintainer before you push it.
Signed commits may need the sandbox off. With SSH signing (gpg.format = ssh), the harness sandbox blocks the signing agent's socket and any key file under a denyRead path (Operation not permitted). Signing runs sandboxed once the settings allow the socket in sandbox.network.allowUnixSockets, and the public key, allowed-signers file and gpg.ssh.program wrapper in sandbox.filesystem.allowRead, with ~/.ssh a real directory rather than a symlink. Otherwise, disable the sandbox for the git commit and git push calls only. The network proxy can still break an SSH push after a sandboxed signing succeeds, with ssh_dispatch_run_fatal: push that remote with the sandbox off.
A hardware key is not a retry loop. A hardware-backed key (Secretive, YubiKey, TPM) prompts the maintainer per signature, and one unanswered prompt wears three faces, sometimes in sequence across retries: agent refused operation?, Couldn't sign message (signer): communication with agent failed? (exit 128, then failed to write commit object), or no output until something kills the command. A signing command silent for minutes is a prompt nobody answered, not a slow command: bound it with a timeout and hand off. Stop after one or two retries and ask the maintainer.
Prefer merging a green autofix PR over authoring your own signed commit. When the fix already exists as an open, CI-green sync-* or format-* branch, GitHub signs the merge commit server-side, sidestepping the local key entirely.
"Ask the maintainer" can mean asking them to act outside this session. gh pr merge may itself be walled by a standing permissions.deny rule in the operator's settings, which no in-chat authorization can override. When both the merge and the signed commit are blocked, ask them to run the merge or push themselves, not merely to approve in chat. The same applies to the babysitter in step 6: its skill carries the explicit hand-off contract.
The goal of this step is a genuinely green suite, not a catalogue of which reds are "non-blocking." Fix every tests.yaml failure surfaced here, including flaky and pre-existing ones carried on main for months (a chronic environment-specific break, a "known-flaky" live-registry install, an allowed-failure ⁉️ probe that actually crashes), not only this cycle's regressions. Root-cause each red to its mechanism: the manager argv it builds, the dependency it imports, the assertion that drifted. Then fix it at the source: a real code bug gets the code fix, a genuinely-flaky live-registry install is folded into the test's tolerated-exit set (with the reasoned comment its peers carry), a partial-wheel import crash is converted to a clean skip gated on the library's own availability sentinel, a wall-clock budget that fires on a shared runner is resampled so the assertion reads the fastest of several runs rather than one. Say this in the babysitter's spawn prompt too: its own skill sends it to re-run anything infrastructure-shaped, and a timing flake looks exactly like that. A red's ⁉️/non-blocking status governs only whether it gates the merge, never whether it gets fixed.
Run a tight fix-loop: act on the first failing job, never the run's conclusion. The instant <cmd> ci-status --branch main names a failed job, fetch its log, reproduce and fix locally against the pinned gate on the touched files, commit with the attribution trailer, and push. The fresh push supersedes the obsolete in-progress run: never wait out a 40-90-minute matrix per fix. Batch only fixes already root-caused and verified together; never wait to accumulate more failures before acting on one you already understand.
Time each push by what its diff rebuilds. The immediate push above is for source-affecting fixes (repomatic/**, tests/**, pyproject.toml, uv.lock): the matrix they cancel was verifying an obsolete tree, and their own run rebuilds everything. A matrix-skipping commit (changelog-only, docs-only: paths outside Metadata.binary_affecting_paths) inverts the economics on a binaries-enabled project, because release.yaml runs on every push in a per-branch cancel-in-progress group: pushed mid-drain, it cancels an in-flight binary matrix that its own run then skips rebuilding (skip_binary_build), and the lost verification is only re-buyable with a full re-dispatch. That cost scales with what is in flight: an ordinary push builds only the [tool.repomatic] nuitka.dev-targets canary subset, and no push cancels a full fleet, since release commits, schedule and workflow_dispatch runs each sit in their own concurrency group. Hold such commits (the post-babysit changelog reconciliation below included) until the heavy matrices on the current tree are terminal, or bundle them into the next source-affecting push; with binaries off, or only a canary build in flight, push freely: a cancelled release.yaml re-runs in minutes, and a prose push does not even cancel tests.yaml (paths-filtered, so no new run enters its concurrency group).
Wait for CI yourself, and spawn the babysitter only when a required job turns red. The Bash tool caps a foreground command at about 10 minutes. So run <cmd> ci-status --branch main --wait as a background Bash task (run_in_background: true), which has no such cap and wakes you when it returns (Claude Code 2.1.284). The command returns on the first run that blocks a merge, like one with a failed or cancelled required job, or once every run settled and the tip has a run of its own. A run that GitHub keeps failing to serve drops out of the wait, and prints as a cannot read its run warning: that workflow has no result yet. Run it again after each fix push you make yourself.
On the first red required job, spawn Agent on the sonnet model to run /babysit-ci to completion, named so it stays addressable. It then owns the fix loop until every monitored workflow is green. The loop is mechanical: fetch logs, match patterns, fix, commit, push. If /babysit-ci is excluded here, the agent runs that same loop inline, and the sub-agent rules cover a failed spawn.
run_in_background: false. A literal foreground spawn would block the orchestrator's own turn for a wait that can span hours.tests.yaml, lint.yaml, autofix.yaml, docs.yaml, and release.yaml. The last one's engine runs the per-platform Nuitka matrix when the project enables binaries.✅ {os}, {sha} build.✅/⁉️ glyph as cell stability, not outcome. A red ✅ (required) cell is release-blocking. A red ⁉️ cell (an allowed-failure probe, like the newest dev Python) gates no merge. Fix it too: the goal above is a green suite. <cmd> ci-status --branch main tells the two apart for you, and reads a matrix GitHub never expanded as required.Its prompt restates the sub-agent rules (the trailer and narrow staging especially: its commits are exactly the unattended ones those rules exist for) and adds:
ci-status reads every monitored workflow on the latest main HEAD as green (or as skipped for benign reasons), or on a real blocker it cannot resolve. Terser phrasings get misread as "report after first fix".<cmd> ci-status --branch main --wait. Never a hand-rolled loop around gh: a zero-delay spin exhausts the shared REST quota (5,000 requests/hour) in minutes, and the exhaustion resurfaces as PAT-permission-shaped workflow failures and prepare-release hangs (see babysit's references/failure-patterns.md § GitHub API rate-limit exhaustion).ci-status --wait blocks inside the agent's turn, never a run_in_background Bash poller or a Monitor-tool stream the agent idles on awaiting notification. Name the Monitor tool in the prohibition: an agent told only "no background poller" does not classify Monitor as one. A spawn prompt with an "as a background task" aside overrides babysit's own rule, and a failure landing in the idle window then goes unhandled.Treat its return as a claim, not proof. Even with the verbatim prompt it can stop early (the long Nuitka wait is where it gives up). Run <cmd> ci-status --branch main yourself: a run still going, or a failed required job, means it stopped early. Then take over the loop inline rather than re-spawning it into the same idle. On takeover:
git status, git diff --cached): a stood-down or idled agent often leaves a correct fix staged but uncommitted (a hardware signing prompt it could not answer). Adopt and verify that fix instead of re-deriving a parallel one that then collides with it.ci-status reports, never the run's conclusion alone: a run-level read hides an already-failed fast job for as long as the slowest cell runs. Break the instant it names a failed required job.<cmd> ci-status --failed-logs <dir>: one file per failed required job, readable while the run still goes. gh run view --log-failed waits for the whole run and caches under ~/.cache/gh, where a sandbox denial masquerades as a gh bug.ci-status.gh workflow run, it can list the earlier runs alone, all of them terminal, and stop before the dispatched run appears. Take the run ID from the output of gh workflow run, or from the newest workflow_dispatch run of that workflow.Verify the Nuitka run yourself, starting with whether the project builds binaries at all:
A project with [tool.repomatic] nuitka.enabled = false or no CLI entry point emits no nuitka_matrix (see Metadata.nuitka_matrix in repomatic/metadata/matrix.py): the engine's per-platform build and test jobs skip by design on every push, release commits included, and past releases carry no binary assets (gh release view <last-tag> --json assets settles the regime in one call). There is no binary signal to verify and none appears on merge either (the release_commits_matrix gate drives the publish/tag lanes, not the binary matrix): wheel-plus-sdist is the complete release shape.
When binaries are enabled and a binary build fails, re-spawn babysit or fix inline.
A green conclusion proves nothing on a HEAD that touched none of Metadata.binary_affecting_paths: release.yaml skips the entire compile-binaries matrix on such pushes (docs-only, or workflow-only with release.yaml and _release-engine.yaml untouched). Read the run's jobs and confirm the per-platform build and test jobs ran rather than skipped; when they skipped, the authoritative binary signal is the last run that actually compiled, valid only while its source tree matches the release tree.
Tell a wholesale skip from individually-filtered cells by whether the job name expanded. Both read as "N success, M skipped" in any status count, and they mean opposite things: filtered cells are the expected nuitka.dev-targets canary behavior, while an unevaluated matrix means zero binaries were built. ci-status names a matrix that never evaluated: its job name still holds the raw ${{ }} template instead of a cell like ✅ ubuntu-26.04, abc1234 build.
Judge the build stage and the self-test stage separately: they expand independently. One run routinely carries a real named build cell (release / ✅ ubuntu-26.04-arm, abc1234 build, success) beside a still-raw self-test template (release / ${{ (((matrix.state == 'stable') && '✅') || '⁉️') }} ${{ matrix.os }}, ${{ matrix.short_sha }} test, skipped) in the same job list. That pairing means the canary compiled on this tree and the self-test matrix did not evaluate, which is the steady state for an ordinary push. Confirm it by reading the same two stages on the previous commit rather than by comparing the two stages of one run against each other. Only an unexpanded template on the build stage means no binary was compiled.
When no compiled run matches the release tree, you may dispatch one: gh workflow run release.yaml --ref main. That gap opens when a binary-relevant commit's run was cancelled by supersession and the reconciliation HEAD then content-skipped the matrix. A dispatch carries no push diff for the skip heuristic to read, so it compiles and self-tests the full per-platform matrix on the current tree, with no commit and no PR churn.
That dispatch is information, never a gate, and on a busy pool it is often the wrong call. Publishing locks a version's asset list for good, so shipping short is intended behavior: never hold a release or sit on a draft waiting for a build cell, and never let a missing binary signal delay a merge that is otherwise green. Three more reasons: a skipped matrix is the normal steady state here, since ordinary pushes routinely fall outside binary_affecting_paths and supersession cancels the rest; the wheel and sdist that PyPI actually ships are built by 📦 Build package, which involves no Nuitka at all, so package distribution is already verified without it; and merging triggers the release commit's own full-fleet build, which a pre-merge dispatch then competes with for runners. So weigh the dispatch against the source delta since the last compile: a new dataclass field or a bumped version literal does not earn a 40-90-minute fleet build, while a dependency swap, a packaging change or a new native import does. When you dispatch and then decide to merge anyway, cancel the dispatch first so it stops taxing the release it was meant to protect.
Close the coverage holes a busy cycle opens:
<cmd> ci-status --release-pr reports how many commits the PR lags main, which must be 0. If it is non-zero (the Build & release run that triggers the refresh failed or was cancelled), run gh workflow run changelog.yaml --ref main (a workflow_dispatch rebases onto the current HEAD), then re-check before step 7. This does not block the release either way: a "Rebase and merge" replays the freeze onto current main, and the PR's own checks are skipped by design. A refreshed PR shows the reviewer the tree that will ship.minor-/major-version-increment PR mid-build cancels your in-flight tests.yaml run, which shares the branch concurrency group with the bump push. lint.yaml and autofix.yaml give the bump push a group of its own, so their runs on your commit finish. All three skip the bump commit itself. This is by design: step 2 is the authoritative pre-merge check, so read skipped tests and lint on a bump commit as expected and do not re-push to force a run.sync-tool-versions commit landing mid-babysit leaves its new checksums unproven, and a green self-maintenance.yaml does not clear them. That job runs upstream only, where the tool registry it rewrites lives. Only a job that actually runs the bumped tool exercises its SHA-256, so the green lane to check is the tool's consumer, not the workflow that happened to commit the bump. Grep for the tool's call sites (<cmd> run <tool>) and read whether any executed: several are gated (the Publish release step, the one <cmd> run gh call, sits in a job that runs only on a release push, so it is skipped on every other commit and its checksum sails through the whole cycle unproven, then runs for the first time on the release commit — where a bad hash fails the publish and strands the release as a draft). The gh calls inside other commands prove nothing either: on a bad checksum they fall back to the runner's gh, with a warning.
<cmd> run <tool> -- --version downloads and checksum-verifies one platform, and <cmd> update-checksums followed by an empty git diff re-derives every platform hash from the live URL and proves the committed table. Both need the sandbox disabled (it blocks the tool cache and can truncate a download into a false mismatch).tests.yaml's paths: filter can leave every attempt on a busy cycle cancelled or skipped, and recent Tests activity is not a completed run on the current tree. If the local pytest was also skipped (the integration-heavy exception), no test signal exists anywhere: get one with gh workflow run tests.yaml --ref main (a workflow_dispatch adds no commit and does not regenerate the PR), then verify the stable jobs and ignore the continue-on-error probes. A docs-only HEAD shares its source tree with the prior commit, so the dispatched run validates the frozen tree. The same hole opens for every paths-filtered workflow, Docs included (a cancelled docs.yaml run followed by a workflow-only HEAD leaves the cycle's docstring edits unbuilt): close it the same way (gh workflow run docs.yaml --ref main) and confirm the dispatched run lands green.Reconcile the changelog against every fix babysit committed: entries it added and omitted. Walk its commits and blame each fix against the last release tag: a bug that only ever existed in code introduced this same cycle is a user no-op (drop any entry babysit added for it); a bug that reached an earlier release deserves the entry babysit may have skipped. Re-run step 1.4's consolidation with both corrections and present the diff (step 4) before committing. Draft this pass during the slow tail (the work is local), but push it by the timing rule above: only once the heavy matrices on the final code HEAD are terminal green, so its changelog-only diff inherits the drained tree's signal instead of cancelling a binary build mid-run. Then confirm changelog.yaml regenerated the PR onto it (the refresh check above) before the step-7 confirmation.
Surface maintainer work that appeared during the wait. The 30+ minute CI wait gives the maintainer time to keep coding: those uncommitted files are theirs (sub-agent rules). List them in the step-7 report so the maintainer decides whether each belongs in this release (commit and push before merge) or the next.
Once main is green and the release PR exists (<cmd> ci-status --release-pr), report:
prepare-release PR template's frontmatter carries draft: true, which pr-sync re-applies on every refresh, not just at creation), so the remaining human actions are to mark it "Ready for review", then "Rebase and merge" (never squash).Do not merge the PR, and do not mark it ready yourself. That final human action is the boundary this skill stops at.
When the binary matrix came up short, read references/short-ship.md before the report. It says what to report, and names the one follow-up.
This skill, the workflows it drives, and the conventions it enforces live upstream in kdeldycke/repomatic and sync down to each caller; a release is when their rough edges show. Before finishing, review the session and for each finding point at the exact source with a concrete fix: ../repomatic from a downstream repo, this very tree when the repo is repomatic (see § Shipping the findings).
repomatic/data/ or .github/workflows/ instead of waving it off.Implement each finding in ../repomatic when that sibling checkout exists, and stop before the commit. A diff already sitting in the maintainer's working tree leaves them only the review. So edit the upstream code, update whatever tests the change breaks, and verify it there (uv run --project ../repomatic --frozen -- pytest …). Then do not commit, do not push, do not open a PR or an issue — the same boundary this skill stops at downstream. Report which files you touched and what verification you ran.
Fix at the mechanism, not the symptom: a wording repeated across many generated files has one generator, and editing the generated copies leaves the next render to undo you. Check first whether the text you are about to hand-edit is emitted by a function or asserted verbatim by a test. When no ../repomatic checkout exists, fall back to describing the finding precisely enough to act on: the file, the mechanism, and the failure it causes.
When the context shows CANONICAL_REPO, there is no ../repomatic and the boundary above inverts: land the findings as an ordinary reconciliation commit. Read references/findings-in-repomatic.md first: it holds the rules that commit follows.
The release PR carries exactly two commits: a freeze commit ([changelog] Release vX.Y.Z) that finalizes the changelog date and comparison URL and pins workflow refs and CLI invocations to the release version, and an unfreeze commit ([changelog] Post-release bump) that reverts those to @main, adds a fresh unreleased section, and bumps the patch version.
After the merge, the pipeline produces all of the following; if any is missing, the release is incomplete:
vX.Y.Z) on the freeze commit.changelog.md entry.[tool.repomatic] nuitka.enabled and a CLI entry point, and the previous release's assets show which regime applies.changelog.md entry with the release date and comparison URL finalized.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
18 skills in this plugin
/av-false-positiveScan a release on VirusTotal. Write submission instructions for each AV vendor that flags a false positive./awesome-triageTriage new issues and PRs on awesome-list repos. Apply the curation criteria drawn from past decisions./babysit-ciMonitor the CI tests, lint, autofix, docs and Nuitka binary-build workflows. Diagnose each failure, fix the code, commit, and loop until every stable job passes. Ignore unstable failures./benchmark-updateCreate or update the competitive benchmark page (docs/benchmark.md) that compares this project against its alternatives. Check maintenance status, feature accuracy, new candidates and badge health.npx claudepluginhub kdeldycke/repomatic --plugin repomaticOther plugins' skills for the same job