Configure and use Aider, an AI pair programming tool that works directly in your terminal to help write, edit, and refactor code with AI assistance.
This skill has safety concerns that you should review before use. Some patterns were detected that may pose a risk.Safety score: 60/100.
KillerSkills scans all public content for safety. Use caution before installing or executing flagged content.
Aider is an AI pair programming tool that runs in your terminal and helps you write, edit, and refactor code using AI models from OpenAI and Anthropic.
This skill helps you configure and use Aider effectively for AI-assisted coding. Aider can:
Aider can be configured via `.aider.conf.yml` file placed in your home directory or at the root of your git repository.
**API Keys:**
**Model Selection:**
**Model Settings:**
**History & Output:**
**Git Integration:**
**Testing & Linting:**
**File Management:**
1. **Initial Setup:**
- Create `.aider.conf.yml` in your home directory or project root
- Add your API keys (OpenAI or Anthropic)
- Select your preferred model
- Configure git, linting, and testing options
2. **Starting Aider:**
- Run `aider` in your terminal from within a git repository
- Specify files to work on: `aider file1.py file2.py`
- Or let Aider help you identify relevant files
3. **Working with Aider:**
- Describe changes you want in natural language
- Aider will propose edits and show diffs
- Changes are automatically committed with AI-generated messages
- Use `/help` within Aider for available commands
4. **Advanced Usage:**
- Use `--message` to send a single message and exit
- Use `--commit` to generate commit message for pending changes
- Use `--test` to run tests and fix problems
- Use `--lint` to lint and fix code issues
5. **Best Practices:**
- Start with specific, well-defined tasks
- Review all changes before accepting
- Enable auto-linting to maintain code quality
- Use appropriate models: Claude-3.5-Sonnet for complex tasks, GPT-3.5-Turbo for simpler edits
- Keep chat history to maintain context across sessions
**Minimal Setup:**
```yaml
anthropic-api-key: your-key-here
model: claude-3-5-sonnet-20240620
dark-mode: true
```
**Full Development Setup:**
```yaml
anthropic-api-key: your-key-here
model: claude-3-5-sonnet-20240620
weak-model: gpt-3.5-turbo
dark-mode: true
auto-commits: true
auto-lint: true
lint-cmd:
python: flake8 --select=E,W,F
javascript: eslint
test-cmd: pytest
restore-chat-history: true
map-tokens: 2048
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/aider-ai-pair-programming-3gwqm3/raw