bk-tdd

Guide Red-Green-Refactor TDD cycles with acceptance criteria and mocking.

Updated Mar 3, 2026
One-click install
npx skills add https://github.com/dikini/knot --skill bk-tdd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bk-tdd
Source: https://github.com/dikini/knot/tree/main/.agents/skills/bk-tdd
Command: npx skills add https://github.com/dikini/knot --skill bk-tdd

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill guides users through the Test-Driven Development (TDD) process, ensuring robust and reliable code by writing tests before implementation.

Core Features & Use Cases

  • Structured TDD Workflow: Follows the Red-Green-Refactor cycle for confident development.
  • Acceptance Criteria Integration: Links tests directly to requirements defined in bk-plan.
  • Use Case: When developing a new feature, use this Skill to first write a failing test that captures a specific acceptance criterion, then write the minimal code to pass it, and finally refactor for quality.

Quick Start

Use the bk-tdd skill to implement the feature defined by the task reference and plan path.

Frequently Asked Questions about bk-tdd

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I start test-driven development for a new feature in Rust?

To start test-driven development (TDD), you first write a failing test that captures a specific acceptance criterion, then implement the minimal code to pass it, and finally refactor for quality. This structured workflow ensures robust software implementation.

What is the Red Green Refactor cycle in software development?

The Red Green Refactor cycle is a test-driven development workflow where you write a failing test (Red), implement the minimum code required to pass the test (Green), and then refactor the code for quality without changing its behavior.

How do I link acceptance criteria to my testing workflow?

You can link acceptance criteria to your testing workflow by using a provided plan path. The TDD process directly maps your tests to the requirements defined in the plan, ensuring that every piece of implemented code fulfills a specific acceptance criterion.

Can I use property-based testing and mock external dependencies during TDD?

Yes, the TDD workflow supports external dependency mocking and property-based testing for robust validation. This allows you to isolate components and thoroughly test code behavior against a wide range of inputs during implementation.

When should I use test-driven development over writing tests after implementation?

You should use test-driven development when you need to ensure robust, reliable code by strictly adhering to predefined acceptance criteria. It is particularly effective for guiding software implementation through a structured Red-Green-Refactor cycle before writing functional code.

Does the bk-tdd skill work without external dependencies?

Yes, the bk-tdd skill operates with no dependencies. It facilitates the test-driven development workflow entirely through its internal references and structured process, guiding you from writing failing tests to final code refactoring.