riekelt avatar

Testing Changes Skill

Installs
29.1k
Repo stars
6
Security scans passed
3/3
Repo updated
Sep 11, 2026

TL;DR

testing-changes is a skill that decides which tests a feature, bug fix or refactor owes and reviews whether a diff's tests would catch a regression.

Install if

Developers who want an agent to add the right tests with each behavior change, or to review a diff whose test changes look thin or empty.

Skip if

Anyone who needs help writing unit test code or taming flaky tests; the doc points to the writing-unit-tests skill for test craft.

npx skills add https://github.com/riekelt/principal-engineer --skill testing-changes
On this page
  1. What testing-changes covers
  2. testing-changes by the numbers
  3. What does the Testing Changes skill produce?
  4. What files ship with testing-changes?
  5. Which skills are related to testing-changes?
  6. Testing Changes skill FAQ
  7. More in this repo

What testing-changes covers

  • Treats an empty test diff on a behavior change as a review finding
  • Requires a bug fix to ship a regression test shown red then green
  • Checks that assertions fail when the code is broken
  • Gives a change a targeted verify command that runs alone
  • Forbids silencing a red test in a gate you own

testing-changes by the numbers

All-time installs29,104 (29.1k)skills.sh registry
Repo stars★ 6GitHub
Security audit3 / 3 scanners passedskills.sh audit
Repo last updatedSeptember 11, 2026GitHub
Repositoryriekelt/principal-engineer ↗

Data as of Nov 29, 2026 (Skillselion catalog sync)

What can the testing-changes skill do in Claude Code?

Capabilities
test planning · regression tests · assertion review
Use cases
testing · code review · debugging
From the docs

What testing-changes says it does

A test is the executable form of a claim about behavior.
SKILL.md
A bug fix ships its regression test.
SKILL.md
Break the code once, confirm the test goes red, then restore it.
SKILL.md
A regression test that never went red proves only that it compiles.
SKILL.md

What does the Testing Changes skill produce?

Each change lists the tests it owes, bug fixes carry red-then-green regression tests and assertions are shown to discriminate.

  • A list of tests the change owes
  • A targeted verify command for the change

What files ship with testing-changes?

SKILL.mdMarkdownGitHub ↗

Testing changes

REQUIRED BACKGROUND: the principal-engineering skill. Test craft lives in writing-unit-tests; this skill governs which tests a change owes.

Overview

A test is the executable form of a claim about behavior. A change that alters behavior without touching tests is a claim nobody wrote down. Two failure modes follow: the green suite over code that could not work, and the test or gate that never ran.

Tests a change owes

  1. Tests change with behavior, in the same change. An empty test diff on a behavior change is a review finding, not a style preference. A pure refactor owes the opposite proof: the existing tests still pass unmodified, which is what makes it a refactor.
  2. A bug fix ships its regression test. Named after the failure mode, not the ticket. The author shows both halves: red against the unfixed code, green against the fix. A regression test that never went red proves only that it compiles.
  3. Scenarios are concrete and include the surfaced edges. The edge cases that grounding and review turned up go into tests by name; the happy path alone tests the demo, not the change. When the change's risk is in the failure path, the failure path gets the tests (see handling-failures: it requires a logged, typed failure, and that surfacing is behavior a test owes).
  4. Every task carries its targeted verify command. The task names the verify command that proves this change, runnable alone and stated where the reviewer can run it. "The suite passed" vouches for nothing the suite never covered.
  5. Assertions must discriminate. A test that passes regardless of the change proves nothing. Break the code once, confirm the test goes red, then restore it. Non-discriminating assertions are how suites stay green over broken behavior.
  6. Aggregates that must reconcile get invariant tests. Anything on the project's declared critical paths (see the risk tiers in principal-engineering) that sums, derives, or mirrors other data gets more than point examples: the test asserts the reconciliation itself (the conservation pattern), the aggregate equals what the raw records imply.

The red-test rule

A red test in a gate you own gets fixed, never silenced: weakening the assertion, deleting the test, or marking it skipped to ship is converting a detected defect into an undetected one. Changing the test is legitimate exactly when the test asserted the old, wrong behavior, and the change says so explicitly. Attribute the origin first, then fix the test regardless of whose it is; "pre-existing" is a footnote, never an excuse (see verifying-before-done).

Tests a change does not owe

  • Tests for unreachable edges (see scoping-changes: fencing what cannot happen is dead code with good intentions).
  • Tests of framework internals or generated code. Test your use of them at the boundary you own.
  • A test-first process: whether tests come first is workflow (a test-first workflow skill, where the project installs one, governs that); this skill governs what must exist when the change ships, whichever order produced it.

Common mistakes

  • "Too small to test." A one-line change reaches behavior no test covers, and the regression stays silent until someone audits it.
  • Testing the fix without reproducing the bug. Red-before-green is the half that proves the test sees the defect.
  • Counting coverage by feel. Count the changed behaviors against the tests naming them (the same counting rule as the documentation-coverage count under "Keeping documents true" in the technical-writer plugin's technical-writing/references/truth.md).
  • Adding the test that discriminates against nothing, ever: an assertion no plausible defect could fail. Distinct from the legitimate pinning test that deliberately passes against both old and new code to guard unchanged adjacent behavior from overcorrection; a pinning test says that is what it is for.

Which skills are related to testing-changes?

Testing Changes skill FAQ

Who is the Testing Changes skill for?

Developers who want an agent to add the right tests with each behavior change, or to review a diff whose test changes look thin or empty. Skip if: Anyone who needs help writing unit test code or taming flaky tests; the doc points to the writing-unit-tests skill for test craft.

When should I use testing-changes?

Deciding what tests a feature, bug fix, refactor or behavior change needs, or reviewing a diff's tests, especially when behavior changes and the test diff is empty.

What tests does a bug fix owe?

A regression test named after the failure mode, shown red against the unfixed code and green against the fix. A test that never went red proves only that it compiles.

Does it dictate test-first workflow?

No. It governs what must exist when the change ships, whichever order produced it; a test-first workflow skill covers the order.

What is the red-test rule?

A red test in a gate you own gets fixed. Weakening the assertion, deleting the test or marking it skipped to ship is not allowed, unless the test asserted the old, wrong behavior.

Is Testing Changes safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Add a testing-changes badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Get the embed code

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.