unit-testing
Skill0 starsChanged 4 months agoMITView on GitHub
Use when creating or running focused automated tests for isolated logic and edge cases.
20 other projects use a version of this.
Adopted by
Most recently taken up by
- reddygopalkrishna/developer-agent-skillstheir own version, first seen Nov 8, 2026
- petrkindlmann/qa-skillstheir own version, first seen Oct 25, 2026
- lggarrison/agent-skillstheir own version, first seen Oct 25, 2026
- r-portas/skillstheir own version, first seen Oct 20, 2026
- sb-dev/narrative-production-skillstheir own version, first seen Oct 20, 2026
- pulsejet/memoriestheir own version, first seen Oct 17, 2026
Used with
Projects with it also use database-testing, contract-testing and 3 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.
petrkindlmannSkilldatabase-testing
Validate database integrity, test migrations forward and backward, verify schema constraints, manage seed data, detect migration drift, and identify query performance issues. Covers PostgreSQL, MySQL, MongoDB with Prisma, TypeORM, Drizzle, and SQLAlchemy, plus Testcontainers test databases. Use when: "database test," "migration test," "migration rollback," "rollback test," "data integrity," "SQL test," "schema validation," "seed data," "query performance," "Testcontainers." Not for: synthetic data generation/masking at scale — use test-data-management; Docker/IaC test-environment provisioning — use test-environments; SQL injection — use security-testing. Related: test-data-management, test-environments, security-testing, ci-cd-integration.
Also in 3 projects that use this
petrkindlmannSkillcontract-testing
Implement consumer-driven contract testing with Pact-JS (v16). Covers consumer test writing, broker-driven provider verification, Pact Broker setup, can-i-deploy as a deployment gate, webhook-triggered verification, pending pacts, and schema-first vs consumer-first approaches (OpenAPI/Ajv, Schemathesis). Use when: "contract test," "Pact," "consumer-driven," "API contract," "provider verification," "can-i-deploy." Not for: stubbing or mocking a dependency to isolate a test — use service-virtualization; general REST/GraphQL endpoint assertions against your own API — use api-testing. Related: api-testing, service-virtualization, ci-cd-integration, test-environments.
Also in 3 projects that use this
jarosser06Skilltest-strategy
Plans pytest test strategies for Drift's 90%+ coverage requirement using coverage analysis, edge case identification, and test suite design. Use when determining what tests to write, analyzing coverage gaps, or planning test strategies.
Also in 4 projects that use this
Microsoft AzureSkillrelease-readiness
Complete ODIN release documentation and validation checks before declaring user-visible work complete, preparing a release, or opening the Release-to-main pull request.
Also in 3 projects that use this
Microsoft AzureSkillgit-workflow
Squad branching model: dev-first workflow with insiders preview channel
Also in 4 projects that use this
Other versions20 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 20
- pulsejet/memories★ 3.9ksame name
- lichtblick-suite/lichtblick★ 1.2ksame name
- javierbrea/eslint-plugin-boundaries★ 1ksame name
- petrkindlmann/qa-skills★ 209same name
- kid-sid/claude-spellbook★ 190same name
- reddygopalkrishna/developer-agent-skills★ 8same name
- dprakash2101/dotnet-production-agent-skills★ 4same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- sb-dev/narrative-production-skills★ 2same name
- axross/skills★ 1same name
10 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 repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- templates/AGENTS.mdAGENTS.md
- branch-safelySkill
- deployment-decisionsSkill
- deploySkill
- deploy-vercelSkill
- deploy-vpsSkill
- documentationSkill
- e2e-testingSkill
- feature-testingSkill
- monitoringSkill
- orchestrateSkill
- quality-reviewSkill
- requirements-gatheringSkill
- solution-designSkill
- task-breakdownSkill
- ui-uxSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 9 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 17 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Write and run fast, isolated tests for individual functions, methods, classes, or modules.
- Distinctive: line 12
New code: write a failing unit test before implementation (test-first), then implement the smallest change to make it pass.
- Distinctive: line 13
Bug fix: write a focused regression unit test that reproduces the bug, confirm it fails, apply the fix, confirm it passes.
- Distinctive: line 14
Changed logic: update or add unit tests when existing behavior changes.
- Distinctive: line 32
Follow the project's existing test framework, file naming, and directory conventions.
- Distinctive: line 34
Use descriptive test names that state the scenario and expected outcome.
- Distinctive: line 35
Prefer Arrange-Act-Assert or Given-When-Then structure.
- Distinctive: line 37
Keep tests fast: if a test needs more than a few seconds, it is likely not a unit test.
- Very specific: line 41
Use the project's test command (for example npm test, pytest, go test, cargo test).
- Distinctive: line 42
Run the specific test file or test name when possible for fast feedback.
“Common” is measured: kept by at least 6 in 10 of the 17 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
Unit Testing
Write and run fast, isolated tests for individual functions, methods, classes, or modules. Unit tests verify correctness at the smallest useful boundary without external services, networks, or UI.
When to write
- New code: write a failing unit test before implementation (test-first), then implement the smallest change to make it pass.
- Bug fix: write a focused regression unit test that reproduces the bug, confirm it fails, apply the fix, confirm it passes.
- Changed logic: update or add unit tests when existing behavior changes.
What to test
- Core logic: calculations, transformations, validations, state transitions.
- Edge cases: empty input, null/undefined, boundary values, maximum/minimum, off-by-one.
- Error handling: invalid input, missing fields, permission denial, timeout simulation.
- Branch coverage: every meaningful if/else, switch case, try/catch path.
- Pure functions first: they are the easiest to unit test and give the highest confidence per effort.
What not to test
- Framework boilerplate or trivial getters/setters.
- Third-party library internals (test your integration with them, not their implementation).
- Implementation details that do not affect observable behavior.
How to write
- Follow the project's existing test framework, file naming, and directory conventions.
- Each test should be independent and runnable in isolation.
- Use descriptive test names that state the scenario and expected outcome.
- Prefer Arrange-Act-Assert or Given-When-Then structure.
- Mock or stub only external boundaries (network, filesystem, database, time); do not mock the unit under test.
- Keep tests fast: if a test needs more than a few seconds, it is likely not a unit test.
Running
- Use the project's test command (for example
npm test,pytest,go test,cargo test). - Run the specific test file or test name when possible for fast feedback.
- Record the exact command run and its output: tests passed, tests failed, any skip or warning counts.
Evidence for quality
Give quality the actual test command, result summary, and any test files created or modified. Do not claim tests were run if they were not. Keep the evidence concise and factual.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

