Professional Aider configuration optimized for PowerShell development with PSScriptAnalyzer linting, Pester testing, and efficient token usage. Includes environment management and cost optimization settings.
A production-ready Aider configuration file optimized for PowerShell development workflows. This configuration emphasizes cost efficiency, automatic code quality checks, and seamless integration with PowerShell tooling.
Generates a `.aider.conf.yml` configuration file that:
When a user requests an Aider configuration for PowerShell projects, follow these steps:
1. **Confirm the target location** - Ask if the configuration should be placed in the project root or `.aider/` subdirectory (default: project root as `.aider.conf.yml`)
2. **Gather customization preferences** - Ask about:
- Preferred AI model (default: leave commented for Aider's default)
- Whether to enable auto-commits (default: false)
- Whether to enable auto-testing with Pester (default: false)
- Git integration preference (default: false)
3. **Create the configuration file** with the following structure:
```yaml
env-file: .aider/.env
map-tokens: 0
map-refresh: manual
dark-mode: true
pretty: true
stream: false
no-stream: true
cache-prompts: true
show-diffs: false
auto-commits: false
no-suggest-shell-commands: true
cache-keepalive-pings: 5
gitignore: false
auto-lint: true
show-repo-map: false
lint-cmd: "pwsh -Command Invoke-ScriptAnalyzer -Path *.ps1"
auto-test: false
#test-cmd: "pwsh -Command Invoke-Pester -Path .\\Tests"
verbose: false
input-history-file: .aider/aider.input.history
chat-history-file: .aider/aider.chat.history.md
llm-history-file: .aider/aider.llm.history
model-settings-file: .aider/aider.model.settings.yml
model-metadata-file: .aider/aider.model.metadata.json
suggest-shell-commands: false
git: false
edit-format: whole
yes-always: true
show-prompts: false
```
4. **Create the .aider directory structure** - Ensure `.aider/` subdirectory exists for history and settings files
5. **Provide setup instructions** to the user:
- Copy the `.aider.conf.yml` file to the project root
- Create `.aider/.env` file for environment variables (API keys, etc.)
- Ensure PSScriptAnalyzer is installed: `Install-Module -Name PSScriptAnalyzer`
- If enabling auto-test, ensure Pester is installed: `Install-Module -Name Pester`
- Uncomment and set the `model` field to specify an AI model
- Adjust `auto-test` and `test-cmd` if Pester tests are available
**Cost Optimization:**
**PowerShell Integration:**
**Developer Experience:**
**History Management:**
**Basic setup:**
```
User: "Set up Aider for my PowerShell project"
Assistant: [Creates .aider.conf.yml with default settings]
```
**Custom model:**
```
User: "Configure Aider with Claude Sonnet for PowerShell development"
Assistant: [Creates config with model: claude-3-5-sonnet uncommented]
```
**Enable testing:**
```
User: "Add Aider config with automatic Pester tests"
Assistant: [Creates config with auto-test: true and test-cmd uncommented]
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/aider-powershell-configuration/raw