Run Aider, an AI pair programming tool that edits code in your local git repository. Supports DeepSeek models, auto-commits, linting, testing, and context-aware code modifications.
Launch Aider to assist with AI-powered code editing in your git repository. This configuration uses DeepSeek models for cost-effective AI pair programming with automatic commits, linting, and intelligent code modifications.
Starts Aider with a pre-configured setup optimized for:
When the user requests AI coding assistance with Aider:
1. **Verify Git Repository**
- Ensure you're in a git repository root or subdirectory
- If not in a git repo, warn the user that Aider requires git
- Check that `.aider.conf.yml` exists or will be created
2. **Launch Aider**
- Run `aider` command to start the AI coding session
- If specific files should be edited, use: `aider <file1> <file2>`
- For read-only context files, use: `aider --read <file>`
- The configuration automatically uses DeepSeek models
3. **Common Aider Commands**
- `/add <file>` - Add files to the chat context
- `/drop <file>` - Remove files from context
- `/editor` - Open in nvim for manual edits
- `/commit` - Commit changes with AI-generated message
- `/lint` - Run linting on current files
- `/test` - Run test command
- `/help` - Show all commands
- `/exit` - Exit Aider
4. **Configuration Highlights**
- Main model: `deepseek/deepseek-reasoner` for complex reasoning
- Weak model: `deepseek/deepseek-chat` for commits/summaries
- Editor model: `deepseek/deepseek-chat` for editor tasks
- Auto-commits enabled (changes committed automatically)
- Auto-lint enabled (code linted after changes)
- Git integration enabled
- Pretty colored output enabled
5. **Environment Setup**
- Requires `DEEPSEEK_API_KEY` environment variable
- Can be set via `.env` file in git root
- Or configured in `.aider.conf.yml` (already included: `sk-e8be341407c049d4ac2c444616570197`)
6. **Best Practices**
- Start with a clean git state (commit pending changes first)
- Be specific about which files to edit
- Use `/add` to provide context files without editing them
- Review diffs before accepting changes
- Let auto-commit handle git commits (includes descriptive messages)
**Basic code editing:**
```bash
aider src/main.py
```
**Edit multiple files with context:**
```bash
aider --read docs/spec.md src/feature.py tests/test_feature.py
```
**One-shot message mode:**
```bash
aider --message "Refactor the login function to use async/await" src/auth.py
```
**Lint and fix files:**
```bash
aider --lint src/**/*.py
```
**Run tests and fix failures:**
```bash
aider --test --test-cmd "pytest tests/"
```
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-3h3mxn/raw