test
Skill47 starsChanged 2 months agoMITView on GitHub
Write or run tests, check coverage, or drive TDD. Triggers "write tests", "run tests", "coverage", "TDD", "red-green-refactor", or a pre-merge test pass.
98 other projects use a version of this.
Adopted by
Most recently taken up by
- Kangentic/kangentictheir own version, first seen Oct 5, 2026
- crbnos/carbontheir own version, first seen Oct 4, 2026
- vericontext/vibeframetheir own version, first seen Oct 4, 2026
- thekinv21/NotificationServicetheir own version, first seen Oct 3, 2026
- domengabrovsek/agent-configtheir own version, first seen Oct 2, 2026
- kapadias/nonnatheir own version, first seen Oct 1, 2026
Used with
Projects with it also use develop, perf 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.
bamechoSkilldevelop
开发实施阶段详细规则;进入开发实施时读取;包含执行流程、代码规范、一致性审计、方案包迁移
Also in 6 projects that use this
MicrosoftSkillperf
Speed and memory performance rules for Rust crates, the Node addon, webui-framework, and webui-router.
Also in 6 projects that use this
nicolasestremSkilldocument
Create focused documentation for specific components or features
Also in 8 projects that use this
vltingSkillscope
Interactive planning + orchestration. Approval-gated workflow covering saga→epic→task hierarchy via progressive scoping.
Also in 5 projects that use this
bitwize-music-studioSkilltutorial
Provides interactive guided album creation for new users. Use when the user is new to the plugin or asks for a walkthrough of the album creation process.
Also in 3 projects that use this
kt057Skillcheck
lint, typecheck, test を一括実行して結果をサマリーする
Also in 8 projects that use this
Other versions98 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 98
- NVIDIA/TensorRT★ 13ksame name
- parcadei/Continuous-Claude-v3★ 3.9ksame name
- crbnos/carbon★ 2.7ksame name
- jsmastery-pro/skills★ 1.4ksame name
- getsentry/sentry-java★ 1.4ksame name
- bitwize-music-studio/claude-ai-music-skills★ 531same name
- boshu2/agentops★ 447same name
- platformplatform/PlatformPlatform★ 440same name
- owainlewis/blueprint★ 410same name
- OyadotAI/oya-browser★ 350same name
88 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 repository39 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/AGENTS.mdAGENTS.md
- adhdSkill
- auditSkill
- autoresearchSkill
- buildSkill
- ccSkill
- checkpointSkill
- codexSkill
- componentSkill
- consolidateSkill
- context-docSkill
- design-tokensSkill
- dr-initSkill
- exploreSkill
- fixSkill
- freezeSkill
- handoffSkill
- harvestSkill
- hookSkill
- lighthouseSkill
- oracleSkill
- orchestrateSkill
- plan-ceo-reviewSkill
- plan-featureSkill
- poke-holesSkill
- projectSkill
- proof-of-workSkill
- qaSkill
- refactorSkill
- retroSkill
- review-batchSkill
- reviewSkill
- share-learningSkill
- shipSkill
- strategistSkill
- tldrSkill
- triageSkill
- zero-tech-debtSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 10 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 80 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Write: - Create test files colocated with source (e.g., button.test.tsx)
- Distinctive: line 28
If you catch yourself thinking any of the following, STOP — you are skipping testing:
- Distinctive: line 43
Mocking everything: If you mock the thing you're testing, you're testing the mock.
- Very specific: line 61
Before exploring the codebase, follow ../context-doc/DOMAIN-AWARENESS.md.
- Distinctive: line 84
Before writing any code:
- Distinctive: line 91
Ask: *"What should the public interface look like?
- Distinctive: line 95
Write one test confirming one thing about the system:
- Distinctive: line 121
Only enough code to pass the current test
- Distinctive: line 122
Don't anticipate future tests
- Distinctive: line 123
Keep tests focused on observable behavior
- Distinctive: line 127
After all tests pass, look for cleanup:
- Distinctive: line 132
Run the full test suite after each refactor step
“Common” is measured: kept by at least 6 in 10 of the 80 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 Workflow
Delegates to the Tester agent for test coverage and verification.
Workflow
- Identify - Determine what needs testing (component, hook, utility, integration)
- Write - Create test files colocated with source (e.g.,
button.test.tsx) - Run - Execute tests and verify results
- Report - Summarize coverage and gaps
Testing Priorities
- Critical paths - Auth, payments, core features
- Edge cases - Error states, empty states, boundaries
- User interactions - Forms, buttons, navigation
- Integration points - API calls, external services
Rationalization Counters
If you catch yourself thinking any of the following, STOP — you are skipping testing:
| Rationalization | Why It's Wrong |
| "This is too simple to test" | Simple functions with edge cases are exactly what tests catch |
| "I'll add tests later" | Later never comes; untested code ships and breaks |
| "The types guarantee correctness" | Types check structure, not logic — add(a, b) returning a - b passes TypeScript |
| "It's just UI, tests don't help" | Interaction tests catch regressions that visual review misses |
| "Manual testing is enough" | Manual testing doesn't run in CI and doesn't prevent regressions |
| "Tests are passing immediately" | Tests that pass on first run without failing first may not be testing what you think — verify the test actually exercises the code path |
Red Flags
- Tests pass immediately on first write: Suspicious. Verify the test would fail if the implementation were wrong.
- No assertions: A test without assertions is not a test.
- Mocking everything: If you mock the thing you're testing, you're testing the mock.
- A batch of tests written before any has run: a batch against imagined behavior pins what you guessed — those tests fail on harmless changes and pass while the real path is broken. Write one, watch it go red, earn green, then write the next; each cycle tells you what the next test should actually assert.
- Asserting internals: assert observable behavior through the outermost practical entry point (return values, exit codes, persisted rows, rendered output) — never which internal functions ran. A public-surface test survives a rewrite of everything underneath; an internals test breaks on every refactor and pins implementation, not behavior.
Output
Return a summary:
- Tests written: New test files/cases
- Tests passing: Status
- Coverage: Key areas covered
- Gaps: What still needs testing
Variant: TDD (test-first discipline)
A test-first discipline that produces tests which describe behavior through public interfaces, not implementation. Such tests survive refactors. Tests coupled to internals do not — they break the moment you rename a function and pass when behavior actually breaks.
Before exploring the codebase, follow ../context-doc/DOMAIN-AWARENESS.md. Test names and interface vocabulary should match the project's CONTEXT.md.
Anti-pattern: horizontal slices
Do not write all tests first, then all implementation. That produces tests describing imagined behavior. They test the shape of things (data structures, function signatures) instead of user-facing capability. They go insensitive to real changes — they pass when behavior breaks and fail when behavior is fine.
WRONG (horizontal):
RED: test1, test2, test3, test4, test5
GREEN: impl1, impl2, impl3, impl4, impl5
RIGHT (vertical):
RED→GREEN: test1 → impl1
RED→GREEN: test2 → impl2
...Each cycle responds to what you learned from the previous one. You can only write the right test for behavior N after implementing behavior N−1.
Workflow
1. Plan
Before writing any code:
- Confirm with the user what interface changes are needed
- Confirm which behaviors to test (prioritize — you can't test everything)
- List the behaviors to test (not implementation steps)
- Get user approval on the plan
Ask: "What should the public interface look like? Which behaviors are most important?"
2. Tracer bullet
Write one test confirming one thing about the system:
RED: test for first behavior → fails
GREEN: minimal code to pass → passesThis proves the path works end-to-end. Don't move on until it passes.
3. Incremental loop
For each remaining behavior:
RED: next test → fails
GREEN: minimal code to pass → passesTo run the red→green cycle autonomously across turns, set
/goal every planned behavior has a passing test and the full suite exits 0.
The evaluator reads the test output from the transcript after each turn — don't
phrase the condition as something only the runtime can prove (file flags, etc.).
Rules:
- One test at a time
- Only enough code to pass the current test
- Don't anticipate future tests
- Keep tests focused on observable behavior
4. Refactor
After all tests pass, look for cleanup:
- Extract duplication
- Deepen modules — move complexity behind simple interfaces
- Apply naming from
CONTEXT.md - Run the full test suite after each refactor step
Never refactor while red. Get to green first.
Per-cycle checklist
- Test describes behavior, not implementation
- Test uses only the public interface
- Test would survive an internal refactor
- Code is minimal for this test
- No speculative features added
When TDD is the wrong tool
- One-shot scripts, prototypes, throwaway exploration
- UI work where the "behavior" is visual and a snapshot/visual test is more useful
- Code where the public interface is dictated by an external spec (just write the conformance test, then implement)
For these, use /build (scaffold-then-test) or /fix (existing-bug pipeline) instead.
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.

