Skip to content
Skills Library
Programming · Testing

test-truth

/test-truth

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

Repository
ccm-stack ↗
Licence
MIT
Last repository change
10.11.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 10.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

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

Original author description

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

How it works

  1. Sabotage is how you check a test
  2. Traps that keep a broken suite green
  3. One test account
  4. Review checklist
Original SKILL.md headings · 27 lines, 429 words
SKILL.md preview
---
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.

Versions

The database has no other skills named test-truth.

Database snapshot: 13.11.2026 · package version b75951e04379 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 76principle-test-behavior-not-implementation
    Apply when you write, change, or keep a test. Assert what the code's users can observe, so that the test fails when that behavior breaks and keeps passing when only the internals change.
  • 81principle-test-behavior-not-implementation
    Apply when you write, change, or keep a test. Assert what the code's users can observe, so that the test fails when that behavior breaks and keeps passing when only the internals change.
  • 81principle-test-behavior-not-implementation
    Apply when you write, change, or keep a test. Assert what the code's users can observe, so that the test fails when that behavior breaks and keeps passing when only the internals change.
  • 100write-tests
    Write tests that pin real behavior instead of implementation details, config values, or lucky samples. Use when adding tests for new behavior, writing a regression test, fixing a brittle or flaky test, reviewing a test diff, or when a test breaks after a refactor or config…
  • 100write-tests
    Write tests that pin real behavior instead of implementation details, config values, or lucky samples. Use when adding tests for new behavior, writing a regression test, fixing a brittle or flaky test, reviewing a test diff, or when a test breaks after a refactor or config…
  • 81principle-test-behavior-not-implementation
    Apply when you write, change, or keep a test. Assert what the code's users can observe, so that the test fails when that behavior breaks and keeps passing when only the internals change. Use for /principle-test-behavior-not-implementation.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.