Skip to content

feat(plugin): add tdd skill for test-driven development workflow#230

Open
0ut5ider wants to merge 2 commits intoEveryInc:mainfrom
0ut5ider:feature/tdd-skill
Open

feat(plugin): add tdd skill for test-driven development workflow#230
0ut5ider wants to merge 2 commits intoEveryInc:mainfrom
0ut5ider:feature/tdd-skill

Conversation

@0ut5ider
Copy link

@0ut5ider 0ut5ider commented Mar 8, 2026

Summary

  • Add opt-in tdd skill that integrates red-green-refactor discipline into implementation plans
  • Triggered when the user mentions TDD-related keywords (e.g., "TDD", "test-driven", "test first", "red-green-refactor") before or after /ce:plan
  • Does NOT auto-apply to plans when TDD is not mentioned -- respects user preference

What's Included

skills/tdd/SKILL.md -- Core skill with:

  • Opinionated TDD philosophy (language-agnostic, process-focused)
  • The full RED/GREEN/REFACTOR cycle with concrete guidance
  • Plan augmentation format that restructures implementation tasks into behavioral increments
  • Test granularity guidance (pragmatic -- unit vs integration based on situation)
  • Discipline rules and feature decomposition heuristics

skills/tdd/references/anti-patterns.md -- 10 common TDD mistakes with examples and corrections:

  • Testing implementation instead of behavior
  • Writing all tests first then all code
  • Mocking everything
  • Skipping the refactor step
  • And 6 more

Plugin Metadata

  • Version bumped to 2.39.0 (MINOR -- new skill)
  • CHANGELOG.md updated
  • README.md skill count 20 -> 21, table entry added under "Development Tools"
  • plugin.json description updated

Validation

  • quick_validate.py passes clean
  • All 313 existing tests pass

Add opt-in TDD skill that integrates red-green-refactor discipline into
implementation plans when triggered by TDD-related keywords. Includes
the full cycle (RED/GREEN/REFACTOR), plan augmentation format, test
granularity guidance, and anti-patterns reference.

Language-agnostic, strongly opinionated on process. Designed as an MVP
starting point for public submission.

Bumps plugin to 2.39.0 (21 skills).
- Fix internal contradiction: discipline rule EveryInc#2 now scoped to behavioral
  changes, consistent with 'Skip TDD when' section
- Fix 'one assertion' to 'one behavior per test' throughout
- Add activation sequence: test runner detection, plan vs no-plan routing
- Add characterization test guidance for untested codebases
- Expand RED step guidance for when test passes immediately
- Declare Classical/Chicago school stance, acknowledge London school
- Rename 'Plan Augmentation' to 'Restructuring Plans for TDD'
- Merge decomposition heuristic into plan section, remove redundancy
- Remove duplicate anti-patterns link
- Add 3 AI-specific anti-patterns: over-implementing on GREEN,
  mirror tests, skipping RED verification
- Fix Ruby-biased code examples in anti-patterns for language neutrality
- Add code example to 'Ignoring Test Failure Messages' entry
- Add Classical school context to 'Mocking Everything' entry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants