tdd

Guide Deno 2.x projects through the red-green-refactor TDD cycle.

8|1|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/greghavens/triggerfish --skill tdd-greghavens
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/greghavens/triggerfish/tree/main/skills/bundled/tdd
Command: npx skills add https://github.com/greghavens/triggerfish --skill tdd-greghavens

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers write more robust and reliable code by enforcing the Test-Driven Development (TDD) methodology, ensuring that code is well-tested and meets requirements before implementation.

Core Features & Use Cases

  • Red-Green-Refactor Cycle: Guides users through the fundamental TDD loop.
  • Deno Test Runner Integration: Demonstrates how to use Deno's built-in testing capabilities.
  • Assertion Library Usage: Shows how to effectively use @std/assert for various test cases.
  • Use Case: When developing a new feature for Triggerfish, use this Skill to write tests first, ensuring the feature behaves as expected and preventing regressions.

Quick Start

Use the tdd skill to write a new test for the maxClassification function.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I write tests using Deno's built-in test runner for new features?

To write tests for new features in Deno, you should follow the Test-Driven Development (TDD) red-green-refactor cycle. This methodology uses Deno's built-in test runner alongside the `@std/assert` library to ensure deterministic, behavior-driven tests before implementation.

What is the best way to apply the red-green-refactor cycle in a Deno 2.x project?

The best way to apply the red-green-refactor cycle in a Deno 2.x project is by writing failing tests first, implementing the minimum code to pass them, and then refactoring. This ensures behavior-driven development and prevents future code regressions effectively.

How do I use @std/assert for behavior-driven tests in Deno?

You use `@std/assert` for behavior-driven tests in Deno by integrating it with the built-in test runner to validate specific code behaviors. It provides the necessary assertion functions to enforce deterministic test outcomes during the TDD red-green-refactor cycle.

Can I use TDD for bug fixing and code refactoring on the Triggerfish platform?

Yes, you can use TDD for bug fixing and code refactoring on the Triggerfish platform. The methodology guides you to write deterministic tests first, ensuring that bug fixes and refactored code behave as expected without introducing new regressions.

Does Deno testing require external dependencies to run TDD workflows?

Deno testing does not require external dependencies to run TDD workflows. The environment leverages Deno's built-in test runner and the standard `@std/assert` library, allowing you to execute the red-green-refactor cycle natively without additional packages.