Configure Aider AI coding assistant with comprehensive settings for model selection, git integration, code editing, and workflow automation. Based on ProxySQL's production configuration.
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.
Configure Aider AI coding assistant with production-grade settings inspired by the ProxySQL project (high-performance MySQL proxy). This skill covers model selection, git integration, code editing formats, repository mapping, and automated workflows.
Sets up comprehensive Aider configuration covering:
Create `.aider.conf.yml` in your project root or home directory with the essential settings:
```yaml
model: anthropic/claude-3-7-sonnet-20250219 # Latest Sonnet
editor-model: claude-3-5-haiku-20241022
map-tokens: 2048 # Increase for larger projects
map-refresh: auto # Options: auto, always, files, manual
auto-commits: true
dirty-commits: true
attribute-author: true
attribute-committer: true
dark-mode: true # or light-mode: true
stream: true
pretty: true
load: ./AGENT.md
```
**Option A: Environment variables (recommended)**
Create `.env` in your git root:
```bash
ANTHROPIC_API_KEY=sk-ant-...
OPENAI_API_KEY=sk-...
DEEPSEEK_API_KEY=...
```
**Option B: YAML config (OpenAI/Anthropic only)**
Add to `.aider.conf.yml`:
```yaml
set-env:
- ANTHROPIC_API_KEY=sk-ant-...
- OPENAI_API_KEY=sk-...
```
Configure how Aider attributes its changes:
```yaml
attribute-author: true
attribute-committer: true
attribute-co-authored-by: true
attribute-commit-message-author: true # "aider: Fix bug in parser"
```
**Linting:**
```yaml
auto-lint: true
lint-cmd:
- "python: ruff check --fix"
- "javascript: eslint --fix"
- "typescript: eslint --fix"
- "go: golangci-lint run"
```
**Testing:**
```yaml
auto-test: true
test-cmd: "pytest tests/" # or "npm test", "go test ./..."
```
For projects like ProxySQL with many files:
```yaml
map-tokens: 4096
map-multiplier-no-files: 3
max-chat-history-tokens: 8192
cache-prompts: true
cache-keepalive-pings: 2 # Keep cache warm for 10 minutes
```
```yaml
dark-mode: true
user-input-color: "#00cc00"
assistant-output-color: "#0088ff"
tool-error-color: "#FF2222"
tool-warning-color: "#FFA500"
code-theme: monokai # or solarized-dark, default
```
```yaml
input-history-file: .aider.input.history
chat-history-file: .aider.chat.history.md
restore-chat-history: true # Resume previous sessions
llm-history-file: .aider.llm.history # Debug LLM interactions
```
For working on specific subdirectories:
```yaml
subtree-only: true
```
Then launch Aider from the subdirectory you want to focus on.
Create `.aiderignore` in your git root:
```
*.pyc
__pycache__/
node_modules/
dist/
build/
.env
secrets.yml
*.key
```
For switching between models easily:
```yaml
alias:
- "fast: claude-3-5-haiku-20241022"
- "smart: anthropic/claude-3-7-sonnet-20250219"
- "cheap: deepseek/deepseek-chat"
```
Then use: `aider --model fast`
**Basic usage with configuration:**
```bash
aider
aider --model gpt-4o
aider --message "Add type hints to user.py" --yes-always
aider --commit
```
**Workflow patterns:**
```bash
aider --lint
aider --test
aider --architect src/core/parser.py
```
**Voice coding:**
```bash
aider --voice-format webm --voice-language en
```
Based on ProxySQL's `.aider.conf.yml` (GPL-licensed MySQL proxy). Configuration documentation: https://aider.chat/docs/config/options.html
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/aider-proxysql-configuration/raw