test-driven-development

Automate RED-GREEN-REFACTOR cycles with BD-managed TDD workflows.

483|58|Updated Aug 14, 2019
One-click install
npx skills add https://github.com/Trevoke/org-gtd.el --skill test-driven-development-trevoke
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/Trevoke/org-gtd.el/tree/main/.claude/skills/test-driven-development
Command: npx skills add https://github.com/Trevoke/org-gtd.el --skill test-driven-development-trevoke

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Building reliable software is hard when tests lag behind code. This Skill enforces a test-first workflow, guiding teams to write failing tests before implementation and track them through structured cycles.

Core Features & Use Cases

  • TDD Cycle Guidance: Orchestrates the RED-GREEN-REFACTOR pipeline with persistence and visibility using a molecule-based workflow.
  • Molecule-based Task Management: Provides reusable, repeatable task templates to standardize test creation, execution, and auditing.
  • Use Case: When adding a new feature, define an epic, then apply a TDD cycle to drive test creation, implementation, and refactoring while preserving history.

Quick Start

Create a new Feature with BD, pin an Epic, and start a TDD cycle using the prebuilt molecule:

  • bd search "user authentication"
  • bd create "Feature: User Authentication" --type epic --estimate 180
  • EPIC_ID=<id>
  • bd molecule apply tdd-cycle --vars feature="login with valid credentials"
  • bd ready
  • ... and continue through RED, GREEN, and REFACTOR phases.

Frequently Asked Questions about test-driven-development

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

FAQPage Schema
How do I automate test-driven development workflows for feature development?

Automating test-driven development workflows involves orchestrating the RED-GREEN-REFACTOR cycle with persistent tasks and epics. This ensures features ship with test-first discipline by guiding test creation, implementation, and refactoring while preserving full history.

What is the RED-GREEN-REFACTOR cycle in software-testing?

The RED-GREEN-REFACTOR cycle in software-testing is a test-first pipeline where you write a failing test, implement code to pass it, then refactor. This workflow enforces explicit dependencies and frontmatter metadata for reproducibility and auditability of every change.

Can I use molecule-based task management for bug fixes across software projects?

You can apply molecule-based task management to bug fixes across software projects. It provides reusable, repeatable task templates that standardize test creation and execution, guiding the full test-driven development lifecycle with phase labels.

Do I need BD to manage test-first development cycles?

You need BD to manage test-first development cycles because it handles persistent tasks, epics, and phase labels. BD applies prebuilt molecules to automate the workflow, ensuring reproducibility and auditability of every code change during feature development.

What's the best way to track test creation and implementation through structured cycles?

The best way to track test creation and implementation through structured cycles is using molecule-based task management. It standardizes the process by pinning epics, applying TDD cycles, and maintaining persistent history from the initial failing test through refactoring.

Why does test-first development require explicit dependencies and frontmatter-defined metadata?

Test-first development requires explicit dependencies and frontmatter-defined metadata to ensure reproducibility and auditability of every change. This structured approach prevents tests from lagging behind code by enforcing a disciplined workflow throughout the entire software project lifecycle.