test
Skill453 starsChanged 4 months agoApache-2.0View on GitHub
Write or assess tests that prove behavior and would fail without the fix. Use when: writing tests, TDD, or asked whether a green test is enough.
179 other projects use a version of this.
Adopted by
Most recently taken up by
- tyrantpiper/travel-pwatheir own version, first seen Nov 8, 2026
- phuthuycoding/kanban-flowtheir own version, first seen Nov 8, 2026
- pche-broken-artist/forge-of-thoughttheir own version, first seen Nov 8, 2026
- PMDevSolutions/Flaviantheir own version, first seen Nov 8, 2026
- domengabrovsek/agent-configtheir own version, first seen Nov 8, 2026
- domengabrovsek/claudetheir own version, first seen Nov 8, 2026
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.
parcadeiSkillagent-context-isolation
Agent Context Isolation
Also in 3 projects that use this
parcadeiSkillagentica-infrastructure
Reference guide for Agentica multi-agent infrastructure APIs
Also in 3 projects that use this
- +10 more from parcadei
Other versions179 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 179
- react/react★ 252ksame name
- facebook/react★ 252ksame name
- apache/skywalking★ 25ksame name
- livewire/livewire★ 24ksame name
- NVIDIA/TensorRT★ 13ksame name
- FalkorDB/FalkorDB★ 10ksame name
- FastLED/FastLED★ 7.5ksame name
- fleetdm/fleet★ 7.2ksame name
- parcadei/Continuous-Claude★ 3.9ksame name
- parcadei/Continuous-Claude-v2★ 3.9ksame name
169 more not listed
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 repository32 other files it gives its agents.
- AGENTS.mdAGENTS.md
- cli/AGENTS.mdAGENTS.md
- agent-nativeSkill
- agy-nativeSkill
- architectureSkill
- claude-execSkill
- codex-execSkill
- councilSkill
- craft-goalSkill
- docSkill
- domainSkill
- ergonomicsSkill
- idea-genieSkill
- implementSkill
- interviewSkill
- memorySkill
- navigateSkill
- orchestrateSkill
- planSkill
- postmortemSkill
- premortemSkill
- refactorSkill
- researchSkill
- reverse-engineerSkill
- reviewSkill
- rpiSkill
- securitySkill
- skill-builderSkill
- skill-evalSkill
- triageSkill
- using-gcSkill
- validateSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 7 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 154 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
Write or strengthen tests for a named behavior.
- Very specific: line 44
Default to generate; mode and scope are skill prompt choices, not invented CLI flags.
- Distinctive: line 49
Assert the promised effect: Check the state change, outbound call or count the behavior promises at its boundary, reading a stored record …
- Distinctive: line 66
Use the repository's framework and real check recipe.
- Distinctive: line 76
Prefer exact observable values or errors when known.
- Distinctive: line 108
No need to re-prove an unchanged healthy runner on each edit.
- Very specific: line 112
Read the accepted examples and the relevant public interface.
- Very specific: line 129
Use Domain's standards only if they would change the test choice.
- Distinctive: line 132
Write the smallest test that observes the promised result through a stable interface: the entry point callers use.
- Distinctive: line 141
Run focused checks while editing and the relevant integration recipe before handoff.
“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.
Files
Test
Write or strengthen tests for a named behavior. Use existing tests directly when the task is only to run a known suite; this skill is not a required wrapper. A test is useful when it distinguishes an accepted outcome from a plausible failure, not merely when it executes the implementation. A green test is evidence for the caller's decision, never the test author's merge approval; the binding verdict belongs to Validate.
Modes
| Mode | Use when | Result |
generate | Existing behavior needs tests | Useful tests and focused/suite results |
coverage | The caller asks to find or fill gaps | Before/after coverage, valuable tests and remaining risks |
tdd | New behavior is being developed test first | Real expected RED, implementation, green and refactor |
strategy | The caller wants test design only | Prioritized risks and proposed checks in the existing discussion |
Default to generate; mode and scope are skill prompt choices, not invented
CLI flags. Coverage thresholds come from the caller or repository.
Critical Constraints
- Assert the promised effect. Check the state change, outbound call or count the behavior promises at its boundary, reading a stored record back through the product's own read path unless the stored shape is the contract. Take exact expected values from a literal, worked example or the specification, never the implementation's own formula or a mock's answer: for a 20% discount on 50, assert 40. A status code, a returned object or the absence of an exception alone does not prove the behavior; would the test stay green if the code returned an empty or default result? A rejection test asserts the error its name claims, since another guard can reject the same input.
- A regression test proves nothing until it fails on the defect. Show that it fails on the pre-fix code (see Mutation-kill proof) through the callers, sequence or state that produced the report, not only at the changed line. Until then, report its proof as "not shown"; green alone is not yet proof.
- Derive cases from accepted observable behavior; reuse examples from the conversation, bead, specification or existing contract before inventing new ones. Keep established domain names; do not unify bounded-context terms by renaming tests.
- Use the repository's framework and real check recipe; keep tests free of accidental timing, ordering and shared-state dependencies.
- A test that starts green on existing correct behavior is legitimate; use such tests to pin untested code before changing it, marking an odd result as a suspected defect. Never manufacture a RED claim or alter acceptance to excuse a product defect.
- Repair a discovered defect when already authorized; otherwise report the reproducer and finding, never masking it by deleting or weakening a test (fix the cause, not the oracle).
Oracle-strength hierarchy
Prefer exact observable values or errors when known. Use properties or invariants when they express the contract more faithfully than one example. Differential agreement needs an independently credible reference. A smoke check proves only what it observes; it cannot establish an exact behavior by itself. When correctness is a matter of meaning, as for a summary or ranking, a count is only a proxy; judge it as in proof fidelity. Explain a material oracle limit in the native handoff, without creating a worksheet or mandatory report.
Mutation-kill proof
Establish that an important new behavioral check can catch the defect it claims to guard. An authentic pre-fix RED or reproduction is usually sufficient. If a regression test was written after the fix, run it against the pre-fix version (revert the fix in an isolated copy) or use a safe, targeted negative control. Mutate only when that would resolve real doubt about the oracle, then restore and verify the candidate. Do not demand one mutation experiment per table row or new test. Trust a revert or mutation result only from a copy confirmed to hold this candidate's commit and uncommitted changes plus that one edit; a worktree cut from HEAD can lack the fix or test. Never mutate a shared checkout.
Harness health floors
Confirm the runner completed, the intended tests actually ran, and assertions
observe the promised behavior. Take the result from the runner's exit status,
not its printed output, and keep that status through pipes (pipefail):
make test | tail reports tail. A check that edits tracked files has changed
the subject; report the edit. Report crashes, truncation, unexpected skips or
exclusions as gaps. When runner discovery or failure reporting changed, use a
negative control through that same path before trusting green. When the change
is itself a check standing in for a real run, also match its context to what it
protects (proof fidelity).
No need to re-prove an unchanged healthy runner on each edit.
Workflow
- Read the accepted examples and the relevant public interface. One
discriminating example may suffice for a small change; add the error and
boundary cases that could falsify acceptance. A
.featurefile is optional; if the repository already uses scenario-to-test annotations, maintain them and use its scenario coverage checker. When several record kinds support different actions, derive the meaningful kind/action pairs from accepted domain rules and check their promised end states. Do not invent impossible combinations or infer a kind's result from a sibling's passing test. A table test may cover many pairs; no separate artifact or test per cell is required. Report relevant uncovered pairs undernot_checked. Shared removal code is valid when those kinds should both disappear; it is a defect when an observed end state contradicts the accepted meaning, such as deleting a record that withdrawal must retain as inactive. - Find the owning suite and a narrow baseline. For a defect, choose which test
carries its proof before changing code; with no seam that reaches the
reported chain, write no shallower stand-in
(proof fidelity).
Use Domain's standards only
if they would change the test choice. Measure broad coverage only in
coveragemode or under an existing repository requirement. - Write the smallest test that observes the promised result through a stable
interface: the entry point callers use. Add no export, flag or hook only
tests call (a time, randomness or external-boundary seam excepted), mock no
collaborator inside the unit, and move to the interface any test you write
here that a behavior-preserving rewrite would break; list existing ones under
rewrite(suite audit). Intddmode run it before implementation and require the expected missing-behavior failure, then implement and refactor under green, one test at a time, each next case chosen from what the last cycle showed. - Run focused checks while editing and the relevant integration recipe before handoff; broaden only for changed risk, a failure or repository policy.
- Compare against the original accepted examples. New tests added after implementation may supplement but never replace them.
Specialized references
Load only the guidance needed by the subject:
- Public compatibility contracts: conformance-harnesses
- Parsers and hostile inputs: fuzzing
- Snapshots and golden-file updates: golden artifacts
- Invariants: metamorphic testing
- Service integration: real-service E2E
- Selected user journeys: exploratory QA
- Authorized suite maintenance: suite audit
- Defect proof placement, stand-in checks and judged output: proof fidelity
- CLI/API failure signals and uncertain write outcomes: error recovery
- Timing, shared-state or concurrency failures: difficult-failure experiments
- Workload baseline and candidate comparison: subject performance
Output Specification
Tests belong in the repository's language-native locations. Check facts and limits go in the existing handoff:
tests: <file::name> -> <behavior and exact values it asserts>
proof: <each important new test> -> how it was shown to fail on its defect:
pre-fix RED | reverted-fix run | negative control | not shown
commands: <exact command> -> <result>
harness: <runner completed; how many ran; skips or exclusions>
coverage: <before -> after, command> (coverage mode only)
defects: <discovered defect and reproducer, or none>
rewrite: <existing test a behavior-preserving change would break>
not_checked: <material behavior no test covers>Persist coverage or other reports only when requested or required by a declared
consumer, at its selected destination; no automatic .agents/ output.
Example: for a duplicate Job delivery, assert that the completed result is returned and the external side effect is called only once. A coverage increase without those assertions would not prove the behavior.
This guidance uses original examples informed by Matt Pocock's engineering skills, with AgentOps' existing acceptance and evidence boundaries.
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.

