SkillAgentSearch skills...

testing-principles

Language-agnostic testing principles for choosing which tests a change needs, test quality, and proof ownership, including frontend and browser E2E tests

Install / Use

npx skills add shinpr/claude-code-workflows --skill testing-principles

Installs into whichever agent you are using.

About this skill
📄

SKILL.md

Installable skill definition

Quality Score

81/100

Supported Platforms

Universal

Our assessment of testing-principles

testing-principles scores 81/100 on our quality scale, 979th of 1,143 Content & Media skills we index.

Its SKILL.md is 4.4 KB long, well organised into 10 sections and no code examples: a solid amount of guidance for an agent.

It has 714 GitHub stars, a meaningful sign that others use it.

Substance
26/30
Structure
13/20
Description
15/15
Adoption
12/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated 14 days ago, so testing-principles is actively maintained.
  • Our last check on 2026-11-08 found the source still online.
  • It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

Safety scan

No issues found

Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.

AI review by kimi-k2.7-code on 2026-10-15. Automated pattern scan on 2026-10-15. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.

testing-principles compared with similar skills

All 4 of these similar skills score higher than testing-principles; compare them before choosing.

SkillScoreStarsUpdatedFormat
testing-principles (this skill)by shinpr8171414d agoSKILL.md
siyuanby siyuan-note10047.3ktodayMCP Server
algorithmic-artby anthropics100177.9k58d agoSKILL.md
pptxby anthropics100177.9k58d agoSKILL.md
prospectingby coreyhaines3110060.1k8d agoSKILL.md

Frequently asked questions

How do I install testing-principles?
Run npx skills add shinpr/claude-code-workflows --skill testing-principles. The install tabs above show the steps for each supported agent.
Which AI agents does testing-principles work with?
It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
Is testing-principles safe to use?
Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is testing-principles still maintained?
The repository was last updated 14 days ago, so testing-principles is actively maintained.

name: testing-principles description: 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.

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

  • Structure each test as Arrange, one Act, and Assert; multiple assertions may prove one behavior.
  • Follow the repository's test naming convention and name the condition and observable outcome.
  • Exercise behavior through a public or integration boundary. Assertions verify return values, outputs, errors, or state changes rather than private implementation.
  • Use independently derived literal, property, approved snapshot, or fixture expectations. An implementation-derived oracle cannot detect the same implementation defect.
  • Keep each test's expected outcome unconditional. Table-driven or property-based cases are acceptable when each case is reported distinctly and uses an independent oracle.
  • Cover accepted boundary and error behavior; derive cases from the contract instead of adding generic edge-case permutations.
  • Each test creates and cleans up its own state, passes in isolation and any order, and controls time or randomness that affects its result.
  • Keep tests executable. Fix or remove tests that no longer describe accepted behavior; restore tests disabled only to bypass a failure.

Mock and Boundary Rules

  • Mock direct external I/O boundaries; keep internal business logic and the boundary under test real.
  • Use the existing application-owned adapter as the mock boundary. Introduce an adapter only when external I/O, an unstable contract, or required substitution cannot be controlled through the current design.
  • Keep mock behavior limited to the contract needed by the test.

Data Layer Testing

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.

Verification Requirements

Capability Probe Postconditions

A capability probe passes when it uses the consumer's boundary and asserts the exact property that consumer needs. Command success, import success, or object existence is setup evidence.

Test Organization

Follow the repository's established test paths, runner routing, and naming. When establishing an approved new convention, separate test types only when their setup, runner, or environment differs.

Regression Testing

  • Add a regression test for every reproducible behavior bug fix. When executable reproduction is impossible, record the reason and the alternative static, contract, or environment evidence that prevents recurrence.
  • Before behavior-preserving changes to uncharacterized legacy code, establish passing characterization evidence and rerun it after the change.

Related Skills

View on GitHub
GitHub Stars714
CategoryContent
Updated14d ago
Forks106

Languages

JavaScript

Trust signals

100/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

No cautions