full-test
Skill2 starsChanged 10 days agoMITView on GitHub
Test the whole PR just before it is sent. In a throwaway copy merged onto the latest target branch, runs every check CI runs (clean install, lint, type check, production build, the full test suite), walks the few user journeys the PR could break, and self-reviews the whole diff. Fixes obvious failures itself and brings only real decisions to the human. Use right before opening or updating a pull request, or when the human asks to check the whole branch or PR.
- Reads credentials
In this repository7 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- debugSkill
- feature-testSkill
- kickoffSkill
- loggerSkill
- securitySkill
- visibility-handlingSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Add --target <branch> if you know it better.
- Very specific: line 29
Run every check in the pr copy:
- Very specific: line 44
If the PR changes what a user sees or does, walk the fewest journeys it could break, as references/journeys.md says.
- Distinctive: line 55
If you fixed anything, refresh the copy and run every check once more.
- Distinctive: line 57
Remove the copy, also when you stop early:
- Very specific: line 78
Never skip, loosen or delete a test, never skip hooks (--no-verify), never turn a lint rule off, and never retry until green.
- Distinctive: line 84
No planted bugs here: feature-test plants them in each feature.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Full test
Runs once per PR, after each feature was proven on its own with feature-test. It answers one question: is this PR safe to send?
Steps
Make the copy. It finds the branch the PR merges into (the open PR's base, else the remote's default branch), fetches it, and merges the PR onto it with your uncommitted changes. Your folder is not touched.
python3 "${CLAUDE_SKILL_DIR}/scripts/pr_copy.py" setup --repo <project folder>Add
--target <branch>if you know it better. Exit 1 means the PR does not merge cleanly: stop and bring the conflict to the human.- Find the checks CI runs and write them to
<folder>/checks.json, asreferences/checks.mdsays. Order: clean install, lint and format, type check, production build, full test suite, then migrations if the PR changed any. Run every check in the
prcopy:python3 "${CLAUDE_SKILL_DIR}/scripts/run_checks.py" \ --checks <folder>/checks.json --root <folder>/pr --log-dir <folder>/logs- Sort each failure, as
references/checks.mdsays:- already failing on the target branch: note it, do not fix it;
- flaky: report it as a bug, never retry it to green;
- obvious (lint, format, a type error, a syntax error, a broken import,
a test the PR plainly broke): fix it in the human's folder, never in
the copy, then
pr_copy.py refresh <folder>and rerun that check; - anything else needs the human: do not fix it.
- If the PR changes what a user sees or does, walk the fewest journeys
it could break, as
references/journeys.mdsays. Otherwise skip this and say why. Self-review the whole diff, as
references/self-review.mdsays:python3 "${CLAUDE_SKILL_DIR}/scripts/scan_diff.py" \ --repo <project folder> --base <target printed by setup>- If you fixed anything, refresh the copy and run every check once more.
Remove the copy, also when you stop early:
python3 "${CLAUDE_SKILL_DIR}/scripts/pr_copy.py" cleanup <folder>- Report to the human, within the reply length the project asks for:
- whether every check passed, with the commands;
- what you fixed yourself, in a few words;
- uncommitted files setup listed, which must be committed before sending;
- each decision the human must make, one at a time;
- anything not run, marked "not checked yet".
Gotchas
- Fix code in the human's folder. The copy is thrown away, and so is any fix made in it.
- The copy has no installed packages and no ignored files like
.env. That is the point: install from the lockfile there. If a check needs env values, use the project's example or test values; if it needs real ones, ask the human. - Never skip, loosen or delete a test, never skip hooks (
--no-verify), never turn a lint rule off, and never retry until green. - Old lint or type problems already on the target branch do not block the PR. Only problems this PR adds do.
- Browser journeys cost the most time. Pick only the ones this PR could break and that matter most.
- No planted bugs here: feature-test plants them in each feature.
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.

