Configure Aider AI coding assistant to use Google Gemini models with optimal settings for large context windows and batch processing in CI/CD environments.
Configure Aider AI coding assistant to use Google Gemini models with settings optimized for delivery management tools and CI/CD workflows.
This skill sets up an `.aider.conf.yml` configuration file that configures Aider to work with Google Gemini models (specifically Gemini 2.5 Flash Preview). The configuration is optimized for:
When the user requests Aider configuration for Gemini or asks to set up Aider for CI/CD:
1. **Read existing configuration** (if any):
- Check if `.aider.conf.yml` exists in the project root
- Read the current configuration to preserve any custom settings
2. **Create the configuration file** at `.aider.conf.yml` with the following settings:
```yaml
model: gemini/gemini-2.5-flash-preview-05-20 # Default Gemini model
edit-format: whole # Uses more tokens but gives better results
max-chat-history-tokens: 1000000 # Gemini 1.5 Pro has 1M+ context window
cache-prompts: true
stream: false # Disable streaming for GitHub Actions
pretty: false # Disable pretty output for CI logs
show-diffs: true
auto-commits: false # Disable auto commits in CI
yes-always: true # Auto-accept all suggestions
```
3. **Explain the configuration**:
- **model**: Uses Gemini 2.5 Flash Preview (fast and cost-effective)
- **edit-format**: `whole` provides better results by editing entire files
- **max-chat-history-tokens**: Leverages Gemini's large 1M+ token context window
- **cache-prompts**: Enables prompt caching for faster responses
- **stream**: Disabled for cleaner CI/CD logs
- **pretty**: Disabled for machine-readable output in automated environments
- **show-diffs**: Shows code changes for review
- **auto-commits**: Disabled to prevent automatic commits in CI
- **yes-always**: Auto-accepts suggestions for non-interactive environments
4. **Additional recommendations**:
- Inform the user they need a Gemini API key set as `GEMINI_API_KEY` environment variable
- For interactive development, they may want to set `stream: true` and `pretty: true` in a separate local config
- Suggest creating `.aider.conf.yml.local` for developer-specific overrides (add to `.gitignore`)
**Basic setup:**
> "Set up Aider configuration for Gemini"
**CI/CD setup:**
> "Configure Aider for GitHub Actions with Gemini"
**Custom model:**
> "Set up Aider with Gemini Pro instead of Flash"
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/aider-configuration-for-google-gemini/raw