From oh-my-colab
RED-GREEN-REFACTOR discipline. Write failing test first, minimum code to pass, then refactor. Enforces verifier check before claiming any task done. Triggers on keyword "tdd" or when BUILD workflow is active.
npx claudepluginhub iadr-dev/colab --plugin oh-my-colabThis skill is limited to using the following tools:
The loop: RED → GREEN → REFACTOR. Never skip a phase.
Mandates invoking relevant skills via tools before any response in coding sessions. Covers access, priorities, and adaptations for Claude Code, Copilot CLI, Gemini CLI.
Share bugs, ideas, or general feedback.
The loop: RED → GREEN → REFACTOR. Never skip a phase. Work in vertical slices: one behavior test, the minimum implementation, then the next behavior. Do not write all tests first and all implementation later.
Before any implementation code:
Do not write implementation until the test fails correctly. Avoid implementation-detail tests: private methods, internal call counts, and mocked internal collaborators. Mock only system boundaries.
Write the MINIMUM code needed to make the test pass. No optimization. No refactoring. No extra features. The ugliest correct code beats the prettiest incorrect code.
Run the test. Read the output. If it doesn't pass: fix implementation, not the test (unless test was wrong).
Improve the code. Rename. Extract. Simplify. After each change: run the tests. If they fail: revert the change. Refactor ends when: code is clean AND tests still pass.
Never move to the next task while tests are red.
After RED-GREEN-REFACTOR for each task: → Hand to verifier agent with exact test command → Verifier runs both tests AND static quality checks, reports pass/fail counts → Only proceed if: 0 failing tests, 0 skipped, 0 failing quality checks, success criterion met
# Tests
bash skills/test-driven-development/scripts/verify-tests-pass.sh
# Typecheck + lint (auto-detects TS, JS, Python, Go, Rust, Dart, Swift; skips missing tools)
bash skills/test-driven-development/scripts/verify-code-quality.sh
Writing implementation first: Resist. The test comes first, always. Tests that always pass: A test that never fails is not a test. Confirm RED first. "I'll add tests later": Post-implementation tests test the implementation, not the requirement. Horizontal slicing: Writing many tests before any implementation creates brittle imagined tests. Skipping refactor: Technical debt is immediate. Refactor now while context is fresh.
See references/red-green-refactor.md for detailed examples. See references/test-patterns.md for patterns by language. See references/behavior-first-testing.md for vertical slices, mocking, and interface design.