testing
Skill121 starsChanged 2 months agoApache-2.0View on GitHub
Write and review tests that protect meaningful Herdsman behavior without creating redundant, brittle, or low-value coverage. Use whenever adding, changing, reviewing, or removing tests.
123 other projects use a version of this.
Adopted by
Most recently taken up by
- timmo001/skillstheir own version, first seen Oct 5, 2026
- kortix-ai/sunatheir own version, first seen Oct 5, 2026
- gilsmt/skillstheir own version, first seen Oct 4, 2026
- andeeplus/aplustheir own version, first seen Oct 4, 2026
- JetBrains/intellij-communitytheir own version, first seen Oct 3, 2026
- shinpr/codex-workflowstheir own version, first seen Oct 2, 2026
Used with
Projects with it also use oss-pr, pr-automation 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.
CES-LtdSkilloss-pr
Use when creating a pull request, after committing changes, or when user invokes /oss-pr. Covers branch management, quality checks, commit, push, and PR creation.
Also in 3 projects that use this
CES-LtdSkillpr-automation
PR Automation Orchestrator: poll open PRs, check CI, run review, fix, and merge eligible PRs. Use when: (1) Invoked by daemon via scripts/pr-automation.sh, (2) User says "/pr-automation".
Also in 3 projects that use this
ffsshhttiikkSkillcicd
Continuous integration and delivery pipelines
Also in 4 projects that use this
ffsshhttiikkSkillnetworking
Practical application and coding skills for Networking
Also in 3 projects that use this
JohnJBorenSkillci-cd
CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies
Also in 9 projects that use this
Cogni-AI-OUSkilldotfiles
Reference for repository dotfiles, including their purposes, standard configurations, and usage guidelines. You MUST load this skill when configuring, troubleshooting, or understanding repository dotfiles.
Also in 3 projects that use this
- +2 more from CES-Ltd
- +1 more from ffsshhttiikk
Other versions123 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 123
- lobehub/lobehub★ 83ksame name
- iOfficeAI/AionUi★ 33ksame name
- JetBrains/intellij-community★ 21ksame name
- kortix-ai/suna★ 20ksame name
- modelcontextprotocol/inspector★ 11ksame name
- microsoft/fast★ 9.7ksame name
- bytebase/dbhub★ 3.6ksame name
- theopenco/llmgateway★ 1.7ksame name
- BankrBot/skills★ 1.2ksame name
- microsoft/CCF★ 875same name
113 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 repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docker/AGENTS.mdAGENTS.md
- agentic-system-auditSkill
- agentsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 15 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 105 edited versions we read keep these.
15
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
- Distinctive: line 12
Read the changed behavior and nearby tests first.
- Distinctive: line 14
Add a test only when it protects at least one of:
- Distinctive: line 22
If an existing test already proves the behavior, do not add another one.
- Distinctive: line 35
Test behavior at its lowest authoritative layer.
- Distinctive: line 39
Use live smoke only when behavior crosses the real Pi/Herdr runtime boundary.
- Distinctive: line 41
Prefer real local objects, temporary directories, files, and processes.
- Distinctive: line 43
Use the repository's existing Node test stack.
- Distinctive: line 51
If no plausible defect makes the test fail, delete the test.
- Distinctive: line 55
Prefer exact behavioral assertions over existence, truthiness, call counts, or snapshots unless those are themselves the contract.
- Distinctive: line 63
When relevant, exercise the actual failure boundary: I/O failure, stale state, interrupted process, failed persistence, timeout, cleanup, …
- Distinctive: line 65
Test only behavior the contract actually promises.
- Distinctive: line 67
Avoid sleeps as synchronization.
- Distinctive: line 73
Delete tests made redundant by stronger tests or structural enforcement.
- Distinctive: line 75
Do not introduce factories, builders, custom matchers, fixtures, helpers, property testing, fuzzing, mutation tooling, or another framework …
- Distinctive: line 77
Follow the repository's existing focused-test and validation contract instead of duplicating it here.
“Common” is measured: kept by at least 6 in 10 of the 105 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
Testing
Tests exist to catch plausible defects, not to increase test count or coverage.
Before adding a test
Read the changed behavior and nearby tests first.
Add a test only when it protects at least one of:
- observable behavior or an authoritative internal invariant;
- a regression that could plausibly recur;
- a meaningful boundary or state transition;
- a realistic failure, recovery, concurrency, or cleanup path;
- wiring across layers that cannot be established at a lower layer.
If an existing test already proves the behavior, do not add another one.
Do not test:
- trivial getters, assignments, forwarding, or wiring with no independent behavior;
- Node.js, TypeScript, Pi, Herdr, or another dependency's own behavior;
- implementation details when the same contract can be tested directly;
- states already made impossible structurally unless testing the enforcing boundary;
- the same invariant again at every layer;
- mocks rather than the behavior they stand in for.
Choose the smallest honest layer
Test behavior at its lowest authoritative layer.
Integration tests prove wiring and layer crossings. They do not repeat complete lower-layer behavior matrices.
Use live smoke only when behavior crosses the real Pi/Herdr runtime boundary.
Prefer real local objects, temporary directories, files, and processes. Mock only the boundary that must be controlled to reach otherwise inaccessible behavior or failure.
Use the repository's existing Node test stack. Add no testing dependency unless the existing platform cannot economically establish the required property.
Make every test discriminate
For a bug fix, the regression test must fail for the defective behavior and pass for the correction.
For new behavior, ask what plausible wrong implementation the test would reject.
If no plausible defect makes the test fail, delete the test.
Expected values must be independent of the production calculation being tested.
Prefer exact behavioral assertions over existence, truthiness, call counts, or snapshots unless those are themselves the contract.
Table-drive variants of one invariant instead of copying tests.
Failure and lifecycle behavior
Invalid input is not sufficient failure coverage when the meaningful risk is a dependency or lifecycle failure.
When relevant, exercise the actual failure boundary: I/O failure, stale state, interrupted process, failed persistence, timeout, cleanup, recovery, ownership, or state transition.
Test only behavior the contract actually promises. Do not invent retries, fallbacks, errors, or recovery semantics merely to test them.
Avoid sleeps as synchronization. Wait on observable conditions or use deterministic native test facilities where practical.
Keep the suite smaller
A new test should increase confidence more than maintenance cost.
Delete tests made redundant by stronger tests or structural enforcement.
Do not introduce factories, builders, custom matchers, fixtures, helpers, property testing, fuzzing, mutation tooling, or another framework until repeated concrete need makes the simpler alternative worse.
Follow the repository's existing focused-test and validation contract instead of duplicating it here.
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.

