testing
Skill9 starsChanged 9 days agoMITView on GitHub
Plan, implement, run, or review automated tests using behavior and risk to select useful coverage. Use when asked to add tests, choose test levels, investigate test failures, or assess test quality; do not use for production implementation alone, debugging without a testing outcome, or manual QA only.
194 other projects use a version of this.
Adopted by
Most recently taken up by
- siemens/elementtheir own version, first seen Nov 30, 2026
- mphaxise/gstack-port-for-codextheir own version, first seen Nov 29, 2026
- siberiacancode/agent-skillstheir own version, first seen Nov 29, 2026
- rshankras/claude-code-apple-skillstheir own version, first seen Nov 29, 2026
- microsoft/vs-solutionpersistencetheir own version, first seen Nov 29, 2026
- atstaeff/ai-agentstheir own version, first seen Nov 29, 2026
Used with
Projects with it also use bundle-dependency-prs, update-library-template 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.
MicrosoftSkillbundle-dependency-prs
Fix broken dependency update PRs and aggregate the ones that work into one PR.
Also in 8 projects that use this
MicrosoftSkillupdate-library-template
Merges the latest Library.Template into this repo (at position of HEAD) and resolves conflicts.
Also in 8 projects that use this
NVIDIA-NeMoSkillbuild-and-dependency
Dev environment setup for Megatron Bridge — container-based development, uv package management, lockfile regeneration, adding dependencies, Slurm container usage, and common build pitfalls.
Also in 3 projects that use this
timmo001Skillchangeset-scope
Keep all scoped code work contained to the user-defined changeset. Use for implementation, fixes, diagnosis, refactoring, cleanup, and review when explicit instructions, named files, diffs, branches, pull requests, or injected work scopes define the boundary.
Also in 3 projects that use this
JetBrainsSkillmodule-dependencies
Add or modify IntelliJ module dependencies in `.iml` files.
Also in 3 projects that use this
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
Other versions194 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 194
- modelcontextprotocol/servers★ 92ksame name
- lobehub/lobe-chat★ 86ksame name
- lobehub/lobehub★ 86ksame name
- penpot/penpot★ 63ksame name
- meteor/meteor★ 45ksame name
- iOfficeAI/AionUi★ 34ksame name
- garrytan/gbrain★ 34ksame name
- OpenZeppelin/openzeppelin-contracts★ 27ksame name
- tursodatabase/turso★ 25ksame name
- redis/go-redis★ 22ksame name
184 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 repository9 other files it gives its agents.
- api-designSkill
- code-reviewSkill
- commitsSkill
- debugSkill
- deployment-readinessSkill
- docsSkill
- refactorSkill
- security-reviewSkill
- sqlSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 14 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 175 edited versions we read keep these.
14
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 14
Use this skill to plan, write, run, repair, or assess automated tests.
- Distinctive: line 16
Do not activate it for feature implementation with no testing deliverable, root-cause debugging that does not require test work, manual …
- Distinctive: line 32
Run the narrowest relevant tests, then broader checks warranted by risk.
- Distinctive: line 38
Integration tests: Verify real boundaries such as persistence, serialization, framework configuration, or component collaboration where …
- Distinctive: line 39
Contract tests: Check provider and consumer expectations, schemas, compatibility, and failure semantics at integration boundaries.
- Distinctive: line 44
Concurrency tests: Check atomicity, ordering, cancellation, races, deadlocks, and shared-state invariants with appropriate tooling and …
- Distinctive: line 51
Keep tests deterministic, isolated at the appropriate boundary, reproducible, legible, and resistant to legitimate internal refactoring.
- Distinctive: line 52
Prefer controlled signals, fake clocks, latches, events, or bounded polling over real-time dependence and indiscriminate sleeps.
- Distinctive: line 54
Do not depend on execution order, live mutable services, undeclared machine state, or network availability unless the test is explicitly an …
- Distinctive: line 55
Do not weaken assertions, delete tests, ignore failures, or modify production code solely to make a misleading test pass.
- Distinctive: line 56
Treat line or branch coverage as navigation evidence, not a standalone quality score.
- Distinctive: line 62
If required services, data, permissions, tooling, or environments are unavailable, report the blocked checks and use the closest valid …
- Distinctive: line 63
When legacy behavior is unknown, add narrow characterization coverage or inspect further before asserting the intended result.
- Distinctive: line 65
Do not commit or push automatically.
“Common” is measured: kept by at least 6 in 10 of the 175 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
Automated testing
Outcome
Create reliable tests that provide useful evidence about observable behavior and meaningful risks at a cost appropriate to the project. Prefer the lowest-cost test level that exercises the relevant contract with sufficient confidence, without treating any fixed test pyramid or coverage percentage as a universal goal.
Use and non-use
Use this skill to plan, write, run, repair, or assess automated tests; reproduce behavior with a regression test; evaluate coverage gaps; or improve a test suite's reliability.
Do not activate it for feature implementation with no testing deliverable, root-cause debugging that does not require test work, manual exploratory QA alone, or performance and security assessment that requires a specialized workflow. Do not change production behavior merely to satisfy an artificial test.
Required context
Identify the behavior or contract to verify, affected code, change intent, failure history, consumers, existing test conventions, supported environments, and available commands. Inspect the repository before choosing frameworks or patterns. Separate confirmed behavior from assumptions and preserve unrelated work.
Workflow
- State the behavior, invariant, regression, or risk the test must provide evidence about. Define what failure should mean to a maintainer.
- Inspect the implementation, public contracts, call sites, existing tests, fixtures, test configuration, and recent changes. Reuse project conventions and helpers when they remain clear and trustworthy.
- Assess risk using impact, likelihood, change reach, statefulness, concurrency, external integration, compatibility, and prior defects. Let risk determine depth rather than maximizing test count.
- Derive representative scenarios: normal paths, boundaries, invalid input, exceptions, state transitions, retries, and regressions. Use parameterization when cases share behavior and remain readable.
- Select test levels by the contract under test, feedback speed, reliability, diagnostic value, and maintenance cost. Combine levels only when each catches a distinct material risk; do not impose a universal pyramid.
- Identify external dependencies such as databases, filesystems, clocks, randomness, networks, processes, queues, and third-party services. Decide deliberately whether to use a real dependency, controlled substitute, fake, stub, or mock at a stable boundary.
- Prepare minimal, explicit data and fixtures. Control time, random seeds, identifiers, locale, environment, and cleanup where relevant. Avoid shared mutable state and order dependence.
- Implement tests around observable outcomes: returned values, state changes, emitted events, persisted data, external calls at owned boundaries, or documented errors. Use meaningful assertions and keep setup readable.
- Run the narrowest relevant tests, then broader checks warranted by risk. Record the exact commands and observed results. Distinguish assertion failures from setup, environment, timeout, infrastructure, and flaky failures before changing code.
- Compare results with the intended contract. Identify real defects, incorrect expectations, unstable tests, and remaining coverage gaps. Report what was and was not exercised; never infer total quality from compilation, one passing test, or coverage percentage alone.
Test strategy guidance
- Unit tests: Exercise cohesive logic quickly with controlled collaborators when isolation improves diagnosis without replacing meaningful behavior with mock choreography.
- Integration tests: Verify real boundaries such as persistence, serialization, framework configuration, or component collaboration where substitutes would hide material risk.
- Contract tests: Check provider and consumer expectations, schemas, compatibility, and failure semantics at integration boundaries.
- End-to-end tests: Reserve for critical cross-system journeys that need deployed wiring; keep the set focused because setup and diagnosis are costly.
- Regression tests: Reproduce an observed defect before or alongside the fix and fail for the correct reason on the faulty behavior.
- Parameterized tests: Cover meaningful input classes compactly; keep case names and expected outcomes understandable.
- Edge and exception tests: Exercise limits, empty or malformed input, overflow, partial state, error mapping, cleanup, and recovery according to risk.
- Concurrency tests: Check atomicity, ordering, cancellation, races, deadlocks, and shared-state invariants with appropriate tooling and repeatable coordination rather than timing luck.
- Asynchronous tests: Await observable completion, control schedulers or clocks when practical, bound eventual assertions, and propagate task failures.
- Characterization tests: Capture important current legacy behavior before risky change while avoiding accidental internals that need not become permanent contracts.
Quality safeguards
- Assert behavior precisely enough that an incorrect implementation fails. Avoid trivial existence checks and tests that only verify mocks were called without a relevant outcome.
- Keep tests deterministic, isolated at the appropriate boundary, reproducible, legible, and resistant to legitimate internal refactoring.
- Prefer controlled signals, fake clocks, latches, events, or bounded polling over real-time dependence and indiscriminate sleeps.
- Make fixtures local or safely scoped, use realistic minimal data, and clean up resources even when the test fails.
- Do not depend on execution order, live mutable services, undeclared machine state, or network availability unless the test is explicitly an integration check with managed prerequisites.
- Do not weaken assertions, delete tests, ignore failures, or modify production code solely to make a misleading test pass.
- Treat line or branch coverage as navigation evidence, not a standalone quality score. Examine which behaviors and risks remain untested.
Failure handling and limits
- Reproduce a failing test before classifying it. If it exposes a production defect, preserve the evidence and report the defect rather than rewriting the expectation to match faulty behavior.
- For a flaky test, identify the uncontrolled input or race and verify the stabilization through repeated or targeted execution; do not hide it with retries or longer sleeps by default.
- If required services, data, permissions, tooling, or environments are unavailable, report the blocked checks and use the closest valid lower-level evidence without claiming equivalence.
- When legacy behavior is unknown, add narrow characterization coverage or inspect further before asserting the intended result.
- Report exact commands, pass/fail/skip counts, relevant failure context, and checks not run. Never claim tests passed without execution evidence.
- Do not commit or push automatically.
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.

