development

Enforces Test-Driven Development cycles for bug-resistant code with failing tests first.

88|4|Updated Oct 14, 2018
One-click install
npx skills add https://github.com/skanehira/dotfiles --skill development-skanehira
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: development
Source: https://github.com/skanehira/dotfiles/tree/main/claude/skills/development
Command: npx skills add https://github.com/skanehira/dotfiles --skill development-skanehira

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires npm, and includes references (resource) components.

What problem does it solve?

This Skill ensures the creation of high-quality, bug-resistant code by strictly enforcing Test-Driven Development (TDD) methodology. It prevents common pitfalls like writing untestable code or deferring tests, leading to more reliable and maintainable software.

Core Features & Use Cases

  • Strict TDD Cycle Enforcement: Guides you through the RED (write failing test) → GREEN (make test pass) → REFACTOR (improve code quality) cycle, preventing you from writing production code without a prior failing test.
  • Bug Fixing with Tests: Requires reproducing bugs with a failing test first, guaranteeing that fixes are verified and won't re-emerge later.
  • Integrated Quality Assurance: Incorporates mandatory steps for linting, formatting, and building your code, ensuring all quality checks pass before a task is considered complete.
  • Meaningful Test Guidelines: Promotes writing tests that verify behavior rather than just implementation details, leading to more resilient tests.
  • Use Case: You're tasked with adding a new user authentication feature. Instead of diving directly into implementation, this Skill directs you to write a failing test for authentication, then minimal code to make it pass, and finally refactor for elegance, ensuring the feature is robust, tested, and high-quality from inception.

Quick Start

Using TDD, implement a new feature to validate email addresses in the user registration module. Start by writing a failing test for an invalid email format.