Skip to content
Back to skills

Tdd Cycle

ASecurity

Use to implement behavior with a red-green-refactor cycle.

  • 443 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 12, 2026
testingshellbashrefactoring

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add TypedDevs/bashunit --skill tdd-cycle --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tdd Cycle?

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

Security grade badge for Tdd Cycle
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/typeddevs-tdd-cycle/badge)](https://www.skillsdirectory.com/skills/typeddevs-tdd-cycle)

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-cycle
description: Use to implement behavior with a red-green-refactor cycle.
allowed-tools: [read, edit, write, shell, Grep, Glob]
---

# TDD cycle

Read [the complete workflow](references/workflow.md) for task-file conventions. Repository paths are relative to the repository root. The canonical quality gate and coordinator responsibilities in `.agnostic-ai/AGNOSTIC_AI.md` apply.

Use `.tasks/YYYY-MM-DD-slug.md` for features, refactors, or multi-test work; skip it for small fixes or a single test. Choose the next smallest test from the acceptance scenario or task inventory and study matching existing tests.

1. **RED:** Write Arrange-Act-Assert, run `./bashunit <test-path>`, and verify failure proves the requested behavior is missing, rather than a syntax or setup error. Record the red bar and logbook entry when using a task file.
2. **GREEN:** Implement only what this test requires. Run the focused test and require a pass. Check off the inventory entry and record the result.
3. **REFACTOR:** Improve naming, structure, or duplication without changing behavior. Keep affected focused tests green; preserve other workers' changes. Record meaningful refactoring notes.
4. Repeat until the acceptance scenario is complete. The main session completes the checks selected under `.agnostic-ai/AGNOSTIC_AI.md` after the whole change set, before committing. Delegates run only assigned targeted checks.

Never skip the demonstrated RED or add speculative behavior during GREEN. Keep the task inventory and logbook current when a task file is used.

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 testing →

Comments

Loading comments…

Newsletter

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