phase-test-tdd

Generate Mojo and Python test files and coordinate the 5-phase TDD workflow.

18|5|Updated Nov 3, 2025
One-click install
npx skills add https://github.com/mvillmow/ml-odyssey --skill phase-test-tdd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: phase-test-tdd
Source: https://github.com/mvillmow/ml-odyssey/tree/main/.claude/skills/phase-test-tdd
Command: npx skills add https://github.com/mvillmow/ml-odyssey --skill phase-test-tdd

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires mojo-sdk, pytest, and includes scripts (resource) components.

What problem does it solve? This Skill facilitates Test-Driven Development (TDD) by generating test files from templates and coordinating the red-green-refactor cycle, ensuring robust test coverage and higher code quality from the start. It automates test setup, saving time and promoting best practices.

Core Features & Use Cases:

  • Test File Generation: Creates unit, integration, and performance test files for Mojo and Python, providing a structured starting point.
  • TDD Workflow Guidance: Supports the "write tests first" principle and the red-green-refactor cycle, ensuring testable code.
  • Use Case: Before writing any new code for a feature, use this skill to generate a unit test file. Write a failing test, then implement the minimal code to make it pass, ensuring your code is always testable and correct.

Quick Start: Use the phase-test-tdd skill to generate a unit test file for 'matrix_multiply'.

Frequently Asked Questions about phase-test-tdd

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

FAQPage Schema
How do I generate unit tests before writing code?

Test-driven development (TDD) starts by generating test files before implementation. This Skill creates unit, integration, and performance test files for Mojo and Python, providing a structured template to write failing tests first, then implement minimal code to pass them, ensuring testable, correct code from the start.

Can I use this with both Mojo and Python projects?

Yes. This Skill generates test files for both Mojo and Python, supporting unit, integration, and performance tests across both languages. It integrates with pytest and coordinates the red-green-refactor cycle for each framework.

What does the red-green-refactor workflow accomplish?

Red-green-refactor is the core TDD cycle: write a failing test (red), implement minimal code to pass it (green), then clean up the implementation (refactor). This Skill guides you through all three phases, producing verifiable, passing test suites with higher code quality.

How do I get started generating test files?

Use this Skill to generate a test file by specifying the function or module you want to test—for example, 'matrix_multiply'. It creates a template with unit test structure, so you can immediately write failing tests and begin the TDD cycle.

Does this Skill handle integration and performance tests, or just unit tests?

This Skill generates unit, integration, and performance test files. It automates scaffolding for all three test types across Mojo and Python, supporting the full range of testing requirements within a single TDD workflow.

What dependencies do I need to use this Skill?

You need the Mojo SDK and pytest. These enable test file generation and execution across Mojo and Python test runners, allowing this Skill to coordinate the complete TDD workflow.