Skip to content
Back to skills

When Tests Are Owed

ASecurity

Use when deciding whether a change needs tests. Behaviour changes and bug fixes need them; pure docs, comments, styling and branch-free config do not. Never sham tests.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 11, 2026
ai-agentsapi

Works with

  • api

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add mvbsoft/keel --skill when-tests-are-owed --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of When Tests Are Owed?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for When Tests Are Owed
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mvbsoft-when-tests-are-owed/badge)](https://www.skillsdirectory.com/skills/mvbsoft-when-tests-are-owed)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: when-tests-are-owed
description: Use when deciding whether a change needs tests. Behaviour changes and bug fixes need them; pure docs, comments, styling and branch-free config do not. Never sham tests.
---

# When tests are owed

## Easy to miss
- A new validation rule can break existing tests, fixtures and seed data: search them for values the
  rule now rejects. Fixed dates are the usual trap: a test that creates something due on a fixed date
  against the real clock starts failing once that day passes.
- Test both sides of every boundary (yesterday, today, tomorrow; limit and limit + 1), and pin that the
  paths the change left alone still behave as before.

## Owed
Any change with behaviour a test can assert: a new or changed endpoint, business rule, validation,
permission check, data transformation, or a bug fix.
- Cover the happy path, the failure paths and the boundaries; for an API typically
  unauthenticated, forbidden, invalid input, not found and business-rule violations.
- A bug fix gets a regression test that fails without the fix.
- Follow the project's test conventions and run its test command until green.

## May skip
Pure docs, comments, styling, renames with no behaviour change, configuration or wiring without
branching logic: nothing a test could assert.

## Never
- Skip tests on real behaviour to save effort.
- Write sham tests: no assertions, always green, or assertions that only mirror the implementation.
- Treat a red test as noise. A failing test means a real problem until proven otherwise; look at the
  code first.
- Edit an existing test to make it pass without a stated reason: a weaker assertion, a removed case or
  a new expected value can hide the bug. When behaviour changed on purpose, name each changed test and
  why in the report.

Each test should name the break it catches.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.