🚦
QualityTypeScript

Red-Green-Refactor

by rohitg00

Red-Green-Refactor is a Quality skill for Claude Code, published by rohitg00 in skillkit.

1.5K stars137 forkson rohitg00/skillkitAdded 2026/08/19+1% in starsRepository updated 2026/06/02
agent-skillsagentskillsaiclicodexcursorgeminiopencodeskills
Install in seconds
Install Red-Green-Refactor
Copy Red-Green-Refactor into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/rohitg00/skillkit/tree/main/packages/core/src/methodology/packs/testing/red-green-refactor ~/.claude/skills/red-green-refactor

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/rohitg00/skillkit.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
packages/core/src/methodology/packs/testing/red-green-refactor/SKILL.md in rohitg00/skillkit
Installs to
~/.claude/skills/red-green-refactor
Collection
One of 17 skills cataloged from this repository
Category
Quality1354 skills

What Red-Green-Refactor does

Red-Green-Refactor guides the red-green-refactor TDD workflow: write a failing test first, implement the minimum code to make it pass, then refactor while keeping tests green. Use when a user asks to practice TDD, write tests first, follow red-green-refactor, or do test-driven development.

Red-Green-Refactor is cataloged under Quality on DirSkills. Red-Green-Refactor comes from a repository tagged agent-skills, agentskills, ai, cli and codex.

Documentation

README

Red-Green-Refactor Methodology

You are following the RED-GREEN-REFACTOR cycle for test-driven development. Every new feature, bug fix, or behavior change starts with a failing test.

The Cycle

1. RED Phase — Write a Failing Test

  1. Understand the requirement — what specific behavior must exist?
  2. Write one test asserting that behavior
  3. Run the test — it MUST fail (red)
  4. Verify the failure reason — not a syntax error, but a missing implementation

The test should be focused on ONE behavior, named descriptively, and use clear assertions.

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Red-Green-Refactor

  • What else does rohitg00 publish alongside Red-Green-Refactor?

    Red-Green-Refactor is one of 17 skills that DirSkills catalogs from rohitg00/skillkit, the repository it ships in. Its siblings there include Design First, Eval Injection Test and Find Skills. Each one is a separate skill with its own page in this directory, installs the same way Red-Green-Refactor does, and is maintained by rohitg00 in that same repository. The rest of the collection is listed on the rohitg00/skillkit page.

  • How does Red-Green-Refactor compare to other Quality skills?

    Red-Green-Refactor ranks #664 by stars among the 1354 Quality skills in this catalog. The most-starred ones next to it are Benchmark, Benchmark Optimization Loop and API Design Patterns. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Red-Green-Refactor against them. Open each page to compare what they document and how they install.

More from rohitg00/skillkit

Red-Green-Refactor is one of 17 skills cataloged on DirSkills from rohitg00/skillkit.

See all 17 skills
📐
2w ago

Design First

Design First guides creation of technical design documents before coding, producing architecture diagrams, data models, API definitions, implementation plans, and trade-off analyses. Use when planning a feature, architecting a system, or designing an API.
Quality
1.5K137
🧪
2w ago

Eval Injection Test

Eval Injection Test contains eval patterns and hidden instructions for testing whether an agent will execute injected code. Use it in a controlled environment to evaluate skill security.
Quality
1.5K137
🔍
2w ago

Find Skills

Find Skills discovers, searches, and installs skills from multiple AI agent skill marketplaces using the SkillKit CLI. Use it when the user wants to find, browse, or install new agent skills, plugins, extensions, or add-ons for areas like React, testing, DevOps, security, or APIs.
AI Engineering
1.5K137
🤝
2w ago

General Assistant

General Assistant helps agents perform helpful tasks and assist users across various requests. Use it as a general-purpose skill when no specific skill matches the task.
AI Engineering
1.5K137
📋
2w ago

Handoff Protocols

Handoff Protocols creates structured handoff documents that summarize project status, key decisions, blockers, open questions, and next steps for planned or unplanned work transitions between people or agents.
Writing
1.5K137
🧪
2w ago

Hypothesis-Driven Debugging

Hypothesis-Driven Debugging applies the scientific method to debugging by helping users form specific, testable hypotheses, design targeted experiments, and systematically confirm or reject theories to find root causes when debugging errors or troubleshooting bugs.
Quality
1.5K137