con un clic
test
Full TDD red-green-refactor cycle with automatic framework detection
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Full TDD red-green-refactor cycle with automatic framework detection
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
MECE decompose a research question, run parallel Codex web-research agents via tmux, iteratively deepen via DAG, synthesize findings
Decompose a research question into MECE domains and run parallel Claude agents via tmux
Split implementation tasks into independent workstreams running as parallel agents in git worktrees
Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
Guided learning through Socratic questioning - teaches through discovery, not answers
Extract coding patterns and preferences from session transcripts for CLAUDE.md
| name | test |
| description | Full TDD red-green-refactor cycle with automatic framework detection |
| disable-model-invocation | true |
| allowed-tools | Read, Write, Edit, Bash, Glob, Grep |
| argument-hint | [task description] |
Run a complete test-driven development cycle for the given task. Four phases: Discovery, Red, Green, Refactor, then final Verification.
A description of the feature or behavior to implement via TDD.
Detect the test framework by checking config files:
pyproject.toml, setup.cfg, pytest.ini for Python (pytest, unittest)package.json for JS/TS (jest, vitest, mocha)Cargo.toml for Rustgo.mod for GoIdentify the test command (e.g., pytest, npm test, cargo test)
Read 2-3 existing test files to learn project conventions:
test_*.py, *.test.ts, etc.)tests/, __tests__/, co-located)Confirm scope with the user before proceeding:
Write comprehensive tests covering:
Conventions to follow:
Run the tests:
source venv/bin/activate && [test command] [test file]
All tests MUST fail. If any test passes, it is not testing new behavior -- fix or remove it. A passing test in the RED phase means the test is not validating anything new.
Implement the minimum code to make each test pass:
if __name__ == '__main__' blocks with hardcoded example inputs
(no argparse)uv pip install for any new packages (never bare pip)source venv/bin/activate before running anythingAfter each implementation change, run the tests:
source venv/bin/activate && [test command] [test file]
If tests still fail, iterate. Maximum 10 attempts before stopping and reporting what is stuck. Do not loop infinitely.
With all tests passing, clean up:
After EACH refactor step, run the tests:
source venv/bin/activate && [test command] [test file]
If any test fails after a refactor, revert that specific change immediately. Refactoring must not change behavior.
Run the full test suite (not just new tests):
source venv/bin/activate && [test command]
Run the project linter if one is configured:
pyproject.toml for ruff/flake8/black configpackage.json for eslint/prettier scriptsReport final status:
## TDD Cycle Complete
Tests written: [count]
Tests passing: [count]
Implementation files: [list]
Linter status: [pass/fail/not configured]
### Test Coverage
- Happy path: [covered/not covered]
- Edge cases: [covered/not covered]
- Error cases: [covered/not covered]
- Integration: [covered/not covered]