Aider configuration enforcing Test-Commit-Revert (TCR) workflow with mandatory TCR script usage and protected system files
This skill configures Aider to enforce a strict Test-Commit-Revert (TCR) workflow. Direct git commits are disabled, requiring the use of a TCR script for all changes. Critical system files are protected as read-only.
When applying this configuration to an Aider-enabled repository:
1. **Disable Direct Git Commits**
- Set `auto-commits: false` to prevent automatic commits
- Set `dirty-commits: false` to disallow commits with uncommitted changes
- This forces all commits through the TCR script
2. **Configure Custom Commit Prompt**
- Replace Aider's default commit behavior with a warning message
- Direct users to use `./scripts/tcr.sh "your message"` instead
- Make it clear that direct git commits are forbidden
3. **Protect Critical Files (Read-Only)**
- `.git/**` - Git repository internals
- `scripts/tcr.sh` - The TCR script itself
- `scripts/revert-to-safe.sh` - Safety revert mechanism
- `scripts/verify-jail.sh` - Jail verification tool
- `scripts/setup-tcr-jail.sh` - TCR jail setup script
- `.claude/**` - Claude configuration
- `.opencode/**` - OpenCode configuration
- `.aider*` - Aider configuration files
- `.cursorrules` - Cursor rules
- `.cursorignore` - Cursor ignore patterns
4. **Create .aider.conf.yml**
```yaml
# Aider configuration - TCR JAIL ACTIVE
# Git settings - force TCR compliance
auto-commits: false
dirty-commits: false
# Aider must use TCR script
commit-prompt: |
STOP! You must use ./scripts/tcr.sh to commit.
Direct git commits are forbidden.
Run: ./scripts/tcr.sh "your message"
# Files Aider cannot edit
read-only:
- .git/**
- scripts/tcr.sh
- scripts/revert-to-safe.sh
- scripts/verify-jail.sh
- scripts/setup-tcr-jail.sh
- .claude/**
- .opencode/**
- .aider*
- .cursorrules
- .cursorignore
```
After applying this configuration:
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/tcr-jail-aider-configuration/raw