Preconfigured Aider AI coding assistant setup with optimized model routing, git integration, and automated linting/testing workflows
Production-ready Aider configuration based on mafrosis/dotfiles, optimized for professional development workflows with multiple AI models, git integration, and automated quality checks.
Sets up Aider with:
1. **Create `.aider.conf.yml` in project root** with the following settings:
```yaml
analytics-disable: true
check-update: false
vim: true
dark-mode: true
env-file: na # ignore .env to prevent credential leaks
alias:
- gemini:openrouter/google/gemini-2.5-pro-preview
- deepseek:openrouter/deepseek/deepseek-r1-0528:free
- claude:openrouter/anthropic/claude-sonnet-4
- devstral:openrouter/mistralai/devstral-small:free
editor-model: devstral
git: true
gitignore: false
auto-commits: true
attribute-commit-message-author: true
auto-lint: true
lint-cmd: make lint
auto-test: true
test-cmd: make test
```
2. **Create `.aider.conventions`** (optional, for project-specific coding standards):
- Aider automatically reads this file (via `read: [.aider.conventions]`)
- Add code style guidelines, architectural decisions, or review checklists
3. **Ensure Makefile has `lint` and `test` targets**:
```makefile
lint:
# Your linting command (e.g., eslint, ruff, flake8)
test:
# Your test command (e.g., pytest, jest, go test)
```
4. **Set OpenRouter API key**:
```bash
export OPENROUTER_API_KEY="your-key-here"
```
| Alias | Use Case | Cost |
|-------|----------|------|
| `gemini` | Complex refactoring, architecture design | Paid |
| `deepseek` | General coding tasks, exploratory work | Free |
| `claude` | Code review, documentation, nuanced tasks | Paid |
| `devstral` | Quick edits, file navigation (default) | Free |
Switch models during session:
```
/model gemini # Switch to Gemini for complex task
/model deepseek # Switch back to free tier
```
With this config, Aider will:
1. **Before committing**: Run `make lint` and fix issues
2. **After code changes**: Run `make test` automatically
3. **On success**: Create attributed git commit
4. **On failure**: Show errors and wait for fixes
```bash
aider
/model claude
Review the authentication logic in auth.py
/model gemini
Refactor user service to use dependency injection
/model devstral
Fix the typo in README.md
```
To adapt for your project:
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/aider-configuration-est140/raw