unit-tests

Guide Test-Driven Development through a Red-Green-Refactor cycle with pytest.

4|4|Updated Oct 5, 2025
One-click install
npx skills add https://github.com/preludetech/Freedom-LS --skill unit-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unit-tests
Source: https://github.com/preludetech/Freedom-LS/tree/main/.claude/skills/unit-tests
Command: npx skills add https://github.com/preludetech/Freedom-LS --skill unit-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams adopt Test-Driven Development (TDD) to design and implement features with confidence, catch bugs earlier, and guide clean architecture through a repeatable Red-Green-Refactor cycle.

Core Features & Use Cases

  • Red-Green-Refactor Cycle: Learn and apply the iterative test-first approach to drive incremental, reliable development.
  • Structured Test Practice: Emphasizes writing one failing test at a time, deterministic outcomes, and explicit, readable assertions.
  • Workflow Guidance: From writing a failing test in freedom_ls/<app_name>/tests to implementing minimal code and refactoring, promoting maintainable code quality.

Quick Start

Create a test file at freedom_ls/<app_name>/tests/test_<module>.py, write a failing test describing the desired behavior, run pytest to observe failure, implement the minimal code to pass, and then refactor as needed.