Configure and use Aider, an AI pair programming tool that works with your local git repository. Supports multiple LLM providers with caching and optimized settings.
This skill enables you to work with Aider, an AI pair programming tool that integrates with your local git repository to help write, refactor, and understand code.
Aider is a command-line tool that allows AI models to edit code in your local git repository. It can:
The skill sets up Aider with optimized settings:
1. **Starting Aider**
- Navigate to your git repository
- Run: `aider` (uses default model)
- Or specify a model: `aider --model lazer-sonnet`
2. **Adding Files to Context**
- `/add <file>` - Add file to editing context
- `/add *.py` - Add multiple files with glob patterns
- `/drop <file>` - Remove file from context
3. **Making Changes**
- Simply describe what you want in natural language
- Aider will propose changes and ask for confirmation
- Changes are automatically committed to git
4. **Switching Models**
- `/model lazer-haiku` - Switch to faster, cheaper model
- `/model lazer-sonnet` - Switch to most capable model
5. **Common Commands**
- `/help` - Show all available commands
- `/undo` - Undo last change
- `/diff` - Show pending changes
- `/commit` - Manually commit changes
- `/clear` - Clear chat history
- `/exit` or `/quit` - Exit Aider
1. **Start Small**: Add only the files you need to modify
2. **Be Specific**: Clear, detailed requests get better results
3. **Review Changes**: Always review proposed changes before accepting
4. **Choose Right Model**:
- Use `lazer-sonnet` for complex refactoring
- Use `lazer-haiku` for simple edits and questions
5. **Keep Cache Warm**: The cache settings optimize for multi-turn conversations
**Refactor a function:**
```
aider --model lazer-sonnet
/add src/utils.py
Refactor the calculateTotal function to be more readable and add error handling
```
**Fix a bug:**
```
aider --model lazer-haiku
/add src/auth.py
Fix the bug where users can't log in with email addresses containing plus signs
```
**Add a feature:**
```
aider --model lazer-sonnet
/add src/api/*.py
Add rate limiting to all API endpoints using a decorator pattern
```
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-j28dar/raw