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
- Test Fixing — Detect failing tests and propose patches or fixes 475 ★
- TDD Diagnostics.V1 — Follow strict TDD stages 272 ★
- Test Driven Development.SKILL — Enforces TDD discipline with RED-GREEN-REFACTOR cycle 262 ★
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
Green
Execute TDD Green Phase - write minimal implementation to pass the failing test
Code Quality Fix
Refactor code to meet quality standards (smallest safe diff), then typecheck + test
Related Agents
Waves Implementer
Implements one task of one waves plan inside an existing worktree — failing test first, gate green, one commit
Test Maintainer
Fixes failing and flaky tests, and refactors a suite that has grown duplication. Finds the root cause instead
Meldom Worker
Implements a single meldom issue using TDD. Reads codebase, writes failing tests first, then minimal implement