implementing-with-tests
Skill33 starsChanged 34 days agoApache-2.0View on GitHub
Implement runtime behavior changes and bug fixes with meaningful before-and-after checks, preserved behavior and relevant regression evidence. Use while editing code; prose-only changes do not need a failing test.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- okgrit/done-is-a-claimword for word, first seen Nov 8, 2026
Other versions1 project uses a version of this.
Word for word · 1
- okgrit/done-is-a-claim★ 33100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
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 repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- acceptance-designSkill
- checking-deliverySkill
- collecting-worker-resultsSkill
- debugging-with-evidenceSkill
- evidence-freshnessSkill
- executing-plansSkill
- planning-changesSkill
- public-claimsSkill
- reading-measurementsSkill
- responding-to-reviewSkill
- resuming-workSkill
- reviewing-changesSkill
- using-done-is-a-claimSkill
- whose-redSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 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.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Read the request, current code, relevant callers and existing tests.
- Distinctive: line 20
Prefer the real affected boundary when a helper test or mocked success would miss it.
- Distinctive: line 34
Read the actual failure and capture the command's own exit status and inputs.
- Distinctive: line 41
Do not weaken the requirement or deliberately break code to manufacture a red.
- Distinctive: line 43
If execution or an authorized setup repair is unavailable, state which observation is missing and why.
- Distinctive: line 53
Run the behavior check and inspect the result, then run the whole relevant regression suite, including affected callers and preservation …
≈ “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
Implementing with tests
Make the requested behavior observable, change only what it needs, and preserve the surrounding contract. Follow the user's explicit workflow choices; if they override test-first work, record the resulting evidence limits without blocking authorized implementation or pretending a failing baseline was observed.
Choose the behavior boundary
Read the request, current code, relevant callers and existing tests. Identify the behavior to change, inputs and outputs that expose it, and behavior that must remain valid. Respect the assigned files and existing production code.
Select a check that distinguishes the requested outcome from a plausible defect. Prefer the real affected boundary when a helper test or mocked success would miss it. Assertions should follow the contract, not repeat implementation constants. Include meaningful edge inputs and relevant preservation checks proportionately.
An existing passing test may already cover a preservation requirement or an already implemented outcome. Run and inspect it; add a check only for a real coverage gap. Do not force a failure for behavior that should stay unchanged. For a prose-only edit, inspect the text and scoped diff and use relevant document checks. Do not invent a runtime test or artificial red to satisfy a ceremony.
Observe a useful baseline
For new or corrected behavior, write or select the smallest meaningful check before changing runtime code, then run it on the current implementation. Read the actual failure and capture the command's own exit status and inputs. Confirm it reaches the intended behavior and rejects it for the intended reason.
A missing import, fixture, tool, path or empty collection is a setup gap, not evidence of the requested defect. Repair the setup within scope and rerun; do not call an accidental red a baseline. If the check passes unexpectedly, inspect why: the behavior may already exist, or the check may not distinguish the defect. Do not weaken the requirement or deliberately break code to manufacture a red.
If execution or an authorized setup repair is unavailable, state which observation is missing and why. Written tests and predicted failures cannot support a claim that red or green was observed. Continue authorized work where useful, retaining required verification as a gap.
Change, check and preserve
Make the smallest coherent implementation that satisfies the behavior. Do not delete working production code or rewrite from scratch just to recreate test-first history. Preserve unrelated edits and existing public behavior.
Run the behavior check and inspect the result, then run the whole relevant regression suite, including affected callers and preservation cases. A single green assertion cannot certify neighboring behavior; failed, skipped, unavailable or empty required checks remain gaps. Investigate unexpected failures before another speculative fix.
Refactor only when useful within scope. Rerun affected checks after the refactor; an earlier green does not certify changed inputs. Repeat this loop for distinct behaviors in proportion to their risk, rather than for every line or file.
Return the evidence
Review the final diff against the request and preservation requirements. Report changed files, tested revision and dirty inputs, commands, actual failure/pass observations, exit statuses and evidence locations. Distinguish a demonstrated before-and-after change from preservation-only checks or unexecuted tests. Claim completion only to the extent current required checks support 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.

