Configure and run Aider, an AI pair programming tool that edits code directly in your repository. Supports multiple LLM models, auto-commits, linting, testing, and collaborative coding workflows.
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.
An AI pair programming tool that helps you write, edit, and refactor code directly in your repository with intelligent context awareness and automated git workflows.
Aider connects to AI models (Claude, GPT-4, etc.) to collaboratively edit your codebase. It automatically:
Aider uses `.aider.conf.yml` in your git repository root or home directory. The configuration provided is optimized for:
Before using Aider, ensure:
- `ANTHROPIC_API_KEY` for Claude models
- `OPENAI_API_KEY` for GPT models
Launch Aider with specific files to edit:
```bash
aider src/main.py src/utils.py
```
Or let Aider discover files in the repository:
```bash
aider
```
Once in Aider's interactive mode:
**Simple edits:**
```
Add error handling to the parse_config function
```
**Multi-file changes:**
```
Refactor authentication logic from auth.py into a new AuthService class in services/auth_service.py
```
**Read-only context:**
```bash
aider --read docs/api.md src/main.py
```
This includes `docs/api.md` for context without allowing edits.
**Auto-lint after changes** (already enabled in config):
```bash
aider --lint-cmd "python: flake8 --select=E,W" --lint-cmd "javascript: eslint"
```
**Run tests automatically:**
```yaml
test-cmd: "dotnet test"
auto-test: true
```
**Manual lint and fix:**
```bash
aider --lint
```
**Auto-commits** (enabled by default):
**Manual commit all pending changes:**
```bash
aider --commit
```
**Customize commit message style:**
```yaml
commit-prompt: "Write a conventional commit message with type (feat/fix/refactor) and scope"
attribute-commit-message-author: true # Prefix: "aider: "
```
**Review changes before commit:**
```yaml
show-diffs: true
auto-commits: false
```
**Dry run (no file modifications):**
```bash
aider --dry-run
```
**Single message mode** (no interactive chat):
```bash
aider --message "Add input validation to all API endpoints" src/api/
```
**View repository map:**
```bash
aider --show-repo-map
```
**Enable repo map for better context** (modify config):
```yaml
map-tokens: 2048 # Use 2048 tokens for repo map
map-refresh: auto
```
**Change edit format** (architecture/ask modes):
```yaml
edit-format: architect # or ask, diff, whole, etc.
```
**Switch models on-the-fly:**
```bash
aider --opus # Claude Opus
aider --4o # GPT-4o
aider --model deepseek/deepseek-coder
```
**Custom model settings:**
Create `.aider.model.settings.yml` for unknown models:
```yaml
edit_format: diff
weak_model: gpt-3.5-turbo
```
```bash
aider --voice-language en
```
Enables voice input in English (requires microwave setup).
**Restore previous session:**
```yaml
restore-chat-history: true
```
**Clear history files:**
```bash
rm .aider.input.history .aider.chat.history.md
```
**Log LLM conversations:**
```yaml
llm-history-file: .aider.llm.history
```
**Feature development:**
```bash
aider src/features/new_feature.py
```
**Bug fixing with tests:**
```bash
aider --test-cmd "pytest tests/" src/auth.py tests/test_auth.py
```
**Refactoring with linting:**
```bash
aider --lint src/legacy/
```
**Code review mode** (read-only):
```bash
aider --read src/main.py
```
**"No git repository found":**
```bash
git init
```
**"Model not found" errors:**
Check API keys in `.env` and verify model name spelling.
**Slow responses:**
Disable repo map: `map-tokens: 0` and `map-refresh: manual`
**Unwanted auto-commits:**
```yaml
auto-commits: false
dry-run: true # Test mode
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/aider-ai-coding-assistant-7ub33f/raw