testing-principles SKILL.md skillA

testing-principles from shinpr/claude-code-workflows is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add shinpr/claude-code-workflows/testing-principles@git:20261019.4d66b0c

Pins git:20261019.4d66b0c in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
shinpr/claude-code-workflows
Path
dev-workflows-frontend/skills/testing-principles/SKILL.md
Versions recorded
7
Latest version
git:20261019.4d66b0c, committed Oct 19, 2026
First version recorded
Jul 27, 2026
Size
5,827 bytes
Repository stars
707
License
MIT

Language-agnostic testing principles for choosing which tests a change needs, test quality, and proof ownership, with frontend and browser E2E implementation references. Use when writing tests, deciding test scope, or reviewing test quality.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Language-Agnostic Testing Principles

Tests here guarantee accepted behavior, and the next agent reads every existing test as a requirement to preserve. A brittle, duplicated, or implementation-shaped test therefore becomes a false requirement: it gets worked around, and the workaround leaves debt in the implementation. Keep the set of tests whose proof is worth its maintenance.

## Test Selection

- Prove accepted behavior by default through integration and E2E tests at the boundary users and callers observe. Add a unit test for logic whose cases one representative boundary test cannot prove, such as calculations, parsing, or branching rules.
- Each behavioral claim is owned by one test: such logic by its unit test, other behavior by the test at the narrowest integration or E2E boundary where it is observable. A test at a wider boundary or in a variant (viewport, device, role) proves what that boundary or variant adds, such as wiring, mapping, persistence, rendering, or navigation, and keeps at most one representative case of a rule owned elsewhere.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add shinpr/claude-code-workflows/testing-principles@sha256:6edf8ef18f2eb12e

The line at the top of this page pins the label git:20261019.4d66b0c, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_3a2l7zjticv6htfb.svg)](https://markdownregistry.com/a/art_3a2l7zjticv6htfb)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 7 versions of this file, between Jul 27, 2026 and Oct 19, 2026, about one every 14 days.

versioncommittedcommitsizeaudit
git:20261019.4d66b0c latest2026-10-19 4d66b0c 5,827 BA view · diff
git:20261013.54820412026-10-13 5482041 5,146 BA view · diff
git:20260809.61302722026-08-09 6130272 4,554 BA view · diff
git:20260806.d8a29d42026-08-06 d8a29d4 4,608 BA view · diff
git:20260728.e9e235b2026-07-28 e9e235b 4,529 BA view · diff
git:20260728.aeb22be2026-07-28 aeb22be 13,310 BA view · diff
git:20260727.b2c46ee2026-07-27 b2c46ee 13,422 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (5827 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

GitHub

shinpr/claude-code-workflows · 707 stars · license MIT · pushed 2026-10-29 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_3a2l7zjticv6htfb
GET https://markdownregistry.com/api/v1/resolve?ref=shinpr/claude-code-workflows/testing-principles
GET https://markdownregistry.com/api/v1/blob/6edf8ef18f2eb12eba1dd300bc201d8b83d7871fddeeb89fb350bff039b608ff

Your AI assistant 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.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from shinpr/claude-code-workflows

ai-development-guide SKILL.md skill
shinpr/claude-code-workflows · dev-skills/skills/ai-development-guide/SKILL.md · Applies language-agnostic and backend technical decision criteria, anti-pattern detection, debugging, and quality…
git:20261019.e544b5c · audit A · 707 stars
coding-principles SKILL.md skill
shinpr/claude-code-workflows · dev-skills/skills/coding-principles/SKILL.md · Language-agnostic coding principles for maintainability, readability, and quality. Use when implementing features…
git:20261019.e544b5c · audit A · 707 stars
documentation-criteria SKILL.md skill
shinpr/claude-code-workflows · dev-skills/skills/documentation-criteria/SKILL.md · Determines which of PRD, ADR, UI Spec, Design Doc, and Work Plan a change requires, and where each is stored. Use when…
git:20261029.3d4a3cd · audit A · 707 stars
external-resource-context SKILL.md skill
shinpr/claude-code-workflows · dev-skills/skills/external-resource-context/SKILL.md · Records where resources outside the repository live (design source, design system, API schema, IaC source, secret…
git:20261019.e544b5c · audit A · 707 stars
frontend-ai-guide SKILL.md skill
shinpr/claude-code-workflows · dev-skills/skills/frontend-ai-guide/SKILL.md · Applies React/TypeScript-specific technical decision criteria, anti-pattern detection, debugging, and frontend quality…
git:20261013.5482041 · audit A · 707 stars
implementation-approach SKILL.md skill
shinpr/claude-code-workflows · dev-skills/skills/implementation-approach/SKILL.md · Implementation strategy selection framework. Use when planning implementation strategy, selecting development approach…
git:20261013.5482041 · audit A · 707 stars
integration-e2e-testing SKILL.md skill
shinpr/claude-code-workflows · dev-skills/skills/integration-e2e-testing/SKILL.md · Defines integration/E2E skeleton annotations, lane and file contracts, and route-parity review criteria. Use when…
git:20261019.4d66b0c · audit A · 707 stars
llm-friendly-context SKILL.md skill
shinpr/claude-code-workflows · dev-skills/skills/llm-friendly-context/SKILL.md · Clarifies inputs, outputs, success criteria, decisions, and unresolved conditions so downstream consumers can execute…
git:20261019.de01f9e · audit A · 707 stars
requirement-convergence SKILL.md skill
shinpr/claude-code-workflows · dev-skills/skills/requirement-convergence/SKILL.md · Separates the outcome a change must produce from the requirements proposed to reach it, records what the user excluded…
git:20261029.29a1f7c · audit A · 707 stars
testing-principles SKILL.md skill
shinpr/claude-code-workflows · dev-skills/skills/testing-principles/SKILL.md · Language-agnostic testing principles for choosing which tests a change needs, test quality, and proof ownership, with…
git:20261019.4d66b0c · audit A · 707 stars
typescript-rules SKILL.md skill
shinpr/claude-code-workflows · dev-skills/skills/typescript-rules/SKILL.md · React/TypeScript frontend development rules including type safety, component design, state management, and error…
git:20260728.e9e235b · audit A · 707 stars
ai-development-guide SKILL.md skill
shinpr/claude-code-workflows · dev-workflows-frontend/skills/ai-development-guide/SKILL.md · Applies language-agnostic and backend technical decision criteria, anti-pattern detection, debugging, and quality…
git:20261019.e544b5c · audit A · 707 stars

Every file in shinpr/claude-code-workflows

Other files named testing-principles

testing-principles SKILL.md skill
shinpr/claude-code-workflows · dev-workflows/skills/testing-principles/SKILL.md · Language-agnostic testing principles for choosing which tests a change needs, test quality, and proof ownership, with…
git:20261019.4d66b0c · audit A · 707 stars
testing-principles SKILL.md skill
shinpr/claude-code-workflows · dev-workflows-fullstack/skills/testing-principles/SKILL.md · Language-agnostic testing principles for choosing which tests a change needs, test quality, and proof ownership, with…
git:20261019.4d66b0c · audit A · 707 stars
testing-principles SKILL.md skill
shinpr/claude-code-workflows · dev-skills/skills/testing-principles/SKILL.md · Language-agnostic testing principles for choosing which tests a change needs, test quality, and proof ownership, with…
git:20261019.4d66b0c · audit A · 707 stars
testing-principles SKILL.md skill
shinpr/claude-code-workflows · skills/testing-principles/SKILL.md · Language-agnostic testing principles for choosing which tests a change needs, test quality, and proof ownership, with…
git:20261019.4d66b0c · audit A · 707 stars

Browse by kind, by grade A, or by owner.