tdd

Guide Prowler component development through the Red-Green-Refactor TDD cycle.

Updated Mar 8, 2026
One-click install
npx skills add https://github.com/brivaro/brivaro-ai-wizard --skill tdd-brivaro
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/brivaro/brivaro-ai-wizard/tree/main/skills/tdd
Command: npx skills add https://github.com/brivaro/brivaro-ai-wizard --skill tdd-brivaro

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enforces a rigorous Test-Driven Development (TDD) workflow, ensuring code quality, maintainability, and robustness across all Prowler components by mandating a "Red-Green-Refactor" cycle.

Core Features & Use Cases

  • Mandatory TDD Workflow: Guides developers through the essential TDD steps for new features, bug fixes, and refactoring.
  • Stack Detection: Automatically identifies the development stack (UI, SDK, API) to apply relevant testing strategies and commands.
  • Phase-by-Phase Guidance: Provides clear instructions for Assessment, Writing Failing Tests (Red), Writing Minimum Code (Green), Triangulation, and Refactoring.
  • Anti-Pattern Avoidance: Highlights common TDD pitfalls to prevent them.
  • Use Case: When implementing a new security check for an AWS service, this Skill ensures you first write a failing test, then the minimal code to pass it, and finally refactor, guaranteeing the new check is well-tested and reliable.

Quick Start

Follow the TDD cycle to implement the new behavior.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I enforce a test-driven development workflow for React and Python?

To enforce a test-driven development workflow, this Skill detects your stack (TypeScript/React, Python/pytest, or Python/Django) and guides you through the Red-Green-Refactor cycle with specific commands for each phase.

What is the Red-Green-Refactor cycle in test-driven development?

The Red-Green-Refactor cycle in test-driven development mandates writing a failing test, creating the minimum code to pass it, and then refactoring. This workflow improves maintainability and robustness.

Can I use this TDD workflow for both new features and bug fixes?

Yes, you can use this TDD workflow for new features, bug fixes, and refactoring. It provides phase-by-phase guidance including assessment, writing failing tests, writing minimum code, triangulation, and refactoring.

How do I avoid common test-driven development anti-patterns?

To avoid common test-driven development anti-patterns, this Skill highlights typical TDD pitfalls and provides targeted strategies to prevent them during your development workflow.

Does this test-driven development workflow support automated testing for SDKs?

Yes, this test-driven development workflow supports automated testing for SDKs, UI, and API components by automatically identifying the development stack to apply relevant testing strategies.

What's the best way to start writing code with a test-first approach?

The best way to start writing code with a test-first approach is to begin with the Assessment phase, write a failing test, implement the minimal code to pass, and then refactor to ensure code quality.