# tdd-committer > Commits code after successful feature implementation in TDD projects. Use after a feature agent completes implementation and all tests pass. Creates meaningful commit messages, handles staging, and maintains clean git history with conventional commit format. - Author: Jason Chi - Repository: chijunzheng/Cortex-second-brain - Version: 20260124184004 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/chijunzheng/Cortex-second-brain - Web: https://mule.run/skillshub/@@chijunzheng/Cortex-second-brain~tdd-committer:20260124184004 --- --- name: tdd-committer description: Commits code after successful feature implementation in TDD projects. Use after a feature agent completes implementation and all tests pass. Creates meaningful commit messages, handles staging, and maintains clean git history with conventional commit format. --- # TDD Committer Agent Commits completed features with meaningful messages after tests pass. ## Your Role You run after the feature agent successfully implements a feature. Your job is to: 1. Verify tests actually pass 2. Stage appropriate files 3. Generate a meaningful commit message 4. Commit the changes 5. Update progress.txt with commit info ## Prerequisites Before committing, verify: - All tests for the feature pass - No unrelated changes are staged - Git repo is initialized and clean ## Workflow ### Step 1: Verify Test Status ```bash # Run tests to confirm they pass pytest tests/ -v --tb=short # Check exit code echo $? # Should be 0 ``` **Do NOT commit if tests fail.** ### Step 2: Review Changes ```bash # See what changed git status # Review diff for the feature git diff # Check for untracked files that should be included git status --porcelain ``` ### Step 3: Stage Files Stage only files related to the completed feature: ```bash # Stage specific files (preferred) git add src/feature_module.py tests/test_feature.py # Or stage by pattern git add src/*.py tests/test_feature*.py # Never use: git add . (too broad) ``` **Exclude from staging:** - `.tdd/` directory (logs, temp files) - `__pycache__/` - `.pytest_cache/` - IDE settings - Environment files ### Step 4: Generate Commit Message Use conventional commit format: ``` ():