tdd-pair-loop

Orchestrate TDD Red-Green-Refactor cycles with Driver, Navigator, and Researcher agents.

Updated Apr 30, 2024
One-click install
npx skills add https://github.com/pertrai1/coding-challenges --skill tdd-pair-loop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-pair-loop
Source: https://github.com/pertrai1/coding-challenges/tree/main/.claude/skills/tdd-pair-loop
Command: npx skills add https://github.com/pertrai1/coding-challenges --skill tdd-pair-loop

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires vitest, eslint, prettier, markdownlint, gh, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the Test-Driven Development (TDD) process by orchestrating AI agents to write tests and implementation code, ensuring robust software development.

Core Features & Use Cases

  • Automated TDD Cycle: Manages the Red-Green-Refactor loop with distinct agent roles (Driver, Navigator, Researcher).
  • Flexible Modes: Supports both autonomous problem-solving (Auto-Solve) and guided learning (Coach Mode) for different user needs.
  • Use Case: Use this Skill to automatically generate unit tests and corresponding implementation code for a new algorithm, following strict TDD principles, or to guide a junior developer through the TDD process with structured feedback.

Quick Start

Initiate a TDD session for a new LeetCode problem by running the tdd-pair-loop skill.

Frequently Asked Questions about tdd-pair-loop

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

FAQPage Schema
How do I automate the Test-Driven Development cycle with AI agents?

You automate the Test-Driven Development cycle by orchestrating AI agents to write failing tests, generate minimal passing code, and refactor. The workflow defines strict Driver, Navigator, and Researcher agent roles to manage session setup and quality checks.

Does TDD pair programming work for both autonomous problem-solving and guided learning?

TDD pair programming supports both autonomous problem-solving and guided learning modes. Auto-Solve mode handles implementation independently, while Coach Mode provides structured feedback to guide developers through the Red-Green-Refactor process.

What's the best way to write unit tests and implementation code using TDD principles?

The best way to write unit tests and implementation code using TDD principles is following the Red-Green-Refactor loop. Write a failing test first, generate minimal passing code, and then refactor while maintaining strict quality checks.

Do I need Vitest and ESLint to run an automated TDD workflow?

You need Vitest and ESLint to run an automated TDD workflow, along with Prettier, markdownlint, and gh. These dependencies ensure proper test execution, code linting, formatting, and quality checks during the refactoring phase.

How does AI pair programming handle refactoring and post-mortems in a TDD session?

AI pair programming handles refactoring and post-mortems in a TDD session by managing the entire cycle transition. After reaching the Green state, agents orchestrate code refactoring and conduct session post-mortems according to defined conventions.