tdd

Enforce a red-green-refactor cycle for Rust code with adversarial testing.

2|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/oakoss/oakterm --skill tdd-oakoss
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/oakoss/oakterm/tree/main/.claude/skills/tdd
Command: npx skills add https://github.com/oakoss/oakterm --skill tdd-oakoss

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the challenge of writing unreliable or untestable code by enforcing a disciplined test-driven development workflow that ensures every feature is verified through public interfaces.

Core Features & Use Cases

  • Red-Green-Refactor Enforcement: Guides you through the cycle of writing a failing test, implementing minimal code, and refactoring safely.
  • Adversarial Testing: Provides patterns for boundary and edge-case testing to prevent silent failures.
  • Interface Design: Offers architectural guidance on creating deep modules and testable dependencies.
  • Use Case: When building a new terminal feature, use this Skill to ensure your logic is decoupled from internal state and verified by public-facing tests before moving to the next requirement.

Quick Start

Use the tdd skill to guide the implementation of a new terminal command using the red-green-refactor cycle.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I enforce a strict red-green-refactor cycle when writing Rust code?

You can enforce the red-green-refactor cycle in Rust by using a Skill that mandates writing a failing test first, implementing minimal code to pass it, and then refactoring safely. It ensures modular design and clippy-compliant implementation steps.

What is test-driven development for robust software engineering?

Test-driven development for robust software engineering is a workflow where every feature is verified through public interfaces before moving to the next requirement. It ensures code is testable, decoupled from internal state, and resistant to silent failures via adversarial testing.

How do I write tests for public interfaces to prevent silent failures in my code?

To prevent silent failures, you can write tests for public interfaces using adversarial testing patterns that target boundary and edge cases. This approach verifies features through public-facing tests, ensuring your logic is decoupled from internal state and thoroughly checked.

Does this test-driven development approach work for building decoupled terminal features?

Yes, this test-driven development approach works for building decoupled terminal features by ensuring your logic is verified by public-facing tests before moving to the next requirement. It offers architectural guidance on creating deep modules and testable dependencies for terminal commands.

Can I use this red-green-refactor workflow without prior test files?

Yes, you can use the red-green-refactor workflow without prior test files because the process starts by writing a new failing test for the specific feature. It requires no external dependencies, only adherence to modular design principles and systematic implementation steps.