ganyuanran avatar

Test Driven Development

Enforces classic red-green-refactor discipline: write a failing test, watch it fail, write minimal code to pass, then clean up. The skill gates you before letting production code through without a failing test first, which sounds rigid until you realize how often "I'll add the test later" means never. It includes a preflight check that routes medium or high complexity work to planning before you start the TDD cycle, so you're not test-driving your way into the wrong architecture. Also has a pre-edit complexity check to stop you from cramming logic into an already overloaded file just because the test is green. Useful when you want the discipline enforced, not just suggested.

GitHub stars
492
last updated
Jun 11, 2026

Install

$ npx -y skills add ganyuanran/aegis --skill test-driven-development --agent claude-code

Installs into .claude/skills of the current project.

Files

Execute

  • False-positive entry on a native-direct-skill host? Exit immediately unless the user explicitly requested TDD or the conversation records TDD Route: strict. Return to the selecting workflow or fast path with proportional verification.
  • Under strict, validate preflight and Change Necessity before production edits. No production code without an observed failing behavior test first.
  • RED (test and observe failure) -> GREEN (minimum owner repair and observe pass) -> REFACTOR (clean up while green). Apply Regression Scope before closeout.
  • GREEN proves only the expressed behavior slice, not parent-task acceptance, business-value completion or final completion. Use verification-before-completion.

Entry Boundary

Enter only for an explicit strict TDD/test-first/RED / GREEN / REFACTOR request or a recorded TDD Route: strict. Native-direct-skill hosts must not infer entry from generic risky-code wording. Consume the selected route; a missing or invalid automatic decision returns to its selecting workflow.

Sponsors

Details

Repository
github.com/ganyuanran/aegis
Categories
Testing & QA, Code Review & Quality
License
MIT
First seen
Jun 11, 2026

More from ganyuanran/aegis

All 22
1joshuadavidthomas avatartest-skilljoshuadavidthomas/opencode-agent-skillsA test skill to verify all plugin tools work correctly - use_skill, read_skill_file, run_skill_script, find_skills0skills.sh installs
2odradekai avatartestingodradekai/bundles-forgeThis is the runtime counterpart to auditing.0skills.sh installs
3sickn33 avatarIDOR Vulnerability Testingsickn33/antigravity-awesome-skillsidor vulnerability testing0skills.sh installs
4wbern avatartddwbern/claude-instructionsRemind agent about TDD approach and continue conversation0skills.sh installs
5addyosmani avatarbrowser-testing-with-devtoolsaddyosmani/agent-skillsTests in real browsers via Chrome DevTools MCP. Use when building or debugging anything that runs in a browser. Use when you need to inspect the DOM, capture co67.7Kskills.sh installs
6flutter avatarflutter-add-integration-testflutter/skillsflutter add integration test21.5Kskills.sh installs