testing-principles skillA
This file is byte-identical to the first copy the registry indexed, one of 5 copies on public GitHub. Same content hash, same audit grade.
testing-principles is agent-read markdown (skill) from shinpr/claude-code-workflows: Language-agnostic testing principles including TDD, test quality, coverage standards, and test design patterns. Use when writing tests, designing test strategies, or reviewing test quality..
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# Language-Agnostic Testing Principles ## Test-Driven Development (TDD) 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. ## Quality Requirements - Treat coverage as a diagnostic signal for finding untested areas, not a target — a target gets gamed into trivial tests (Goodhart's Law) - Concentrate tests on critical paths, business logic, and behavior whose regression would matter - Prioritize meaningful assertions over the coverage number; any CI threshold is the project's config, not a quality goal in itself - Use project-configured speed budgets when present. Otherwise investigate test speed only when observed feedback or CI cost is material to the current outcome; retain slower tests when their proof boundary requires it ## Test Design Rules …
Read the whole file at its exact version.
How to install
mdr add shinpr/claude-code-workflows/testing-principles@git:20260809.6130272mdr add shinpr/claude-code-workflows/testing-principles@sha256:3da24a71e449eea2Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_dnhq5yxpvlaujvcf)
1 badge views in 30 days
Versions
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260809.6130272 latest | 2026-08-09 | 6130272 | 4,554 B | A | view · diff |
| git:20260806.d8a29d4 | 2026-08-06 | d8a29d4 | 4,608 B | A | view · diff |
| git:20260728.e9e235b | 2026-07-28 | e9e235b | 4,529 B | A | view · diff |
| git:20260728.aeb22be | 2026-07-28 | aeb22be | 13,310 B | A | view · diff |
| git:20260727.b2c46ee | 2026-07-27 | b2c46ee | 13,422 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (4554 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
shinpr/claude-code-workflows · 684 stars · license MIT · pushed 2026-09-24 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_dnhq5yxpvlaujvcf GET https://markdownregistry.com/api/v1/resolve?ref=shinpr/claude-code-workflows/testing-principles GET https://markdownregistry.com/api/v1/blob/3da24a71e449eea2dca3f9881d165961356af3057491048d457dec0b6a2cf2a8
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
More from shinpr/claude-code-workflows
Every file in shinpr/claude-code-workflows