Skip to content
Back to skills

Test Truth

ASecurity

Write and trust only tests that fail when the behavior breaks, proved by sabotage. Use when writing, changing or reviewing tests.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentsrustgotestingapi

Works with

  • api

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ciro-maciel/ccm-stack --skill test-truth --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test Truth?

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

Security grade badge for Test Truth
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ciro-maciel-test-truth/badge)](https://www.skillsdirectory.com/skills/ciro-maciel-test-truth)

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: test-truth
description: Write and trust only tests that fail when the behavior breaks, proved by sabotage. Use when writing, changing or reviewing tests.
---

# Tests that prove something

A green suite proves only that nothing it checks failed. Whether it checks the right thing is a separate question, and you answer it by breaking the code.

## Sabotage is how you check a test

After writing a test, break the code it protects (invert a condition, return early, delete the call) and run it. It must turn red. Put the code back and it must turn green. A test you never saw fail has not been tested.

## Traps that keep a broken suite green

- **Two locks, one test.** When two checks guard the same result (one on write, one on read), an end-to-end test passes while either one alone still holds. Give each check its own assertion that fails when only that check is gone, and sabotage them one at a time.
- **A 200 on a write proves nothing.** The old version also answers 200. Write a value that did not exist before this run (a timestamp, a random id) and look for that exact value when you read back. Retry the read a few times before failing: a cache serving the old version for seconds is the cache working.
- **The API does not prove the screen.** A blank page leaves every API green. A journey that matters drives the real interface (see the `verify` skill).
- **Skipped means silent.** `skipIf(!exists(path))` turns into a no-op when the path moves, and nothing reports it. Fail when a precondition is missing instead of skipping.
- **Mocks that leak.** Module mocks that are global in your test runner leak across files and break only when the order changes, usually in CI. Prefer dependency injection; reset what you mock.
- **The mock is the old contract.** A mock copied from the other side freezes it; when the real side changes, the tests stay green against a contract that no longer exists. Test against the real thing at the boundary, or regenerate the fixture from it.
- **Testing the implementation.** Assert what a caller or user can observe, so the test survives a refactor and fails when behavior breaks.

## One test account

Every test that signs in uses one dedicated account with an inbox you control, never a real person's address. Configure it as `testEmail` in CCM Stack, and a hook will refuse login and code flows sent anywhere else.

## Review checklist

For each test: what behavior does it protect, how would it fail, and did you see it fail? If any answer is "not sure", sabotage before you trust it.

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.