testing
Skill0 starsChanged 55 days agoMITView on GitHub
Test scenarios, coverage analysis, test quality standards, and the mandatory test failure stop protocol. Load this skill for any task requiring test coverage.
We split this skill into the rules it gives an agent
17 rules. 0 are common, 14 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 172 edited versions we read keep these.
14
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 13
IF output contains ANY failure indicators: IMMEDIATELY output "STOP: Test failures detected"
- Distinctive: line 14
DO NOT analyze, explain, or categorize failures
- Distinctive: line 15
DO NOT dismiss as "pre-existing" or "unrelated"
- Distinctive: line 18
ONLY if ZERO failures: Proceed to next step
- Very specific: line 26
Use describe and context blocks to organize within the file
- Distinctive: line 30
No execution order dependencies (tests pass in random order)
- Distinctive: line 32
All tests pass consistently (run 3x to verify if flaky suspected)
- Distinctive: line 33
No test pollution (tests pass in isolation and in suite)
- Distinctive: line 38
No over-mocking (test real behavior when possible)
- Distinctive: line 46
When planning test coverage, identify:
- Distinctive: line 58
Create multiple spec files for individual methods (ONE per class)
- Very specific: line 59
Add boilerplate comments (# Arrange, # Act, # Assert, # Setup, # Given/When/Then)
- Very specific: line 61
Use sleep to fix timing issues (find root cause)
- Distinctive: line 63
Test private methods directly (test through public interface)
- Distinctive: line 64
Leave failing tests commented out
- Distinctive: line 65
Write one spec per response attribute (use comprehensive specs)
- Distinctive: line 68
Test behavior, not implementation
“Common” is measured: kept by at least 6 in 10 of the 172 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 Practice
MANDATORY: Test Failure Stop Protocol
This is an ABSOLUTE constraint with NO exceptions:
When running tests:
- IF output contains ANY failure indicators: IMMEDIATELY output "STOP: Test failures detected"
- DO NOT analyze, explain, or categorize failures
- DO NOT dismiss as "pre-existing" or "unrelated"
- EXECUTE: STOP and Ask protocol
- AWAIT: User decision
- ONLY if ZERO failures: Proceed to next step
Test Quality Standards
Organization
- ONE spec file per class (no method-specific spec files)
- Use
describeandcontextblocks to organize within the file - Tests written BEFORE implementation (TDD red-green-refactor)
Reliability
- No execution order dependencies (tests pass in random order)
- No
.onlyor.skipin committed code - All tests pass consistently (run 3x to verify if flaky suspected)
- No test pollution (tests pass in isolation and in suite)
- No flaky tests
Quality
- Clear test descriptions (readable as documentation)
- No over-mocking (test real behavior when possible)
- Fast tests (< 30 seconds for full suite if possible)
- Tests verify behavior, not implementation details
Test Scenario Planning
When planning test coverage, identify:
- Happy path: Primary success scenario
- Edge cases: Boundary conditions, empty inputs, large inputs
- Error handling: Invalid input, missing data, service failures
Reference existing test patterns in the codebase for structure.
Anti-patterns
You MUST NEVER:
- Create multiple spec files for individual methods (ONE per class)
- Add boilerplate comments (
# Arrange,# Act,# Assert,# Setup,# Given/When/Then) - Skip tests to "make it work first"
- Use
sleepto fix timing issues (find root cause) - Stub methods on the object under test
- Test private methods directly (test through public interface)
- Leave failing tests commented out
- Write one spec per response attribute (use comprehensive specs)
Prefer:
- Test behavior, not implementation
- Comprehensive response specs (one spec per scenario, checking all attributes)
- Descriptive test names that explain "why" not "what"
- Test-first development (red-green-refactor)
- Integration tests for critical user flows
- Fast, focused unit tests for edge cases
- Comments ONLY for non-obvious business logic (rare)
Other versions192 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 192
- modelcontextprotocol/servers★ 92ksame name
- lobehub/lobe-chat★ 84ksame name
- lobehub/lobehub★ 84ksame name
- penpot/penpot★ 62ksame name
- meteor/meteor★ 45ksame name
- iOfficeAI/AionUi★ 34ksame name
- garrytan/gbrain★ 31ksame name
- OpenZeppelin/openzeppelin-contracts★ 27ksame name
- tursodatabase/turso★ 25ksame name
- redis/go-redis★ 22ksame name
182 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.
Used alongsideProjects with it also use bundle-dependency-prs, update-library-template and 8 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 6 projects that use this
MicrosoftSkillupdate-library-template
Merges the latest Library.Template into this repo (at position of HEAD) and resolves conflicts.
Also in 6 projects that use this
zetaloopSkillassign-copilot
Assigns a GitHub issue to the Copilot coding agent, optionally specifying a custom agent. Use this when asked to assign an issue to Copilot or delegate an issue to CCA.
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
In this repository43 other files it gives its agents.
- skills/technical/supabase-postgres-best-practices/AGENTS.mdAGENTS.md
- skills/technical/supabase-postgres-best-practices/CLAUDE.mdCLAUDE.md
- direct-handoffSkill
- handoffSkill
- nt-commsSkill
- threadsSkill
- meal-planningSkill
- resume-workflowSkill
- bash-scriptsSkill
- code-reviewSkill
- davinci-resolveSkill
- disk-cleanupSkill
- fastmcp-pythonSkill
- go-cliSkill
- markdown-to-pdfSkill
- pr-createSkill
- qa-planSkill
- rcaSkill
- react-native-best-practicesSkill
- ruby-railsSkill
- skill-creatorSkill
- spec-checkSkill
- supabase-migrationsSkill
- supabase-postgres-best-practicesSkill
- supabase-sqlSkill
- ui-state-managementSkill
- waydroid-adbSkill
- calcinatioSkill
- citationsSkill
- exploreSkill
- manual-qaSkill
- nvim-copilotSkill
- orchestrateSkill
- orthogonal-emanationSkill
- product-intent-signal-extractionSkill
- project-management-signal-extractionSkill
- request-researchSkill
- researchSkill
- skill-discoverySkill
- slack-thread-triageSkill
- specSkill
- tmux-sidecarSkill
- youtube-transcribeSkill
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.

