Skip to content
Back to skills

Test First

ASecurity

Enforce the red-green-refactor cycle: require a failing test before the code that satisfies it, and halt when coverage falls.

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentsgit

Security analysis

A100/100

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

Scanned December 4, 2026

npx -y skills add SanvioLabs/sanvio-factory --skill test-first --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test First?

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

Security grade badge for Test First
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sanviolabs-test-first/badge)](https://www.skillsdirectory.com/skills/sanviolabs-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: test-first
description: Enforce the red-green-refactor cycle: require a failing test before the code that satisfies it, and halt when coverage falls.
license: MIT. From Stelliad, https://github.com/Stelliad/stelliad-skills, commit 65632a3. Notice in LICENSE beside this file
compatibility: Adapt to your own stack and thresholds via CUSTOMIZE.md. No external dependencies.
metadata:
  version: "1.0"
  author: Sanvio Labs, Agentience
  source: https://github.com/Stelliad/stelliad-skills
  source-commit: "65632a3ba2c9610a672fe3806667e1ed52babb5e"
type: skill
scope: all
status: active
---

# test-first

TDD enforcement. Enforce the red-green-refactor cycle: require a failing test before the code that satisfies it, and halt when coverage falls.

## Quick start

1. [Read SPEC.md](./SPEC.md) for the framework and the output contract
2. [Follow CUSTOMIZE.md](./CUSTOMIZE.md) to adapt it to your stack, thresholds, and policies
3. Run it against a single module first, then widen once the output matches your expectations

## What it does

1. Require a failing test first, and verify it fails for the stated reason
2. Write only enough code to pass it
3. Refactor against a green suite
4. Halt on the defined stop signals rather than pushing through them

## Before you rely on it

Read the Limitations section in [SPEC.md](./SPEC.md). It states what this
structurally cannot see, which matters more than what it can.

---

See [CUSTOMIZE.md](./CUSTOMIZE.md) to adapt this skill for your organization.

Files in this skill

  • CUSTOMIZE.md13.9 KB
  • LICENSE1 KB
  • README.md7.7 KB
  • SKILL.md1.5 KB
  • SPEC.md13.4 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 ai-agents →

Comments

Loading comments…

Newsletter

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