Skip to content
Skills Library
Programming · Planning

tests-first

/tests-first

Chooses behavior tests and proportionate verification for features, fixes, refactors, and test review. Use when coverage or checks matter.

Repository
pragma ↗
Licence
MIT
Last repository change
26.10.2026

Assessment and security

100/ 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.
Content35 / 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 26.10.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

Chooses behavior tests and proportionate verification for features, fixes, refactors, and test review. Use when coverage or checks matter.

Original author description

Chooses behavior tests and proportionate verification for features, fixes, refactors, and test review. Use when coverage or checks matter.

How it works

  1. Write useful tests
  2. Verify proportionately
Original SKILL.md headings · 25 lines, 355 words
SKILL.md preview
---
name: tests-first
description: Chooses behavior tests and proportionate verification for features, fixes, refactors, and test review. Use when coverage or checks matter.
---

# Tests First

Inspect changed behavior and existing coverage. Protect current behavior and explicit contracts; each test should catch a meaningful regression or contract violation, rather than freeze implementation or chase coverage.

## Write useful tests

When coverage is needed, **prefer a complete behavior test before implementation; afterward is also valid**. Verify final behavior and use intermediate checks to resolve concrete uncertainty. Do not force a RED/GREEN/REFACTOR sequence or revert working code merely to manufacture a failing test.

- Derive expectations from the contract, checked examples, or known-good data, independently of production logic and its helpers.
- Prefer classical testing with real dependencies; assert results, state, and side effects. Use real infrastructure for SQL, transactions, wiring, or protocol contracts; E2E for full-journey risks. Choose the smallest trustworthy boundary, without fixed test ratios.
- Keep purposeful unit tests. Use test doubles when real dependencies are impractical or a narrow interaction is itself contractual. Understand side effects before mocking; preserve the behavior under test. Keep fixtures faithful to the relevant real shape, omitting irrelevant fields.
- Assert calls, arguments, counts, or ordering only when contractual. Assert persisted state when persistence is the behavior under test.
- Keep setup/helpers simple. Avoid test-only production APIs, tests that only verify mock interactions, source-text snapshots, and trivial-forwarding tests unless they protect a meaningful transformation or contract.
- Trigger asynchronous operations once and await an observable outcome with a bounded check; use delays only for a real timing reason.
- Remove duplicate, brittle, or discarded-alternative tests that protect no current behavior. Tiny editorial/mechanical edits or adequate existing coverage can need no new test.

## Verify proportionately

Choose checks from affected contracts, risk, and repository requirements. Tests, builds, static inspection, manual checks, and runtime/integration evidence establish different claims.

Read results and exit status; distinguish code failures from unavailable infrastructure before changing code or builds. Repeat or broaden checks for relevant edits, failures, unresolved concerns, or explicit requirements; small changes do not automatically require a full suite.

Report what was checked, observed failures, and material limits. Reuse evidence that still applies to the final state; a focused check does not establish a full-suite pass.

Versions

The database has no other skills named tests-first.

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

Downloads in the last 30 days: 2 · ranking

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

Similar skills

  • 100risk-based-validation
    Choose proportionate verification after a bug fix, feature, or refactor using the actual diff, reviewed impact evidence, regression risk, and test cost. Select checks, diagnose failures, reuse valid evidence, and stop when justified. Use for post-change validation; preserve…
  • 100driving-with-tests
    Guides implementation and verification through Orient, Red/Green/Refactor, Probe, and Guard. Use for new behavior, bug fixes, refactors, test strategy, test reviews, coverage decisions, baseline checks, or requests to work test-first or practice TDD.
  • 90mcaf-testing
    Design or update regression tests for features, defects, and refactors using repository verification commands. Use for meaningful user or system flow coverage and test strategy.
  • 100loom-test-after-implementation
    Implement features first, then write behavior-verification tests against the real public API. Code-first/test-after cycle: implement → refactor → write behavior tests → run tests. Use when: implementing behavior where tests verify outcomes after production code is written.
  • 100tdd-workflow
    Use this skill for test-first implementation of new features, bug fixes, and refactors with RED-GREEN-REFACTOR discipline and explicit verification gates.
  • 90TDD Methodology
    This skill should be used when the user asks to "write tests first", "use TDD", "test-driven development", "red green refactor", "test first", "add unit tests before code", "write regression test first", "safe refactor with tests", or when TDD mode is active and the user makes…

Feedback and reports

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