Skip to content
Back to skills

Lets Test First

ASecurity

Use when implementing a change with test-driven development (TDD): work test-first through focused red-green cycles.

  • 18 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
content-marketing

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 26, 2026

npx -y skills add sidereal-io/sidereal --skill lets-test-first --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Lets Test First?

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

Security grade badge for Lets Test First
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sidereal-io-lets-test-first/badge)](https://www.skillsdirectory.com/skills/sidereal-io-lets-test-first)

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: lets-test-first
description: "Use when implementing a change with test-driven development (TDD): work test-first through focused red-green cycles."
---

# Test-Driven Development

Use the repository's existing test tooling and conventions. Work through
one behavior at a time: first show a test failing because that behavior is
missing (red), then make it pass (green), then improve the code while tests
still pass (refactor).

One test, one behavior, one reason to fail. A test name describes that one
behavior; never use joiners such as "and", "or", or "etc." to combine
independent outcomes. Use several assertions only when together they
establish that one behavior.

Read [Plain language](../lets-shape/references/plain-language.md) before writing.
Use it for test names and failure reports: name the observable behavior and
explain what failed.

## Red

- Select one observable behavior from the requirement.
- Write one test before changing implementation code.
- Run the test and confirm it fails because the behavior is missing, not because the test is broken.

## Green

- Write only enough implementation code to pass the failing test.
- Run the test, then run the relevant suite.
- Do not add behavior without first seeing its test fail.

## Refactor

- Refactor only while the relevant suite is green, after completing a red-green slice.
- Refactor either the tests or the implementation in one pass, not both.
- Reuse shared setup, teardown, helpers, and parameterized structure when they clarify intent without combining behaviors.
- Rerun the relevant suite after each refactor pass.

## Patterns and anti-patterns

Read [patterns and anti-patterns](references/best-practices.md) when choosing a test shape, writing examples, or deciding whether cases belong together.

## Collaborators

Read [collaborators](references/collaborators.md) before replacing a dependency
with a test substitute. Mock system boundaries, not code owned by the
application: the reference explains where a substitute is appropriate.

Files in this skill

  • SKILL.md1.6 KB
  • references/best-practices.md1.9 KB
  • references/collaborators.md1.3 KB

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 content-marketing →

Comments

Loading comments…

Newsletter

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