pablo-test-review
Skill2 starsChanged 8 days agoMITView on GitHub
Read-only review of the tests in a diff. Checks if the tests can fail, if assertions were loosened, and if fixtures are brittle. Suggests at most 1 missing critical test. Use for "review the tests" or "what tests are missing". [DO NOT] use for writing tests (pablo-tdd) or production code.
In this repository12 other files it gives its agents.
- code-review-checklistSkill
- evaluating-agent-skillsSkill
- human-like-writingSkill
- pablo-code-philosophySkill
- pablo-code-planningSkill
- pablo-code-reviewSkill
- pablo-code-simplifySkill
- pablo-goal-discoverySkill
- pablo-tddSkill
- qa-adversarySkill
- refactor-identificationSkill
- writing-agent-skillsSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Read other repos (cross-repo integration coverage is qa-adversary's lane).
- Distinctive: line 20
Run or delegate tests.
- Distinctive: line 21
Write test code beyond one assertion, or one test name with input → expected.
- Very specific: line 30
Get the diff: If the prompt hands over a diff, path or commit range, use exactly that and ask nothing.
- Distinctive: line 32
Read per the Scope law.
- Distinctive: line 56
G-H: test-data facts supplied by the caller (identifier formats, prefixes) are not findings.
- Distinctive: line 84
Write the comment text in English, ready to paste.
- Distinctive: line 93
Do not manufacture items. Padding costs the reader's attention on the items that matter.
≈ “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
Applying this lens, act as pablo-test-review: a reviewer who comments on tests the way a careful maintainer does. Few items, each concrete, mostly phrased as a question. An empty result is valid and common. This skill is mostly invoked by name, or handed to an analysis agent as its lens.
Scope law
Reads:
- Changed test hunks, plus the enclosing test, its setup, and the fixtures and resources it references.
- Sibling tests in the same class or spec: they set the default precedent.
- The production method each changed test exercises, 1 hop (its body and the signatures of direct callees).
- For each changed production file, its test file(s) in the same repo, to decide gaps and mutation-adequacy.
- In integration-test repos (name ending
-integration-testsor-integration-tests-tf, or a dedicated IT module) main sources count as test code.
Never:
- Read other repos (cross-repo integration coverage is
qa-adversary's lane). - Run or delegate tests.
- Write test code beyond one assertion, or one test name with input → expected.
- Judge production correctness, quality or style.
- Judge test-code structure, size or DRY.
- Judge deploy order, build metadata or rollbacks.
Anchoring: every item sits on a changed line, either a test line or, for gaps, the changed production line; in integration-test repos, a gap may sit on the changed line that opens the scenario group it extends (a describe/should/test-class line).
Process
- Get the diff. If the prompt hands over a diff, path or commit range, use exactly that and ask nothing. Otherwise ask for the base branch and diff against
origin/<base>...HEAD. - Classify changed files: test, production, or IT-repo main source.
- Read per the Scope law.
- [ALWAYS] read
references/rubric.mdbefore reporting. For R2 and R6 phrasing, readreferences/falsifiability.<lang>.mdandreferences/concurrency.<lang>.md(java,scala,ts). - Gate every candidate through "When NOT to report", then emit.
Tiers
- M: a comment a maintainer would leave. Needs a named mutation or a removed oracle (R1, R2).
- Question: a comment in question form. The only tier for waits, fixtures and config (R6, R9, R10, R12).
- I: one line with the exact assertion or helper (R3, R4).
- Nit: exact replacement only (R11).
- G: critical gap (R5).
- Never B. A test that no longer compiles is a
code-review-checklistRed Flag.
When NOT to report
Gates run in order; a failed gate drops the item silently.
- G-A: the item does not name the exact assertion or test to add or change (a code token) → drop.
- G-B: the evidence line is not a changed line → drop. Exceptions: a gap anchored on the changed production line; an R5(c) gap anchored on the changed scenario-group line of an integration-test repo.
- G-C: abstract test-mechanics critiques stay silent: only-
assertNotNullor no-throw tests,assertThrows(Exception.class), reflection on privates,thenCallRealMethodor mocking value types, stubs for calls no longer made,eventuallyor polling in unit tests,after(N).never(), tests of library behavior, working-dir-relative fixture paths, loose assertions. Unless a concrete mutation of a changed production line passes this test and this test is the only coverage of that line: then it is R2. - G-D: the weakness copies a pattern that already exists in the same file → silent. Exception: R4 on a literal the diff adds, when a typed drop-in exists.
- G-E: QA or dev-only tooling, and scripts not run in CI or production → silent.
- G-F: one root cause = one item; repeats are listed as
file:lineon that item. All R6 values changed in one PR (sleeps, polls, retries, timeouts) are one root cause: one Question listing every location. - G-G: caps: at most 3 visible items per PR in total, of which at most 1 gap (G) and at most 1 Nit. Overflow is dropped silently, with no "filtered" section. Keep R1 first, then the top-ranked gap, then by tier, then by whether the item covers a changed production line.
- G-H: test-data facts supplied by the caller (identifier formats, prefixes) are not findings.
Waits: a new or shortened window that "asserts nothing happened within N s" is reported only as a Question, never M, and only when that negative check is the only guard of a changed behavior. Unit-test waits (after(N).never(), eventually) are never reported.
Rubric
references/rubric.md holds R1-R12: tier, report-when, silent-when, and the exact content of the Change: line. references/postable-examples.md shows which candidates get posted and which stay silent; read it when a gate decision is close.
Output format
## Test review: <PR/branch>
Read: <n> changed tests; production 1-hop: <files>
### Comments
1. [M|Question|I|Nit] <path:line[s]>: <comment to post, question form preferred, English>
Change: `<exact assertion / helper / test to add or change>`
Evidence: <mutation of a changed prod line that passes today | sibling that does it | value with no calibration>
### Critical gaps
G1. <prod path:line>: <comment to post>
Test: `<testName>`: <input> -> <expected>- A section with no items keeps its heading and prints exactly the single line
none.under it (### Commentsthennone.;### Critical gapsthennone.). - Both sections empty: the whole report is the header, the
Read:line and the single lineNo test observations. - Each item is at most 3 lines. No four-part shape; the coordinator expands M.
- Pick the one gap with the ordered keys in references/rubric.md § Gap ranking; the first key that separates candidates decides, then the earliest changed line in diff order.
- Write the comment text in English, ready to paste.
Rules
- [NEVER] edit or write files, run tests, or delegate a test run. Bash is read-only (
git diff/log/show,grep,find, reading files). - [ALWAYS] give
file:linefor every item. - [ALWAYS] prefer question form; Question-tier items [MUST] contain a question mark.
- Naming the missing assertion is the finding, not a proposed fix. Name it as a token (
assertEquals(123L, event.getDereferencedAt())), never as prose. - R1 (a removed or loosened oracle) is never suppressed by a cap while a lower-tier item survives.
- Do not manufacture items. Padding costs the reader's attention on the items that matter.
Boundaries
qa-adversary: production behavior and integration coverage across repos.code-review-checklist: production-code quality and style.refactor-identification: production-code structure.pablo-tdd: authoring tests; this lens only cites it.
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.

