Configure and use Aider AI pair programming tool with customizable model settings, git integration, linting, testing, and voice capabilities for collaborative coding.
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.
This skill helps you configure and use Aider, an AI pair programming tool that works with your local git repository. Aider supports multiple LLM models, automatic git commits, linting, testing, and various customization options.
Configures Aider with optimal settings for your development workflow, including:
When setting up Aider for a user:
1. Ask about their primary use case:
- Which LLM provider they prefer (OpenAI, Anthropic, DeepSeek, etc.)
- Whether they want automatic commits enabled
- If they have existing lint/test commands to integrate
2. Create a `.aider.conf.yml` file in the git repository root with appropriate settings.
3. If API keys are needed, remind them to either:
- Add keys to `.aider.conf.yml` (OpenAI/Anthropic only)
- Create a `.env` file for other providers
**For model selection:**
**Example configurations:**
```yaml
model: claude-3-5-sonnet-20241022
model: gpt-4o-2024-08-06
openai-api-base: https://custom-endpoint.com
model: claude-3-5-sonnet-20241022
weak-model: gpt-4o-mini
editor-model: gpt-4o-2024-08-06
```
**Recommended settings:**
```yaml
auto-commits: true
dirty-commits: true
attribute-author: true
attribute-committer: true
gitignore: true
```
**For stricter workflows:**
```yaml
auto-commits: false
show-diffs: true
commit-prompt: "Write a conventional commit message following our team's style guide"
```
**Setup automated quality checks:**
```yaml
auto-lint: true
lint-cmd:
- "python: ruff check --fix"
- "javascript: eslint --fix"
- "typescript: eslint --fix"
auto-test: true
test-cmd: "npm test"
```
**For manual control:**
```yaml
auto-lint: false
auto-test: false
```
Control how Aider understands your codebase:
```yaml
map-tokens: 2048
map-refresh: auto # Options: auto, always, files, manual
map-multiplier-no-files: 3
```
```yaml
dark-mode: true
stream: true
user-input-color: "#00cc00"
assistant-output-color: "#0088ff"
tool-error-color: "#FF2222"
code-theme: monokai # Options: default, monokai, solarized-dark, solarized-light
```
```yaml
voice-format: wav # Options: wav, webm, mp3 (webm/mp3 require ffmpeg)
voice-language: en # ISO 639-1 code
```
**Cache settings for faster responses:**
```yaml
cache-prompts: true
cache-keepalive-pings: 6 # Ping every 5min, 6 times = 30min
```
**Subtree-only mode for monorepos:**
```yaml
subtree-only: true
```
**Custom ignore patterns:**
Create `.aiderignore` file with patterns to exclude from Aider's context.
**Minimal configuration (use defaults):**
```yaml
model: claude-3-5-sonnet-20241022
auto-commits: true
```
**Full-featured development:**
```yaml
model: claude-3-5-sonnet-20241022
weak-model: gpt-4o-mini
dark-mode: true
auto-commits: true
auto-lint: true
lint-cmd:
- "python: ruff check --fix"
auto-test: false
test-cmd: "pytest"
map-tokens: 2048
cache-prompts: true
```
**Team collaboration (conservative):**
```yaml
model: gpt-4o-2024-08-06
auto-commits: false
show-diffs: true
auto-lint: true
lint-cmd:
- "python: black . && ruff check"
- "typescript: prettier --write . && eslint --fix"
attribute-commit-message-author: true
```
1. **Start Aider with configuration:**
```bash
aider
```
2. **Override config for single session:**
```bash
aider --model gpt-4o --no-auto-commits
```
3. **Lint and fix files:**
```bash
aider --lint file1.py file2.py
```
4. **Run tests and fix issues:**
```bash
aider --test
```
5. **Commit with message and exit:**
```bash
aider --commit
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/aider-configuration-sj7czy/raw