agentleFS
avibebuilderavibebuilder/claude-prime/.claude/skills/test/SKILL.md

test

Skill119 starsChanged 6 months agoMITView on GitHub

Use when the user wants to know if something works — the answer requires running code, not analyzing it. Output is a verdict backed by evidence: passed, failed, or broken. Primary triggers: 'run the tests', 'does X still work after my change?', 'did the merge break anything?', 'verify the fix worked', 'check if the endpoint returns X', 'confirm nothing regressed', 'run tests/unit/test_foo.py', 'let me know the results', 'make sure my changes didn't break anything'. Hard stops — do NOT use for: reviewing test code for quality/coverage gaps, debugging why test infrastructure/databases/seed scripts are misbehaving, writing or fixing tests, diagnosing root causes of unexpected behavior. The deciding question: is the user asking for the result of executing something, or asking for help understanding/analyzing/improving something? If it's the latter, use diagnose or review-code instead.

179 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use agent-context-isolation, agentica-infrastructure and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. 0 are common, 17 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 154 edited versions we read keep these.

  • 17

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the claim is mushy, sharpen it before you touch the tools.

    line 33
  2. Distinctive:

    Use the change set to identify:

    line 39
  3. Distinctive:

    Check in this order:

    line 48
  4. Distinctive:

    Prefer project-defined commands over raw framework commands.

    line 55
  5. Distinctive:

    If no relevant tests exist, use a manual path instead of calling the result inconclusive.

    line 82
  6. Distinctive:

    Keep these guardrails in mind:

    line 86
  7. Distinctive:

    keep verification outcome-first: prove the user-visible or system-visible result, not just an intermediate action

    line 88
  8. Distinctive:

    when regression is warranted, widen in rings: direct dependents → feature area → full suite

    line 89
  9. Distinctive:

    Only use INCONCLUSIVE when neither an automated path nor a manual path is feasible.

    line 91
  10. Distinctive:

    Before running verification, confirm required infra is already available.

    line 95
  11. Distinctive:

    When you run verification, capture evidence:

    line 97
  12. Distinctive:

    Start with the most direct proof.

    line 104
  13. Distinctive:

    Use these verdicts consistently:

    line 130
  14. Distinctive:

    Run and report only. Do not fix failures.

    line 149
  15. Distinctive:

    If a lane points to a reference, read it before improvising tactics.

    line 153
  16. Distinctive:

    Do not leave verification hooks behind unless the user asked for a durable selector as part of the product change.

    line 155
  17. Distinctive:

    Never start dev servers, databases, builds, or migrations yourself.

    line 156

“Common” is measured: kept by at least 6 in 10 of the 154 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Route fast

SituationSteps
run tests or a specific test path3 → 5 → 6
The verification claim is already clear from the request or recent context4 → 5 → 6
Behavioral claim but no tests exist1 → 4 manual path → 5 → 6
Vague claim or broad changeFull flow

Skip steps whose answers are already known from the conversation.

Flow

1. Define the claim

Figure out what must be true before running anything.

Possible sources:

  • explicit argument
  • stated request or acceptance criteria
  • recent conversation
  • recent diff or git status as fallback

Good claim: expired tokens return 401. Bad claim: the app works.

If the claim is mushy, sharpen it before you touch the tools. Weak claims create noisy verification.

2. Scope only when needed

Skip if the claim is already scoped.

Use the change set to identify:

  • deliverables — what must hold true
  • coverage — what existing tests or manual checks could prove each deliverable
  • blast radius — what nearby behavior could regress

For shared code, config, auth, schema, or similar cross-cutting changes, read references/regression-strategy.md before deciding how wide to test.

3. Find the project's real test entrypoints

Check in this order:

  1. CLAUDE.md
  2. package.json, Makefile, justfile, Taskfile
  3. CI config
  4. test framework config
  5. existing test layout

Prefer project-defined commands over raw framework commands.

4. Choose the proof lane

Match the claim to the execution lane.

Claim typeLane
logic, transforms, business rulesdirect tests
API behavior or contractsbackend verification
UI behavior or renderingfrontend verification
visual UI criteriafrontend visual verification
DB persistencebackend verification
CLI behaviordirect command verification
type or schema correctnessdirect static verification
compile/build correctnessdirect static/build verification

Once you've picked a lane, read the relevant reference before executing. Let the reference own the execution details.

Reference map

  • references/backend-verification.md — API, DB, services, and background jobs
  • references/frontend-verification.md — browser, component, and visual verification
  • references/regression-strategy.md — how wide to test once the main claim is proven

The right method is the one that can disprove the claim fastest without pretending to offer more confidence than it really does.

If no relevant tests exist, use a manual path instead of calling the result inconclusive. Follow the selected lane's reference rather than rebuilding the checklist inline.

For command-line claims, run the command and inspect output directly.

Keep these guardrails in mind:

  • once a lane is chosen, follow its reference instead of rebuilding the same checklist inline
  • keep verification outcome-first: prove the user-visible or system-visible result, not just an intermediate action
  • when regression is warranted, widen in rings: direct dependents → feature area → full suite

Only use INCONCLUSIVE when neither an automated path nor a manual path is feasible.

5. Pre-flight and execute

Before running verification, confirm required infra is already available. If a server, DB, queue worker, mock service, or migration is needed and not running, stop and tell the user the exact command to start it. Do not start it yourself.

When you run verification, capture evidence:

  • exact command
  • exit code
  • relevant output
  • non-zero test count when a suite was run
  • warnings, skipped tests, and flaky behavior that matter to the claim

Start with the most direct proof. Expand into broader regression only when the blast radius justifies it.

6. Report

Use this structure:

## Verification Report

**Claim**: {what was tested}
**Verdict**: CONFIRMED | REFUTED | PARTIAL | INCONCLUSIVE

### Evidence
- {command}: exit {code} — proves or refutes {deliverable}

### Failures
- {test or command}: {error snippet} — {what it means}

### Gaps
- {deliverable or regression area still unverified}

### Suite Stats
Total: X | Passed: X | Failed: X | Skipped: X | Duration: Xs
Coverage: Lines X% | Branches X% (if available)

Use these verdicts consistently:

  • CONFIRMED — every deliverable has passing evidence
  • REFUTED — at least one deliverable failed with clear evidence
  • PARTIAL — some deliverables are proven, others remain unverified
  • INCONCLUSIVE — verification was blocked by missing infra, environment issues, or unavailable access

Common verification situations

Bug-fix verification

Prove the original failure no longer reproduces and check one regression ring around the changed area.

Feature verification

Prove the stated acceptance criteria and include type-check evidence when that meaningfully covers changed contracts.

Standalone verification

Take the claim from the argument or, if needed, infer it from recent changes.

Rules

  • Run and report only. Do not fix failures.
  • A passing suite is not proof if it never exercised the claim.
  • Coverage gaps stay in the report even when existing tests pass.
  • Flaky behavior and pre-existing failures are findings, not noise.
  • If a lane points to a reference, read it before improvising tactics.
  • Temporary, verification-only app changes are allowed when they make the proof materially better and the app is ours to edit. Keep them minimal, use them to verify the claim, then remove them before reporting.
  • Do not leave verification hooks behind unless the user asked for a durable selector as part of the product change.
  • Never start dev servers, databases, builds, or migrations yourself.

Verification Target

<target>$ARGUMENTS</target>

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.