Configuration for Aider AI pair programming using Google Gemini models with custom commit message formatting and dark mode
Advanced Aider configuration optimized for Google Gemini models with structured commit messages and development workflow preferences.
This skill configures Aider to use Google's Gemini 2.5 Pro as the main model with Gemini 2.5 Flash as the weak model for faster operations. It includes a custom commit message prompt that generates structured, conventional commit messages prefixed with "Aider:" and follows best practices for Git history.
The configuration generates commit messages in this format:
```
Aider: <type>: <description>
```
Supported types:
Replace `<Insert your key here>` in the configuration with your actual Google Gemini API key:
```yaml
api-key:
- gemini=YOUR_ACTUAL_API_KEY
```
Get your API key from [Google AI Studio](https://makersuite.google.com/app/apikey).
Save this configuration as `.aider.conf.yml` in your project root or home directory:
```yaml
api-key:
- gemini=YOUR_API_KEY_HERE
model: gemini/gemini-2.5-pro-preview-05-06
weak-model: gemini/gemini-2.5-flash-preview-04-17
dark-mode: true
map-tokens: 0
commit-prompt: "You are an expert software engineer that generates concise, one-line Git commit messages based on the provided diffs. Review the provided context and diffs which are about to be committed to a git repo. Review the diffs carefully. Generate a one-line commit message for those changes. The commit message should be structured as follows: `Aider: <type>: <description>`. Use these for <type>: Fix, Feature, Build, Chore, CI, Docs, Style, Refactor, Performance, Test. Ensure the commit message:{language_instruction} - Starts with the appropriate prefix. - Is in the imperative mood (e.g., \"Add feature\" not \"Added feature\" or \"Adding feature\"). - Does not exceed 72 characters. Reply only with the one-line commit message, without any additional text, explanations, or line breaks."
```
Start Aider in your project directory:
```bash
aider
```
Aider will automatically load the configuration from `.aider.conf.yml`.
Add files you want to edit:
```
/add src/main.py
/add tests/test_main.py
```
Describe what you want to accomplish:
```
Add error handling to the main function with proper logging
```
Aider will:
1. Generate code changes using Gemini 2.5 Pro
2. Show you the proposed changes
3. Ask for confirmation
4. Create a structured commit message using Gemini 2.5 Flash
5. Commit the changes with the format: `Aider: <type>: <description>`
To use Gemini 2.0 Flash Experimental instead (faster, lower cost), uncomment this line in your config:
```yaml
```
```yaml
auto-lint: true
lint-cmd:
- "python: ruff check --fix"
- "typescript: eslint --fix"
```
```yaml
auto-test: true
test-cmd: pytest
```
```yaml
map-tokens: 2048 # Adjust based on your needs
```
```bash
aider
/add src/api.py src/models.py
Add input validation to the create_user endpoint
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/aider-with-gemini-25-pro/raw