Skip to content
Back to skills

Tdd Red Green

ASecurity

Run a focused Vitest red-to-green loop for a named TypeScript behavior and report both exit codes.

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

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add home-dev-lab/workflow-toolbox --skill tdd-red-green --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tdd Red Green?

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

Security grade badge for Tdd Red Green
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/home-dev-lab-tdd-red-green-c07b881e/badge)](https://www.skillsdirectory.com/skills/home-dev-lab-tdd-red-green-c07b881e)

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: tdd-red-green
description: Run a focused Vitest red-to-green loop for a named TypeScript behavior and report both exit codes.
---

# Vitest Red to Green

1. Run `pnpm vitest run <named-test-file>` from `toolkit/` before the implementation change.
2. Confirm the named assertion is red for the behavior being added or fixed, and capture the
   assertion text and exit code.
3. Apply the smallest implementation change that satisfies the assertion.
4. Rerun the same command. Confirm it is green and report its exit code.
5. Leave the locking assertion in place and run broader required gates after the focused loop.

If the named test does not fail before the implementation change, stop and correct the proof
instead of treating a pre-existing green result as red evidence.

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.