Configuration for using Aider AI coding assistant with a Blazor component library project, optimized for C# development with architect mode and context management
This skill provides a production-ready Aider configuration optimized for Blazor component library development. It sets up Aider with architect mode, prompt caching, and comprehensive project documentation access.
Create a file named `.aider.conf.yml` in the root of your git repository with the following content:
```yaml
##########################################################
##########################################################
#################
architect: true
#weak-model: xxx
#editor-model: xxx
#################
cache-prompts: true
#cache-keepalive-pings: 0
##################
dark-mode: true
###############
gitignore: false
#auto-commits: true
#dirty-commits: true
########################
#auto-lint: true
#lint-cmd: "csharp: dotnet format --verify-no-changes"
#auto-test: false
#################
read:
- .editorconfig
- README.md
- .ai/index.md
- .ai/ai-instructions.md
- .ai/csharp-coding-standards.md
- .ai/dotnet-conventions.md
- .ai/environment.md
- .ai/project-structure.md
- .ai/references.md
- .ai/shell-commands.md
- .ai/tools.md
#suggest-shell-commands: true
```
For optimal AI context, create an `.ai/` directory with these documentation files:
```bash
mkdir -p .ai
```
Create these files in `.ai/` directory:
Create a `.env` file in your git root (not tracked in version control):
```bash
OPENAI_API_KEY=your-openai-key-here
ANTHROPIC_API_KEY=your-anthropic-key-here
```
**Start Aider with specific files:**
```bash
aider src/Components/Button.razor src/Components/Button.razor.cs
```
**Start Aider with all dirty files:**
```bash
aider
```
**Generate a commit for pending changes:**
```bash
aider --commit
```
**Run with a single message:**
```bash
aider --message "Add a new Icon component with size variants"
```
**Lint and fix files:**
```bash
aider --lint src/Components/*.cs
```
**Architect Mode:**
**Prompt Caching:**
**Read-Only Files:**
**Change the AI model:**
```yaml
model: claude-3-5-sonnet-20240620
model: gpt-4o
```
**Enable automatic testing:**
```yaml
auto-test: true
test-cmd: "dotnet test"
```
**Add C# linting:**
```yaml
auto-lint: true
lint-cmd: "csharp: dotnet format --verify-no-changes"
```
**Adjust repository map size:**
```yaml
map-tokens: 2048 # Default is 1024
```
This configuration is optimized for:
The read-only documentation files provide the AI with context about your project's conventions without risking modifications to those standards.
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/aider-configuration-for-blazor-component-library/raw