test-check
Skill0 starsChanged 39 days agoMITView on GitHub
Run all relevant tests, feature evals and log audits after code changes, in a Haiku sub-agent so raw output never lands in your context. Reads `.claude/project.json` for the project's commands and skips any step whose command is not configured. Use it after implementing a feature or fixing a bug, before marking work done, or whenever the user says /test-check, "run the tests", "did I break anything", "check the logs", or "is it green". `--loop` also fixes failing e2e tests instead of only reporting them.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- braincandy-parallel/tamarindos-workflow-kittheir own version, first seen Sep 18, 2026
- faizkhairi/claude-code-blueprinttheir own version, first seen Jul 3, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- faizkhairi/claude-code-blueprint★ 73same name
- braincandy-parallel/tamarindos-workflow-kit★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- brainstormSkill
- brainstorm-teamSkill
- code-tourSkill
- dead-code-reviewSkill
- docstring-syncSkill
- flowsimSkill
- gotchaSkill
- plan-htmlSkill
- repo-healthSkill
- repo-onboardingSkill
- sdlcSkill
- sdlc-statusSkill
- taskSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 9 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
Why this is the default, not an option: Test output is the largest single source of shell traffic, and shell traffic was ~53% of …
- Distinctive: line 34
Run a command inline only when you are debugging the runner itself (it won't start, the config is wrong) and need to see raw output.
- Distinctive: line 71
Run the log-audit script, which parses logs via the configured command:
- Distinctive: line 80
If any CRITICAL findings: stop and fix before running other tests.
- Distinctive: line 81
If HIGH findings: note them, continue, report at end.
- Very specific: line 84
If logs.command is not defined in config, skip this step silently.
- Distinctive: line 130
Run the configured runner and read its structured result, never its raw output:
- Very specific: line 145
Always run Step 1 if logs.command is defined.
- Distinctive: line 146
Run Steps 2-4 and 6 only if the corresponding key is defined AND files in the corresponding area changed.
- Distinctive: line 148
Always run Step 5 after tests complete, if Step 1 ran.
- Distinctive: line 149
If ANY check fails, report the failure clearly and do NOT mark work as complete.
- Very specific: line 151
If .claude/project.json does not exist, report: "No project.json — no checks to run" and suggest the user create one.
- Very specific: line 153
If a non-obvious pitfall is discovered, add a gotcha via /gotcha [Category] description.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Post-Change Validation
Toolkit paths. Every toolkit script or template path cited here resolves, first hit wins, against: a repo-local copy installed by
setup.sh; else the plugin root (this skill's base directory two levels up,<base>/../..) when it holds that path; else~/.claude/brainstorm-toolkit/(the global shell install).
Run the suites in a sub-agent (default)
Dispatch the test-runner agent — by type brainstorm-toolkit:test-runner, or bare
test-runner when vendored — rather than running the commands in your own context. It is
defaults to Haiku (running a command and classifying its exit status is mechanical) via
models.test_runner in project.json; print model: test_runner=<tier> (cap: <cap|none>) and pass
model explicitly (it outranks the agent's frontmatter pin; see skills/sdlc/templates/models.md). It
returns {layers, failures[], preexisting[], green, totals} and nothing else.
Why this is the default, not an option. Test output is the largest single source of shell
traffic, and shell traffic was ~53% of main-thread tokens on an audited run. Raw runner output
taken into the orchestrator's context stays there for the rest of the session and is re-read on
every subsequent turn; taken by a sub-agent, it is discarded when the agent returns. You need
{name, file, expected, actual} to write a fix — not 400 lines of pytest.
Run a command inline only when you are debugging the runner itself (it won't start, the config is wrong) and need to see raw output. Say so when you do.
On a runtime with no sub-agent seam (Copilot / Codex), you are the runner: run the commands yourself, but report the structure above and do not paste the raw output back into your own narration.
Runs a deep post-change check. Reads commands from .claude/project.json. Any key that
is missing causes the corresponding step to be skipped — that's intentional, it lets
projects opt in to whichever layers apply.
Config keys read
{
"test": {
"unit": "...", // backend/unit test command
"frontend": "...", // frontend test command
"e2e": "..." // end-to-end test command
},
"logs": {
"command": "...", // e.g. "docker compose logs --tail 200"
"services": [...] // optional list of service names
},
"eval": {
"runner": "...", // e.g. "bash scripts/py.sh scripts/eval-runner.py"
"features_dir": "..." // where per-feature fixtures/expected live
}
}Steps
1. Log audit (if logs.command defined)
Run the log-audit script, which parses logs via the configured command:
bash scripts/py.sh scripts/check_docker_logs.py --output json \
--log-command "<logs.command>" \
--services <logs.services>Parse the JSON output:
- If any CRITICAL findings: stop and fix before running other tests.
- If HIGH findings: note them, continue, report at end.
- MEDIUM/LOW: proceed normally.
If logs.command is not defined in config, skip this step silently.
2. Frontend unit tests (if test.frontend defined and frontend files were changed)
<test.frontend>Skip if the key is missing.
3. Backend unit tests (if test.unit defined and backend files were changed)
<test.unit>Skip if the key is missing.
4. E2E tests (if test.e2e defined and UI flow was changed)
<test.e2e>Skip if the key is missing.
--loop — fix e2e failures instead of only reporting them. With --loop, on a runtime with no sub-agent
seam (Copilot / Codex) you are the loop: run, triage flaky vs real, fix, re-run, bounded by
the same budget, reporting only the structured summary. Otherwise dispatch the e2e-test-runner agent (by type:
brainstorm-toolkit:e2e-test-runner, or bare e2e-test-runner when vendored) rather than
running the command inline — tier models.e2e (Sonnet by default), per
skills/sdlc/templates/models.md; print model: e2e=<tier> (cap: <cap|none>) and pass
model explicitly, since the agent pins no tier and an omitted model inherits the session
model. It separates flaky failures from real ones, re-runs each failure
once before believing it, dispatches fixes, and re-runs until green or test.e2e_max_fix_loops
(default 3) is hit. It also reads test.e2e_patterns_file and test.e2e_rerun_failed_only
when set. Without --loop, this step stays one-shot: run, report, don't fix.
5. Post-test log re-check (if logs.command defined)
Re-run the log audit to catch issues triggered by the tests themselves. Compare with Step 1 findings. Any NEW issues are likely caused by the test run and should be investigated.
6. Feature evals (if eval.runner defined)
Run the configured runner and read its structured result, never its raw output:
<eval.runner> --output json # whole suite
<eval.runner> --feature <slug> --output json # one featureThe runner auto-discovers features from <eval.features_dir>/*/, so a new feature needs no
registration. Report pass/fail per feature plus min_pass_rate if eval.thresholds is set;
route failures through the same fix loop as the other suites. Authoring new evals is not this
skill's job — that is the pipeline's Stage 3
(skills/sdlc/templates/stage-3-evals.md).
Rules
- Always run Step 1 if
logs.commandis defined. - Run Steps 2-4 and 6 only if the corresponding key is defined AND files in the corresponding area changed.
- Always run Step 5 after tests complete, if Step 1 ran.
- If ANY check fails, report the failure clearly and do NOT mark work as complete.
- Summarize results at the end: which checks passed, which failed, what needs fixing.
- If
.claude/project.jsondoes not exist, report: "No project.json — no checks to run" and suggest the user create one. - If a non-obvious pitfall is discovered, add a gotcha via
/gotcha [Category] description.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

