Cha Fix — Testing skill for Claude Code
Write the failing test first, then the smallest fix that turns it green.
How to install Cha Fix
Installs to ~/.claude/skills/jysvai-cha-cha-fix/SKILL.md
mkdir -p ~/.claude/skills/jysvai-cha-cha-fix && curl -fsSL https://raw.githubusercontent.com/jysvai/CHA/HEAD/commands/cha-fix.md -o ~/.claude/skills/jysvai-cha-cha-fix/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Cha Fix does
description: Write the failing test first, then the smallest fix that turns it green. One writer, one defect, one commit.
/cha-fix ``
Fix one adjudicated defect. Nothing here starts until a claim has a **true** verdict with a command and an output behind it.
The order is not negotiable
**1. Red test first.**
Write a test that fails *for the reason you are about to fix*, and run it, and watch it fail. Copy the failure output into the record.
A test written after the
Alternatives in Testing
- TDD Diagnostics.V1 — Follow strict TDD stages 272 ★
- Green — Execute TDD Green Phase - write minimal implementation to pass the failing test 168 ★
- Plan Phase — Architecture-first planning for a specific spec phase 56 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Root Cause Fix
Root-cause-first TDD loop for any bug or data fix. Forces a failing reproduction test BEFORE touching producti
TDD With Refactoring Diagnostics.V1
Follow strict TDD stages. Do not skip stages. Stage 1 - Red: update only test code and write the smallest fail
TDD With Refactoring.V1
Follow strict TDD stages. Do not skip stages. Stage 1 - Red: update only test code and write the smallest fail
TDD Lock
TEST-LOCK — commit the red tests, then make them mechanically read-only while implementing to green (the stron
Code Quality Fix
Refactor code to meet quality standards (smallest safe diff), then typecheck + test
Spec Fix
Lightweight fix flow — triage a defect against specs/, then one implementer pass through the same external gat
Related Agents
Duel Fix Builder
Use when one established cause of a defect has a failing repro test and needs the smallest fix that makes that
Cdebug Fix
Leaf fix-implementation agent for /cdebug. Given a failing repro test and a root-cause analysis (both produced
Waves Implementer
Implements one task of one waves plan inside an existing worktree — failing test first, gate green, one commit