Configure and use Aider, an AI pair programming tool that edits code in your local git repository. Supports multiple AI models including Claude Sonnet 4, with customizable colors and conventions.
Configure and use Aider as your AI pair programming assistant. This skill helps you set up Aider with optimal settings including dark mode, multiple AI provider support, custom color schemes, and convention enforcement.
Aider is a command-line tool that lets you pair program with AI to edit code in your local git repository. This configuration:
1. **Install Aider** (if not already installed):
```bash
pip install aider-chat
```
2. **Create the configuration file** at `~/.aider.conf.yml`:
```yaml
dark-mode: true
model: openrouter/anthropic/claude-sonnet-4
api-key:
- anthropic=YOUR_ANTHROPIC_KEY
- deepseek=YOUR_DEEPSEEK_KEY
- gemini=YOUR_GEMINI_KEY
- openai=YOUR_OPENAI_KEY
- openrouter=YOUR_OPENROUTER_KEY
read: [".ai/CONVENTIONS.md"]
user-input-color: "#83C092"
tool-output-color: "#D3C6AA"
tool-error-color: "#E67E80"
tool-warning-color: "#DBBC7F"
assistant-output-color: "#7FBBB3"
completion-menu-color: "#9DA9A0"
completion-menu-bg-color: "#2E383C"
completion-menu-current-color: "#D3C6AA"
completion-menu-current-bg-color: "#493B40"
code-theme: coffee
```
3. **Create conventions file** at `.ai/CONVENTIONS.md` in your project root to define coding standards, architecture patterns, and project-specific guidelines that Aider should follow.
4. **Set API keys** as environment variables or replace placeholders in the config file.
Start Aider in your git repository:
```bash
aider
```
Add files to edit:
```bash
aider src/main.py tests/test_main.py
```
Use specific model:
```bash
aider --model openrouter/anthropic/claude-sonnet-4
```
The configuration uses an Everforest-inspired theme:
1. **Always work in a git repository** - Aider requires git for tracking changes
2. **Commit frequently** - Use `/commit` to save good states
3. **Define conventions** - Create `.ai/CONVENTIONS.md` with:
- Coding style guidelines
- Architecture patterns
- Testing requirements
- Documentation standards
4. **Add relevant files only** - Include only files you want to modify
5. **Use `/undo` liberally** - Don't hesitate to undo and try again
6. **Review diffs before committing** - Use `/diff` to check changes
Change the model in your config or via command line:
```bash
aider --model anthropic/claude-sonnet-4-5
aider --model openai/gpt-4
aider --model deepseek/deepseek-coder
```
Add reference files without allowing edits:
```bash
aider --read README.md --read docs/architecture.md
```
Enable automatic commits:
```yaml
auto-commits: true
```
1. Start Aider: `aider src/api.py`
2. Request change: "Add rate limiting to the API endpoint"
3. Review diff: `/diff`
4. If good, commit: `/commit`
5. If not, undo: `/undo`
6. Add tests: `/add tests/test_api.py`
7. Request: "Add tests for rate limiting"
8. Commit all: `/commit`
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-gt6nay/raw