Professional Aider setup with Claude Sonnet, caching, auto-testing, linting, and commit conventions for sandbox agent experimentation
A comprehensive Aider configuration optimized for AI-assisted development workflows with Claude Sonnet, automated testing, linting, and conventional commits.
This skill provides a production-ready `.aider.conf.yml` configuration file that:
First, create the required directory for Aider configuration files:
```bash
mkdir -p aider_configs
```
Create `.aider.conf.yml` in your project root with the following content:
```yaml
sonnet: true
cache-prompts: true
cache-keepalive-pings: 2
env-file: aider_configs/.env
git: true
gitignore: true
aiderignore: .aiderignore
auto-commits: false
commit: false
commit-prompt: 'Your mission is to create clean and comprehensive commit messages in the given conventional @commitlint convention and explain WHAT were the changes and WHY the changes were done. Add a short description of WHY the changes are done after the commit message. Dont start it with "This commit", just describe the changes.'
lint-cmd: rye run lint
auto-lint: true
test-cmd: rye run unittests
auto-test: true
read:
- aider_configs/CONVENTIONS.md
vim: true
code-theme: solarized-dark
encoding: utf-8
```
Create `aider_configs/.env` for API credentials:
```bash
ANTHROPIC_API_KEY=your_anthropic_key_here
```
Create `aider_configs/CONVENTIONS.md` with your project's coding conventions:
```markdown
[Add your project-specific conventions here]
```
Create `.aiderignore` in your project root to exclude files from Aider's context:
```
node_modules/
venv/
.venv/
dist/
build/
*.pyc
.env
*.key
*.pem
```
If you're not using Rye, update the commands in `.aider.conf.yml`:
```yaml
test-cmd: pytest
lint-cmd: npm run lint
test-cmd: npm test
```
Launch Aider in your project:
```bash
aider
```
The configuration will automatically:
**Prompt Caching**: Reduces API costs by caching system prompts and keeping them warm with periodic pings
**Auto-Testing**: Runs your test suite after every code change to catch regressions immediately
**Conventional Commits**: Generates detailed commit messages following conventional commit format
**Read-Only Context**: Loads `CONVENTIONS.md` into every chat for consistent code generation
**VI Mode**: Enables VI keybindings in the Aider terminal
**Dark Theme**: Uses solarized-dark syntax highlighting
```yaml
lint-cmd: poetry run ruff check
test-cmd: poetry run pytest
```
```yaml
lint-cmd: npm run lint
test-cmd: npm test
```
```yaml
lint-cmd: rubocop
test-cmd: bundle exec rspec
```
```yaml
lint-cmd: golangci-lint run
test-cmd: go test ./...
```
**"Model not found" error**: Ensure `ANTHROPIC_API_KEY` is set in `aider_configs/.env`
**Tests not running**: Verify your test command works standalone: `rye run unittests`
**Lint errors blocking commits**: Review and fix lint issues, or adjust `lint-cmd` to be less strict
**Cache not working**: Prompt caching requires Claude models; check your API key has access
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/aider-ai-coding-assistant-configuration-szm4ti/raw