Complete Aider configuration template with model settings, git integration, output customization, and workflow automation. Covers all Aider CLI options for optimal AI pair programming.
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.
A comprehensive configuration template for Aider, the AI pair programming tool. This skill provides a complete `.aider.conf.yml` file covering all configuration options including model selection, git integration, output styling, and automation workflows.
Provides a production-ready Aider configuration that:
Create `.aider.conf.yml` in your home directory or git repository root with the following template:
```yaml
##########################################################
##########################################################
#######
#model: claude-3-5-sonnet-20240620
#anthropic-api-key: xxx
#openai-api-key: xxx
#################
#map-tokens: 1024
#map-refresh: auto
#cache-prompts: false
#max-chat-history-tokens: xxx
################
#input-history-file: .aider.input.history
#chat-history-file: .aider.chat.history.md
#restore-chat-history: false
##################
dark-mode: true
pretty: true
stream: true
user-input-color: "#A6E3A1"
tool-output-color: "#89B4FA"
tool-error-color: "#F38BA8"
tool-warning-color: "#F9E2AF"
assistant-output-color: "#94E2D5"
code-theme: monokai
###############
#git: true
#gitignore: true
#auto-commits: true
#dirty-commits: true
#attribute-author: true
#attribute-committer: true
#show-diffs: false
########################
#auto-lint: true
#lint-cmd:
#auto-test: false
#test-cmd: pytest
#################
vim: true
#check-update: true
#verbose: false
#suggest-shell-commands: true
```
**For Dark Terminal Users:**
**For Light Terminal Users:**
**For Python Projects:**
```yaml
lint-cmd:
- "python: black ."
- "python: flake8 --select=E,W,F"
auto-lint: true
test-cmd: pytest
auto-test: true
```
**For JavaScript/TypeScript Projects:**
```yaml
lint-cmd:
- "javascript: eslint --fix ."
- "typescript: eslint --fix ."
auto-lint: true
test-cmd: npm test
```
**Option A: In Configuration File** (OpenAI/Anthropic only)
```yaml
anthropic-api-key: sk-ant-xxxxx
openai-api-key: sk-xxxxx
```
**Option B: In .env File** (Recommended for all APIs)
```bash
ANTHROPIC_API_KEY=sk-ant-xxxxx
OPENAI_API_KEY=sk-xxxxx
DEEPSEEK_API_KEY=xxxxx
```
**Use Latest Claude:**
```yaml
model: claude-3-5-sonnet-20240620
weak-model: claude-3-haiku-20240307
```
**Use GPT-4:**
```yaml
model: gpt-4o-2024-08-06
weak-model: gpt-4o-mini
```
**Use DeepSeek:**
```yaml
model: deepseek/deepseek-coder
```
**Full Attribution:**
```yaml
attribute-author: true
attribute-committer: true
attribute-commit-message-committer: true
```
**Custom Commit Prompts:**
```yaml
commit-prompt: |
Write a concise commit message following conventional commits format.
Use prefixes: feat:, fix:, docs:, refactor:, test:, chore:
```
**Prompt Caching** (reduces API costs):
```yaml
cache-prompts: true
cache-keepalive-pings: 3
```
**Restore Chat History** (across sessions):
```yaml
restore-chat-history: true
```
**LLM Conversation Logging** (for debugging):
```yaml
llm-history-file: .aider.llm.history
```
```bash
aider file.py
```
```bash
aider --model gpt-4o file.py
aider --no-auto-commits file.py
```
```bash
aider --lint file.py
```
```bash
aider --auto-test --test-cmd "pytest -v" file.py
```
```bash
aider --message "Add type hints to all functions" file.py
```
1. Git repository root (project-specific)
2. Home directory `~/.aider.conf.yml` (global)
```yaml
file:
- src/main.py
- src/utils.py
lint-cmd:
- "python: flake8"
- "python: mypy"
```
1. **Colors not working**: Ensure quotes around hex values
2. **API key not found**: Check `.env` file is in git root, not subfolder
3. **Lint command failing**: Test lint command manually first
4. **Git attribution not showing**: Verify `attribute-*` flags are `true`
5. **Model not found**: Run `aider --list-models <partial-name>` to check availability
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/aider-ai-coding-configuration-z8hxxz/raw