tdd

Enforce a Test-Driven Development workflow for Prowler UI, SDK, and API components.

1|Updated Aug 16, 2025
One-click install
npx skills add https://github.com/professor-moody/cloud-tools --skill tdd-professor-moody
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/professor-moody/cloud-tools/tree/main/repos/prowler/skills/tdd
Command: npx skills add https://github.com/professor-moody/cloud-tools --skill tdd-professor-moody

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enforces a rigorous Test-Driven Development (TDD) workflow to ensure code quality, reduce bugs, and enable confident refactoring across all Prowler components.

Core Features & Use Cases

  • Mandatory TDD Cycle: Guides users through the Red-Green-Refactor cycle for every code change.
  • Stack Detection: Automatically identifies the correct testing framework (Vitest, pytest, pytest-django) based on the code location.
  • Use Case: When developing a new feature for the Prowler UI, this Skill will prompt you to write a failing test first, then the minimal code to pass, and finally refactor, ensuring the feature is well-tested from the start.

Quick Start

Follow the TDD cycle to implement the next piece of functionality.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I enforce a TDD workflow for UI, SDK, and API components?

You can enforce a TDD workflow by following a guided Red-Green-Refactor cycle for every code change. This approach ensures you write a failing test first, implement minimal code to pass, and then refactor to maintain robust and maintainable software.

Does this TDD skill support stack detection for Vitest and pytest?

Yes, the TDD workflow supports automatic stack detection to identify the correct testing framework. It automatically detects Vitest, pytest, and pytest-django based on the code location of your UI, SDK, or API components.

What is the Red-Green-Refactor cycle and when do I need it?

The Red-Green-Refactor cycle is a Test-Driven Development process where you write a failing test, implement minimal code to pass, and then refactor. You need it to reduce bugs, ensure code quality, and enable confident refactoring.

How do I start writing a new feature using test-driven development?

To start writing a new feature, you first write a failing test that defines the desired functionality. Then, you implement the minimal code required to make that test pass before refactoring the implementation for better code quality.

Can I use this workflow to refactor existing code safely?

Yes, you can use this workflow to refactor existing code safely. By enforcing the test-driven development cycle, the workflow ensures your code remains robust and maintainable, enabling confident refactoring across all components.

What are the limitations of automated TDD stack detection?

Automated TDD stack detection is limited to Vitest, pytest, and pytest-django frameworks. It operates by identifying the correct testing framework based on your code location across UI, SDK, and API components.