Configures Aider AI pair programmer with optimized settings for repo mapping, caching, linting, testing, and file management for efficient AI-assisted coding workflows.
This skill configures Aider, an AI pair programming tool, with optimized settings for efficient development workflows including intelligent repo mapping, prompt caching, automated linting, testing, and structured file management.
Sets up Aider with production-ready configuration for:
When this skill is invoked, create or update the `.aider.conf.yml` file in the project root with the following configuration:
Configure Claude Sonnet 3.5 as the main model:
```yaml
sonnet: true
architect: false
```
Enable prompt caching to reduce API costs and latency:
```yaml
cache-prompts: true
cache-keepalive-pings: 1
```
This keeps the prompt cache warm with periodic pings.
Configure enhanced repo mapping for better context:
```yaml
map-tokens: 2048
```
This provides double the default tokens for understanding codebase structure.
Disable streaming for cleaner output:
```yaml
stream: false
```
Configure controlled git behavior:
```yaml
auto-commits: false
```
This prevents automatic commits, giving you control over when changes are committed.
Set up Python linting with flake8:
```yaml
lint-cmd:
- "python: flake8 ."
auto-lint: false
```
Linting is available but not automatic, allowing you to run it when needed.
Configure pytest integration:
```yaml
test-cmd: .venv/bin/python -m pytest -v
auto-test: false
test: false
```
Tests can be run on demand but won't execute automatically after changes.
Structure your project with task tracking and prompt guidelines:
```yaml
file:
- tasks.md
read:
- .prompts/code-generation-guidelines.md
- .prompts/file-size-guidelines.md
- .prompts/mcp-server-conventions.md
- .prompts/repo-exploration-template.md
- .prompts/engineer-tasks.md
```
This configuration:
```yaml
yes-always: true
suggest-shell-commands: false
detect-urls: false
```
These settings:
```yaml
analytics-disable: true
check-update: true
```
Disables analytics while still checking for updates.
With this configuration file in place, simply run:
```bash
aider
```
Aider will automatically:
```bash
aider --lint
```
```bash
aider --test
```
Create a `.prompts/` directory with guideline files:
These files inform the AI but aren't modified during sessions.
The default edit format depends on the model. You can override with:
```yaml
edit-format: architect
```
Override models for specific tasks:
```yaml
weak-model: claude-3-haiku-20240307
editor-model: claude-3-5-sonnet-20241022
```
Adjust the `read` and `file` paths to match your project structure. The configuration shown is optimized for MCP server projects but can be adapted to any codebase.
The test command assumes a `.venv` virtual environment. Adjust the path if your setup differs:
```yaml
test-cmd: python -m pytest -v
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/aider-development-assistant-7e8o9e/raw