implement

Guide feature implementation and bug fixes through the Red-Green-Refactor cycle.

1|Updated Dec 12, 2024
One-click install
npx skills add https://github.com/Xantibody/dotfiles --skill implement-xantibody
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: implement
Source: https://github.com/Xantibody/dotfiles/tree/main/configs/claude/skills/implement
Command: npx skills add https://github.com/Xantibody/dotfiles --skill implement-xantibody

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the process of writing new code and fixing bugs by enforcing a structured development methodology, ensuring code quality and maintainability.

Core Features & Use Cases

  • Test-Driven Development (TDD): Guides users through the Red-Green-Refactor cycle.
  • Tidy First Principles: Separates structural and behavioral code changes.
  • Use Case: When a user requests a new feature, this skill helps implement it by writing tests first, then the minimal code to pass, followed by refactoring.

Quick Start

Use the implement skill to write a failing test for a new feature.

Frequently Asked Questions about implement

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

FAQPage Schema
How do I implement a new feature using Test-Driven Development?

To implement a feature using Test-Driven Development, write a failing test first, then create the minimal code required to pass it, and finally refactor the structure. This enforces the Red-Green-Refactor cycle for robust software progression from 0-1-N cases.

What is the best way to separate structural and behavioral code changes during refactoring?

Separating structural and behavioral code changes during refactoring is achieved through Tidy First principles. This approach isolates internal code structure modifications from external feature behavior, ensuring maintainability without altering functional outcomes.

How do I fix bugs using API-level and problem-specific tests?

To fix bugs using API-level and problem-specific tests, write a test that reproduces the specific defect at the API boundary. Once the failing test confirms the bug, implement the minimal code resolution to make it pass.

When should I use the Red-Green-Refactor cycle for bug fixing?

Use the Red-Green-Refactor cycle for bug fixing when you need to ensure code quality and prevent regressions. By writing a failing test that captures the defect before applying code changes, you verify the exact problem and secure the fix against future breaks.

How do I progress feature implementation from 0 to 1 to N cases?

Feature implementation progression from 0-1-N cases starts by writing a test for the simplest zero-case, then the primary single-case, and incrementally adding edge-case tests. This structured progression ensures robust software development through incremental validation.