Running checks

From Esposter/Esposter · View interactive version

Running checks is an AI agent skill from the GitHub repository Esposter/Esposter. Apply when about to run pnpm typecheck, lint, lint:fix, test, build, coverage or bench in any package, or format from the root, when deciding which checks a change owes before its push, and whenever you find yourself waiting on a check's output. Esposter's split between the checks a session runs and

How to use this skill

Skill file

Running Checks

CI runs the checks; a session runs only the tests of what it touched. Every push to ai/queue runs typecheck,

lint, format and the whole suite. The session does not watch its push's run unless the user asks for verification;

then it fixes a red typecheck or lint job itself, in a commit behind the push (AGENTS.md, "Finishing a change", step 6). The pre-commit hook only formats what is staged and

runs no check (.githooks/pre-commit); a staged file with no unstaged change is formatted in place and restaged, and a partly staged one is formatted from its

staged blob alone, so a partial stage commits only its staged hunks and the rest stays in the working copy. The command and its directory are the package-scripts skill's; this page is

which checks a session runs and how it waits on them.

Settled — do not re-propose

minutes per change and the root type-aware lint needs more memory than a local session should spend. Nothing waits on them

either way: the push already went out beside them, so a local run only moved the finding earlier by the length of

a CI run, at the session's price.

catch what neither a typecheck nor a lint can — the behaviour the change was for.

pre-commit hook only formats, so no commit waits on a check.

Before the push: `pnpm ai:precheck`

The checks CI would run first on a push take seconds here: the formatter over each changed file, each changed package's barrel against what its generator writes, each row a derived ledger keeps against the units the tree derives, each ledger trailer of the commits ahead of ai/queue against a unit it names, and, once a manifest, pnpm-workspace.yaml or the graph generator changed, dependency-graph.svg against what pnpm graph:gen draws. pnpm ai:format fixes the files the first names, and pnpm ai:precheck --fix rewrites a stale barrel or graph, and a ledger row whose unit was reworded, to name the one unit now starting at the same path. A row whose unit the tree has lost, or whose path several units now start at, is named for the author to settle: the land writes no commit of its own. The graph's edges are read from the committed lockfile (pnpm ls --lockfile-only), not from node_modules, so every checkout runs that check, a linked worktree's included. pnpm ai:land pulls first and runs the precheck on the pulled tree before each push, since that tree is what the push sends and a pull replays the queue's manifests without installing them. Every child it waits on that can stall (the formatter, the graph's pnpm ls, the Windows junction unlink, and each git call that fetches, pulls or pushes) is killed past CHILD_PROCESS_TIMEOUT_MS, so the land fails naming the file or the command rather than waiting forever. Typecheck and lint stay CI's, as the settled list above says.

The tests of what the change touched, in the background

The tests are one Bash call with run_in_background: true, redirecting their output to a log file and appending

their own exit code (echo "exit $?" >> log), and the session moves to the next piece of work: the commit message,

the spec sweep, the ledger row. The harness delivers a completion notification; read the log then. The one run that proves a regression test against a reverted fix is the exception to committing while it is in flight; its restore order is the testing skill's ("What to Test"). **This holds for

a one-file, "quick" suite too** — the habit that survives is the one applied without weighing it.

Which paths, and from which directory, are the package-scripts skill's references/check-suite.md: the suites

of the files touched and the workspace tests for a spec edit; a change that grows a bundle adds that package's own suite (AGENTS.md, "Finishing a change", step 4). A change to a configuration every suite of a package loads — apps/web/configuration/, nuxt.config.ts, a Vitest config — touches each of those suites, since Vitest's nuxt environment reads the Nuxt and Nitro options too: its run is the package's suites, not a build alone.

Never poll a backgrounded check

A foreground poll of a backgrounded check is a foreground check: `for i in $(seq 1 40); do grep -q done log && break;

sleep 10; done` spends the turn the flag was meant to save. A backgrounded check announces its own completion. The

wait on a condition in the context-efficiency skill ("Wait on a condition, never a sleep") is for an external

process the harness cannot see finish — a dev server, a deploy — never for a check.

Blocking is correct only when the sole remaining step is commit, merge or push. When it genuinely is the last

step, end the turn with a one-line status and let the notification re-enter.

One run, after all the edits going out

The tests run once, after all edits going out together — not per sub-task, not per unit. Each run re-pays a

fixed startup cost, and nothing is learned at chunk 3 that chunk 7 won't also reveal. Commit per coherent chunk

regardless: commits are cheap and protect against other sessions' resets, checks are not. The run follows the

review's quality lane, since cleanup edits code (AGENTS.md, "Finishing a change").

Watching the push's run, when asked

Watching waits for the user to ask for verification; it does not start on its own after a push. Then

pnpm ai:ci:watch, in the background. It finds the run by the tip's commit — never by

--branch with --workflow, whose per-workflow filter answers ai/queue with weeks-old runs — follows a run that

was cancelled while it waited to the newer run that carries the commit too (concurrency in CI.yaml keeps only the

newest waiting run), waits for it, and exits non-zero on a red with each failed job's error lines, which is what wakes

the session to fix it. A wave of agents landing one after another is watched once, after the last landing.

A check CI owns, run locally

Only to answer a red: a session whose push turned a typecheck or lint job red, a session asked to fix a failed CI

job, runs that one check as CI runs it, to reproduce the red and prove the fix. The

failed job's log (gh run view <id> --log-failed) names the package whose typecheck failed, the root's own

included, and the reproduction is pnpm typecheck from that package rather than the whole repository; a lint red is reproduced by vp run lint:fix from the repo root, the scope matching CI's, and a knip or actionlint red by vp run lint:unused or vp run lint:workflows, which fix nothing

(the package-scripts skill's references/check-suite.md). A check that writes — lint:fix, pnpm format — owns

the files it covers until its exit line, so nothing is edited under it meanwhile. The app's lint reads the types nuxt prepare writes under apps/web/.nuxt, and a worktree made by pnpm ai:worktree:create gets them from its own install (openspec/specs/architecture/monorepo-tooling/design.md, "Dependency installs"). A session that must lint app files gives the worktree an install of its own (pnpm i --prefer-offline, never a frozen one, as the throughput skill's fleet page says; nuxt prepare then writes the worktree's own .nuxt), and never a link to the shared checkout's .nuxt, node_modules or any other generated folder: Nuxt writes through a link and rewrites the shared checkout's .nuxt/tsconfig*.json with paths relative to the link, which breaks its typecheck and editor until pnpm -C apps/web exec nuxt prepare is run there. A worktree with no app install also runs none of the type-aware oxlint rules over app files, so those files' lint is CI's. On Windows, long paths must be enabled once (pnpm ai:setup checks it; openspec/specs/architecture/monorepo-tooling/design.md, "Dependency installs"), or vp lint fails on a worktree's deep node_modules; a worktree lives at .agents/worktrees/<lane>. From the main checkout's directory, a worktree's file is linted with the worktree's own configuration,

pnpm exec oxlint -c .agents/worktrees/<lane>/oxlint.config.ts <files>: the main configuration ignores the worktrees folder, so the same

files without -c are reported as ignored. pnpm ai:format formats such a file under its own checkout's configuration.

Reading the result

The verdict is the exit line appended to the log — never a grep of the output, never the notification's exit code, never a pipeline's — and a red result is an edit then a fresh background run (references/reading-results.md).

Reference pages

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.