Skip to main content

Test Driven Development

Skill Active
Part of:Tdd

Use when implementing any feature or bugfix, before writing implementation code - write the test first, watch it fail, write minimal code to pass; ensures tests actually verify behavior by requiring failure first

Purpose

To enforce Test-Driven Development by ensuring tests are written first, verified to fail, and then minimal code is written to pass them, guaranteeing behavioral verification.

Features

  • Enforces Test-Driven Development methodology
  • Requires tests to fail before implementation code is written
  • Provides step-by-step guidance for the Red-Green-Refactor cycle
  • Details common TDD anti-patterns and rationalizations
  • Ensures tests verify behavior, not just implementation

Use Cases

  • Implementing new features using TDD
  • Fixing bugs with a test-first approach
  • Refactoring code while maintaining test coverage
  • Ensuring code quality through rigorous testing practices

Non-Goals

  • Writing tests after implementation code
  • Skipping TDD for perceived simple code or prototypes
  • Accepting tests that pass immediately without prior failure
  • Treating testing as an optional afterthought

Workflow

  1. Write a failing test for the desired behavior (RED).
  2. Verify that the test fails correctly.
  3. Write the minimal amount of code to make the test pass (GREEN).
  4. Verify that the test passes and all other tests still pass.
  5. Refactor the code while keeping tests green.
  6. Repeat the cycle for the next piece of behavior.

Practices

  • Test-Driven Development

Maintenance

  • warning:Commit recencyThe last commit was over 90 days ago, indicating potential lack of recent maintenance.

Trust

  • warning:Issues AttentionThere are 6 open issues and 8 closed issues in the last 90 days, indicating a low closure rate and potentially slow maintainer response.

Versioning

  • warning:Release ManagementThere is no explicit versioning system (like semver in frontmatter or CHANGELOG) and installation instructions reference `main`, making it difficult to pin a specific version.

Installation

First, add the marketplace

/plugin marketplace add NeoLabHQ/context-engineering-kit
/plugin install tdd@context-engineering-kit

Quality Score

75 /100
Analyzed about 23 hours ago

Trust Signals

Last commit9 days ago
Stars993
LicenseGPL-3.0
Status
View Source

© 2025 SkillRepo · Find the right skill, skip the noise.