← ClaudeAtlas

tcrlisted

Implements the TCR (Test && Commit || Revert) methodology for ultra-short, safe commits during refactoring and development. Use this skill whenever the user wants to apply TCR, make atomic commits after each green test, commit frequently during refactoring, or follow a test-driven commit workflow. Also trigger when the user mentions "TCR", "test and commit", "commit after each test", "atomic commits", "micro commits", "revert on red", or asks for a disciplined commit cadence during code changes. También se activa en castellano: "test y commit", "commitear tras cada test", "commits atómicos", "micro commits", "revertir en rojo", "commits pequeños", "flujo TCR", "metodología TCR", "test verde y commit".
andresnator/agents-orchestrator · ★ 0 · AI & Automation · score 64
Install: claude install-skill andresnator/agents-orchestrator
# TCR Commit Skill **TCR = Test && Commit || Revert** The core loop is simple: run the tests. If they pass, commit immediately. If they fail, revert the change. This forces small, safe steps and makes every commit a known-good state. ## The TCR Loop ``` 1. Make a small change (test or production code) 2. Run the relevant tests 3. GREEN? → git add <specific-files> + git commit (Conventional Commit message) 4. RED? → git checkout -- <changed-files> (revert to last green state) ``` The discipline is in the **size of the step**. If reverting feels painful, the step was too big. ## Commit Format Use Conventional Commits with the repository's branch/ticket prefix when present: `BRANCH-ID <type>: brief description`. Do **not** hardcode `Co-Authored-By` trailers. If the maintainer explicitly requires a non-AI co-author trailer, derive the identity from the user's global Git configuration instead of inventing it: ```bash git config --global user.name git config --global user.email ``` Only add a trailer when both values are configured and the repository policy allows it: ```text Co-Authored-By: <git config --global user.name> <<git config --global user.email>> ``` Never add AI attribution trailers. Types by TCR context: | Context | Type | Example | |---------|------|---------| | New test (characterization or unit) | `test` | `COMPANY-1234 test: add characterization test for calculateTotal` | | Test passes after refactor step | `refactor` | `COMPANY-1234 refactor: extra