Install any skill in seconds. Free to start, no credit card required.
Get Started Free →shinpr/testing-principles
Language-agnostic testing principles including TDD, test quality, coverage standards, and test design patterns.
Passed 20 of 23 test cases with the skill, and 16 of 23 without it.
and 6 more in the full report
5 fixed15 passed either way2 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 5 test cases the skill fixed. Same model, same prompt, with and without the skill.
I just wrote a minimal passing implementation for a new discount calculator in C# during the TDD green phase. Before writing the next test, I want to clean up duplicated variables and rename methods in the code. What rule applies during refactoring?
| Checked | Without skill | With skill |
|---|---|---|
| Require keeping the test suite green while improving code structure. | Passed | Passed |
| Instruct running repository regression checks to verify refactored code. | Missed | Passed |
The instructions your model reads when the skill loads.
Use this cycle for new or changed executable behavior and reproducible bug fixes. For a behavior-preserving refactor, first confirm existing tests pass or add passing characterization tests, then refactor and rerun the same regression evidence.
RED: confirm the new test fails for the intended reason. GREEN: implement the smallest passing change. REFACTOR: improve structure while the test remains green. VERIFY: run the repository's applicable regression checks.
Mock-based tests are sufficient when data access is only a dependency of the behavior under test. Verify against the project's real database engine or its accepted equivalent when the subject is a query, repository implementation, schema constraint, or migration compatibility. Resolve the test environment from repository configuration; when no representative environment exists and adding one is outside the approved work, report the missing verification decision.
Cross-check data-access code against the schema source named in the Design Doc or repository configuration. Schema-source verification is required to prove table, column, type, constraint, or dialect compatibility; successful mocks prove behavior only at the mocked boundary.
test cases passed, vs 16 / 23 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.