principles-tdd

Implement test-driven development with conventions for unit, integration, and end-to-end tests.

2|Updated Jun 26, 2026
One-click install
npx skills add https://github.com/bRRRITSCOLD/compainy --skill principles-tdd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: principles-tdd
Source: https://github.com/bRRRITSCOLD/compainy/tree/main/skills/principles-tdd
Command: npx skills add https://github.com/bRRRITSCOLD/compainy --skill principles-tdd

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps engineers apply test-driven development (TDD) discipline, ensuring they write tests first and adhere to best practices in unit, integration, and end-to-end testing.

Core Features & Use Cases

  • TDD Discipline: Encourages a red-green-refactor cycle for writing and refactoring code.
  • Test Naming Conventions: Provides guidelines for naming test files and methods to ensure clarity and maintainability.
  • Test Tiers: Defines conventions for unit, integration, and end-to-end testing, with specific file naming and build tags.
  • Setup/Teardown: Ensures proper setup and teardown for tests to maintain a clean state.

Quick Start

Run 'tdd start' to begin applying TDD principles to your project.

Frequently Asked Questions about principles-tdd

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

FAQPage Schema
How do I implement test-driven development conventions for unit and integration tests?

Test-driven development conventions are implemented by following a red-green-refactor cycle, applying specific test naming guidelines, and organizing files by test tiers to ensure maintainability. This approach standardizes unit, integration, and end-to-end testing practices.

What is the red-green-refactor cycle in test-driven development?

The red-green-refactor cycle in test-driven development is a discipline where you write a failing test first, write the minimum code to make it pass, and then refactor the code. This ensures tests drive the design and maintains robust workflow conventions.

How do I organize test files for unit, integration, and end-to-end testing?

Organize test files for unit, integration, and end-to-end testing by applying specific file naming conventions and build tags. This defines clear test tiers, ensuring clarity and maintainability across different testing scopes in your project.

Do I need to know specific testing frameworks to apply these TDD best practices?

Yes, applying these TDD best practices assumes familiarity with testing frameworks and programming languages common in software development. The guidelines focus on workflow conventions, test naming, and lifecycle management rather than teaching framework basics.

How do I manage setup and teardown to maintain a clean state during testing?

Manage setup and teardown to maintain a clean state during testing by following conventions for proper test lifecycle management. This ensures each test runs independently without residual state affecting subsequent unit or integration test executions.

What is the best way to start applying TDD principles to an existing project?

The best way to start applying TDD principles to an existing project is to establish clear test naming conventions and file organization. Run the initialization command to begin integrating the red-green-refactor workflow into your development process.