Skip to content
Back to skills

Tdd Red Green

ASecurity

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

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

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-workflow-toolbox/badge)](https://www.skillsdirectory.com/skills/home-dev-lab-tdd-red-green-workflow-toolbox)

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 pytest red-to-green loop for a named Python behavior and report both exit codes.
---

# pytest Red to Green

1. Run the project's focused pytest command for the named test 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. Refactor only while the focused test remains green, then run broader required gates.

Use the project's package-manager choice to run pytest. pip, uv, and poetry are common choices;
the project's own choice wins. 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.

Adapted from ECC, `plugin/agents/python-tdd-guide.md`.

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.