/build-loop:built-check [optional: number of days back to look, default 90]from build-loop
Cross-checks the to-build list at ~/.claude/build-loop/to-build/ against what has actually been built, and offers to close the finished items in one step. Looks for evidence in the git log of every configured root, on disk, and in the current session. Use at the end of a session, when wrapping up, or when the user asks "what did I ship", "did I build any of this", "close the ones I've done", "is anything on the list done", or explicitly invokes /built-check. Shows the evidence for each item and closes nothing without an explicit yes.
Ships in build-loop. 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.
You are reconciling the to-build list against reality. The schema is at ${CLAUDE_PLUGIN_ROOT}/reference/SCHEMA-BUILD.md. Read it if you have not already in this session.
The problem this solves: things get built and the list never gets updated, so the list slowly stops being true and then stops being read. This closes that gap by going and looking.
Two rules that do not bend:
Paths in this file are written with
~for readability. The Write tool and Node'sfsboth take it literally, so expand it to the absolute home path before using it. A literal~creates a directory called~next to wherever you happen to be, and every check that follows then reads the wrong place.
Scratch files go in a private directory, made once per run. Make it before the first hand-off and reuse it for the rest of the run:
node "${CLAUDE_PLUGIN_ROOT}/scripts/scratch.js"
Use the path it prints, written as {scratch} below, and never a fixed name
under /tmp, which another live session can overwrite between the Write and
the call. If it exits non-zero it printed why instead of a path, so say
what it said and stop rather than treating that sentence as a directory.
ls ~/.claude/build-loop/to-build/*.json 2>/dev/null
If nothing comes back:
"The to-build list is empty, so there is nothing to reconcile. Run
/to-build <something>to add an item."
Stop.
Read each file. Keep only items with status Open or In Progress. Skip Built and Dropped silently, they are already settled.
If every item is already settled:
"Nothing open on the to-build list. {N} built, {M} dropped."
Stop.
Skip any file that fails to parse, and count them. Report the count at the end rather than stopping.
$ARGUMENTS may hold a number of days. Default to 90 if it is empty or not a number.
Compute the cutoff date. Never look further back than the oldest open item's created_at, since evidence older than the item cannot be evidence for it:
date -u -v-{days}d +"%Y-%m-%dT00:00:00Z" 2>/dev/null || date -u -d "{days} days ago" +"%Y-%m-%dT00:00:00Z"
Both the time and the Z are load-bearing. Drop either and the window silently starts somewhere other than where you meant, which reads as "nothing was built".
The time. Given a date with no time at all, git log --since= fills in the current clock time rather than midnight. So a bare date drops every commit made before the hour you happen to run this: at 09:00 most of the boundary day is there, at 17:00 it is gone.
The Z. Given a timestamp with no zone, git reads it as local time, and this cutoff is computed in UTC. Measured on a machine at UTC-4, at 19:53 local:
--since="2026-07-27 21:53:54" -> 0 commits UTC string, read as local, still in the future
--since="2026-07-27 17:53:54" -> 13 commits the same instant written in local time
--since="2026-07-27T21:53:54Z" -> 13 commits the same instant, said unambiguously
A UTC cutoff handed over bare starts the window four hours late here, and further east it starts it early. Either way the count is plausible and wrong. The Z form also matches the created_at written on every queue and to-build item, so the cutoff and the thing it is compared against are finally in the same units.
The two date implementations disagree too. BSD and macOS take -v, GNU and Linux take -d. Running the wrong one alone fails the same silent way.
All three faults land in the same place: a window that is not the window you asked for, and no error. That is why Step 7 reports an empty log as its own line.
Both faults land on the same result: an empty window that reads exactly like a clean "nothing was built". Whenever this step returns no commits at all across every root, say so as its own line in Step 7 rather than folding it into the verdicts, so an empty window is visible as an empty window:
Note: the git log returned nothing for any root in this window. If that looks wrong, the window may be the problem rather than the work.
Collect from four places. Gather all four before judging anything, because the strongest evidence for a given item is often not in the first place you look.
Two calls before any git log, and they answer different questions. First, whether the roots are there, which is the one you relay:
node "${CLAUDE_PLUGIN_ROOT}/scripts/roots.js" check
Then, for the roots themselves:
node "${CLAUDE_PLUGIN_ROOT}/scripts/roots.js" list
Every root comes back with an absolute path, its kind, and whether it
exists, with the defaults already applied when there is no config file and a
pre-v2 skillRoots config already read as roots of kind skill.
list prints JSON on every exit code except 1, so it is not the thing you
relay for a missing root. The sentences that name a missing root and its path
live in check, on purpose, so six callers cannot word the same condition six
ways. Exit 1 is the exception in both: the config could not be read at all, and
both print that one sentence rather than JSON. The exit codes below are
check's, and list returns the same ones.
Every one of those messages arrives on stdout, including exit 1. That is true of
check. list prints its JSON there too, so relay the one and read the other.
Whichever of these applies, do not report "no sign of it" for everything as though you had looked, when there was nowhere to look.
For each root that is a git repository:
git -C <root.path> log --since="{cutoff}" --pretty=format:"%h %ad %s" --date=short --name-status
{cutoff} arrives from Step 2 as YYYY-MM-DDT00:00:00Z. Pass it through untouched. Trimming the time, or dropping the Z, is the bug described there, and both fail as a plausible-looking count rather than an error.
If a root is not a git repository, skip it silently. That is normal, not an error.
Count the commits this returns, across all roots, and keep the total. Step 7 needs it to tell an empty window apart from a genuinely quiet one.
Read the item's own text first. If what or why names an explicit filesystem path, stat that path and use it as evidence, whatever the item's kind is. An item that names a path has already said where to look, so the conventions below are the fallback for items that do not. This is the only disk evidence available for kind other, and it also catches items whose title slug does not match the filename that actually got built.
source is excluded from this sweep, deliberately. It names material the build reads from, so it is a path that exists before the work starts and says nothing about whether the work happened. Stat'ing it and counting it as evidence would mark an item built the moment its spec was written. where is excluded for the mirror reason: it is a destination, and its existence is already covered by the kind conventions below rather than by the item's free text. Only what and why are read for paths here.
Treat text as naming a path when it carries a ~/, / or ./ prefix, or a bare filename with an extension. Expand ~ before the stat. When the path is a JSON file, read it and quote something from inside, since "the file exists" and "the file holds what the item asked for" are different findings. When nothing exists at the named path, that is a real "no sign of it" for that item rather than a reason to fall back to guessing.
Then, for each open item, check whether something with its name exists in a plausible place. Use the item's kind to decide where to look, following the same conventions the bug queue uses:
skill: <root>/<slug>/SKILL.md and <root>/<slug>/skill/SKILL.md, in roots of kind skillhook: <root>/<slug> and <root>/<slug>.*, in roots of kind hookcommand: <root>/<slug>.md, in roots of kind commandplugin: <root>/plugins/<slug>/ containing a .claude-plugin directoryscript: <root>/<slug> and <root>/<slug>.*, in roots of kind hook or script, plus the plugin-repo search below. A script inside a plugin lives in scripts/ and is findable, so this is not a "no convention" case.other: no convention to guess from, so the explicit-path rule above is the only disk evidence there is. When the text names no path, say that disk evidence is not available and rely on 3a and 3c.The kind filters above choose the generic roots. An explicit destination_root
overrides that filter: when it exactly names a configured root that exists,
also search that root using the item's convention even when the root's configured
kind differs. For example, a command item naming a root of kind skill still
gets the <root>/<slug>.md command check there. This is what makes Step 3d's
covered answer mean the destination was actually searched rather than merely
that its directory exists. For kind other, which has no generic convention,
search the explicit root recursively for an exact <slug> or <slug>.* name;
the structured root makes that bounded search possible without guessing across
every configured location. Do not infer this override from where; only the
structured field can select it.
Also search every root of kind plugin-repo, whatever the item's kind, since that layout nests one level deeper:
node "${CLAUDE_PLUGIN_ROOT}/scripts/roots.js" layout --root <root.path> --slug <slug>
# The plugin row above resolves to the manifest, which is what a plugin row
# records everywhere else. This skill also needs the bare directory, because
# a directory with no manifest is the difference between started and built.
ls -1d <root.path>/plugins/<slug> 2>/dev/null
The listings are generated rather than written here, and /audit-deps reads
the same list for its own scan. They used to be a copy each, in prose, and bin/
was added to the repository on 2026-08-14 and to neither copy. The two that are
easy to leave out are still the last two: statusline/ is another place a plugin
keeps executable code, and tests/ sits at the root of the repository rather
than inside a plugin, so a glob anchored at plugins/*/ never reaches it. A
to-build item satisfied by a test suite looks unbuilt without that line, and a
directory nobody remembered looks unbuilt for the same reason. Add a directory to
PLUGIN_LAYOUT in roots.js and both skills have it.
A plugin counts as built only when its directory holds a .claude-plugin/plugin.json. An empty directory with the right name is a started, not a looks built.
Derive <slug> from the item's title the same way the id was built, and also try the most distinctive word in the title. A title of "git-hygiene plugin" should find a directory called git-hygiene.
Record the modification time of anything found:
stat -f %m <path> 2>/dev/null || stat -c %Y <path>
A file that exists but predates the item's created_at is NOT evidence that the item was built. It usually means the name was taken already, which is worth mentioning to the user but is not a reason to close anything.
Look back over the current session. If something on the list was built in this conversation, that is the strongest evidence available and it will not be in the git log yet if nothing has been committed. Note it as session evidence and say plainly that it is uncommitted.
where is human prose. Never parse it as a root, path, URL or repository name.
Those forms overlap with ordinary sentences and cannot support a reliable
machine verdict.
An item may instead carry destination_root, an exact build-loop root name.
It may name a root already in the config or one the user expects to add later;
the latter intentionally returns not-configured until that root is added.
When that field is a string containing at least one non-whitespace character,
write its value verbatim to
{scratch}/destination-{id}.txt, then run:
node "${CLAUDE_PLUGIN_ROOT}/scripts/roots.js" coverage \
--name-file {scratch}/destination-{id}.txt
The file handoff is required because the field is user-authored text. Never paste it into a shell argument.
The command prints one JSON object with answer and root. Interpret answer:
covered — that configured root exists and was searched.not-configured — no configured root has that exact name.root-missing — the root is configured but its directory is absent.default-missing — it names an absent built-in fallback on a machine with no
config file.Check both the exit code and the output before interpreting that object:
destination_root that is not a string or contains only whitespace
is malformed. Do not call coverage; say which item has the malformed field,
mark its coverage unknown, and judge its other evidence normally.When destination_root is missing or empty, do not run this command. The item
uses the legacy contract: all available roots are its search scope, so judge it
normally from 3a, 3b and 3c. In particular, an empty where does not mean the
item was unsearched.
For each item, land on exactly one of four verdicts. When the evidence is mixed, take the lower verdict, except that actual evidence always outranks destination coverage. A wrong "looks built" quietly deletes work from the list, and a wrong "no sign of it" costs one line of the user's attention.
| Verdict | When |
|---|---|
| looks built | Something matching the item exists on disk and was created or last changed after the item was added, OR a commit after the item was added clearly does the thing the item describes, OR it was built in this session. |
| started | Partial evidence. A directory exists but is empty or has no manifest, or a commit mentions it as work in progress. |
| no sign of it | Nothing found. |
| not searched | Step 3d returned not-configured, root-missing or default-missing, and 3a, 3b and 3c found no evidence. Keep the exact answer for the final remedy. |
If any disk, commit or session evidence exists, judge that evidence normally and
never downgrade it to "not searched" because destination_root is stale.
Write one line of evidence for every verdict that is not "no sign of it". Name the actual path or commit. "Looks done" is not evidence, plugins/git-hygiene/plugin.json, added in a1b2c3d on 2026-08-01 is. For "not searched", quote the exact destination_root and coverage answer.
If every item comes back "no sign of it", with none "not searched":
"Checked {N} open items against the last {days} days. No sign that any of them have been built yet. Nothing to close."
Stop. Do not ask a question that has only one answer.
If every item is either "no sign of it" or "not searched", show those two groups, say "Nothing to close", print the applicable destination-root notes from Step 7, and stop. Do not print the close question when no numbered item is closeable.
Otherwise show this:
Checked {N} open items against the last {days} days.
Looks built:
1. {title} - {evidence}
2. {title} - {evidence}
Started, not finished:
3. {title} - {evidence}
No sign of it yet:
- {title}
- {title}
Not searched:
- {title} - destination root: {destination_root} ({coverage answer})
Close the built ones? (all / a list of numbers like "1,3" / none)
Omit any empty group. Items under "Not searched" are not numbered and cannot be closed from this report, because the report has no evidence about whether they were built.
On their response:
all: close every item under "Looks built". Items under "Started" are NOT included in all, because all should never mean more than what you offered.none, no, or any negative: say "Nothing closed." and go to Step 7.For any "Started" item the user did NOT close, offer once:
"Want me to mark {title} as In Progress so it is obvious next time?"
Only change status on a yes.
Each closure replaces an existing file, so it goes through queue.js, which
does the read and the write inside one process holding a lock. Per item:
built block to a scratch file:{
"ts": "{ISO-8601 now}",
"evidence": "{the evidence line you showed the user, verbatim}",
"commit": "{commit hash if the evidence came from a git log, else empty string}",
"confirmed_by": "user"
}
node "${CLAUDE_PLUGIN_ROOT}/scripts/queue.js" update {id} --list to-build \
--status Built --json built={scratch}/built-{id}.json
--json sets a field from a JSON file, so built lands as an object rather
than as the characters that spell one. Use --field key=value for plain
strings. Nothing else changes: created_at, title, what, why and notes all stay as they are, which
is not something you have to be careful about here: queue.js reads the item
from disk and changes only what you named, so anything you did not mention
cannot be dropped.
Marking something In Progress from Step 5 uses the same sequence, setting only status.
Closed {K} items: {titles}.
{M} still open. {J} started but not finished. {U} not searched.
Add these lines only when they apply:
{P} files failed to parse and were skipped: {filenames}Note: {title} was closed on session evidence and is not committed yet.Note: something called {slug} already existed before {title} was added. Worth a look, the name may be taken.Note: the git log returned nothing for any root in this window. If that looks wrong, the window may be the problem rather than the work.Note: {X} items name roots that are not configured: {roots}. Add those exact root names to ~/.claude/build-loop.config.json to search them.Note: {G} items name configured roots whose paths are missing: {roots}. Fix those paths rather than adding duplicate roots.Note: {A} items name absent built-in defaults: {roots}. No configuration entry is broken; add a root only if you want that location searched.Note: destination coverage could not be determined for {Y} items: {titles}. Their disk, commit and session evidence was still checked.That last line matters more than it looks. Every way this step fails, a malformed cutoff or the wrong date flag or a root that is not a repository, ends at the same place: no commits, and a confident "no sign of it". Saying the log came back empty costs one line and is the only signal that separates "nothing was built" from "nothing was looked at".
End with:
"Run /to-build to see the full list."
This skill is meant to be run at the end of a session as well as on its own, and the flow is the same either way. When it is called as part of wrapping up, two things change:
/to-build if they want the whole list.~/.claude/build-loop/to-build/ does not exist, treat it as an empty list, not an error.kind, treat it as skill for the disk check in Step 3b.created_at, skip the "newer than the item" test for it and say so in the evidence line, because without that date you cannot tell new work from old.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sarahcallmesmadds/infra-plugins --plugin build-loop11 skills in this plugin
/apply-fixApplies a correction from the bug queue to an actual target file. Reads the queue entry, checks DEPS.json for dependents, reasons about the surgical fix, shows a plain-language before/after diff, waits for the user's approval (yes / no / retry), then writes the fix, commits to the correct repo, and updates the queue entry status to "fix applied, watching" with the commit hash stored. Never writes without explicit approval./audit-depsScans every configured root (skills, hooks, commands), compares what is on disk to DEPS.json at ~/.claude/build-loop/, and surfaces missing (on disk but not in the map), orphaned (in the map but not on disk), or changed (the file is newer than its DEPS.json entry's last_updated) entries. Use when you've added or renamed a skill, hook, or command, or when DEPS.json is flagged as stale. Shows a draft of proposed changes and asks y/edit/skip before writing — never silent writes.Other plugins' skills for the same job
/devin-review-responseResolve a complete Devin code-review round without point fixes. Use when Devin posts PR findings, the user asks to address or fix a Devin review, or a branch needs a final Devin-response pass before push or merge. Captures every GitHub-app review and known CLI run for one commit, reconciles their reports without dropping either source, validates the response state, and produces one atomic commit per review round.