tests-that-catch-bugs SKILL.md skillA

This file is byte-identical to the first copy the registry indexed, one of 3 indexed copies. Same content hash, so the same checks give both the same grade.

tests-that-catch-bugs from theonly1me/shadowclone is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add theonly1me/shadowclone/tests-that-catch-bugs@git:20261009.95ca1ef

Pins git:20261009.95ca1ef in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
theonly1me/shadowclone
Path
.agents/skills/tests-that-catch-bugs/SKILL.md
Versions recorded
1
Latest version
git:20261009.95ca1ef, committed Oct 9, 2026
Size
5,448 bytes
Repository stars
21
License
MIT

Use when adding, changing, or reviewing tests. Also use it when the user says "add a regression test", "write the test first", or "make sure this cannot break again". Writes a few tests that each name a bug and check the result where the user sees it. Expected values come from an independent source, and each test fails without the change. Test first is an ordering choice inside this skill. Not for checking finished work against the real command output (use `verify-and-review`).

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

# Tests That Catch Bugs

## Use when

You add or change a test, you fix a bug, or the user asks for test first work. A test has value only if it fails when the behavior it guards breaks. Three tests that catch real bugs are better than ten tests that pass whatever the code does.

## Gates

1. Can you name the bug that the test catches, as a wrong output for a given input? If not, do not write the test.
2. Does the test check the result where the user sees it, such as the command output, the exit code, or a written file? If the symptom is at the command, a helper test alone does not count.
3. Does the expected value come from a source other than the code under test? Use the bug report, the specification, a value you calculated by hand, or a recorded real output.
4. Did you see the test fail without the change, for the reason you named, and then pass with the change?
5. Would the test fail if the code under test returned nothing, an empty list, or a constant? If not, make the test specific or delete it.
6. Is the final diff free of each temporary mutation and debug line?

## Process

### Choose the order
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add theonly1me/shadowclone/tests-that-catch-bugs@sha256:17825aa618723260

The line at the top of this page pins the label git:20261009.95ca1ef, 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_kq5zm2crjsdsf7a7.svg)](https://markdownregistry.com/a/art_kq5zm2crjsdsf7a7)

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

Versions

The registry has recorded 1 version of this file, committed on Oct 9, 2026.

versioncommittedcommitsizeaudit
git:20261009.95ca1ef latest2026-10-09 95ca1ef 5,448 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 (5448 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

theonly1me/shadowclone · 21 stars · license MIT · pushed 2026-10-19 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_kq5zm2crjsdsf7a7
GET https://markdownregistry.com/api/v1/resolve?ref=theonly1me/shadowclone/tests-that-catch-bugs
GET https://markdownregistry.com/api/v1/blob/17825aa6187232601e4c7d2420fc0d307d0605b11054ed8ddeecc97fe361e42f

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 theonly1me/shadowclone

choose-by-consequence SKILL.md skill
theonly1me/shadowclone · .agents/skills/choose-by-consequence/SKILL.md · Use when code must decide what happens on an unusual or failing path. Also use it when the user says "just handle that…
git:20261009.95ca1ef · audit A · 21 stars
design-deep-modules SKILL.md skill
theonly1me/shadowclone · .agents/skills/design-deep-modules/SKILL.md · Use when designing or reshaping a module, or when callers coordinate too many steps. Also use it when the user says…
git:20261009.95ca1ef · audit A · 21 stars
diagnose-before-editing SKILL.md skill
theonly1me/shadowclone · .agents/skills/diagnose-before-editing/SKILL.md · Use when behavior fails, flakes, or slows down, and nobody knows the cause yet. Also use it when the user says "why…
git:20261009.95ca1ef · audit A · 21 stars
plan-with-review-page SKILL.md skill
theonly1me/shadowclone · .agents/skills/plan-with-review-page/SKILL.md · Use before a change that touches many files, needs many steps, or has open design choices. Also use it when the user…
git:20261009.95ca1ef · audit A · 21 stars
research-primary-sources SKILL.md skill
theonly1me/shadowclone · .agents/skills/research-primary-sources/SKILL.md · Use when a decision depends on how a library, platform, protocol, or tool behaves, and that behavior can change by…
git:20261009.95ca1ef · audit A · 21 stars
resolve-conflicts-by-intent SKILL.md skill
theonly1me/shadowclone · .agents/skills/resolve-conflicts-by-intent/SKILL.md · Use when Git reports conflicts during a merge, a rebase, or a cherry-pick. Also use it when the user says "fix the…
git:20261009.95ca1ef · audit A · 21 stars
scope-confirmed-changes SKILL.md skill
theonly1me/shadowclone · .agents/skills/scope-confirmed-changes/SKILL.md · Use when fixing a bug, a regression, or a confirmed review finding. Also use it when the user says "fix this bug", "it…
git:20261019.61ac16e · audit A · 21 stars
shadowclone-build-preferences SKILL.md skill
theonly1me/shadowclone · .agents/skills/shadowclone-build-preferences/SKILL.md · Read before acting for the selected working preferences.
git:20261009.95ca1ef · audit A · 21 stars
shadowclone-review SKILL.md skill
theonly1me/shadowclone · .agents/skills/shadowclone-review/SKILL.md · Use when the user asks for a review of a pull request, or when a review packet from `shadowclone review` arrives. Also…
git:20261012.64bdf7d · audit A · 21 stars
shadowclone-work SKILL.md skill
theonly1me/shadowclone · .agents/skills/shadowclone-work/SKILL.md · Use when the user asks to implement a change and open a pull request, or to get a pull request ready to merge. Also use…
git:20261018.7be4fab · audit A · 21 stars
typescript-type-safety SKILL.md skill
theonly1me/shadowclone · .agents/skills/typescript-type-safety/SKILL.md · Use when changing TypeScript types, parsing input that enters typed code, or removing unsafe casts. Also use it when…
git:20261009.95ca1ef · audit A · 21 stars
verify-and-review SKILL.md skill
theonly1me/shadowclone · .agents/skills/verify-and-review/SKILL.md · Use before you say that work is done, fixed, or ready for review. Also use it when the user says "make sure it works"…
git:20261019.61ac16e · audit A · 21 stars

Every file in theonly1me/shadowclone

Other files named tests-that-catch-bugs

tests-that-catch-bugs SKILL.md skill
theonly1me/shadowclone · skills/tests-that-catch-bugs/SKILL.md · Use when adding, changing, or reviewing tests. Also use it when the user says "add a regression test", "write the test…
git:20261004.0d9ae80 · audit A · 21 stars
tests-that-catch-bugs SKILL.md skill
theonly1me/shadowclone · .claude/skills/tests-that-catch-bugs/SKILL.md · Use when adding, changing, or reviewing tests. Also use it when the user says "add a regression test", "write the test…
git:20261009.95ca1ef · audit A · 21 stars

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