| type | claude-rules | |
|---|---|---|
| last-updated | 2026-04-20 | |
| maintainer |
|
|
| version | 1.0 |
You are an AI assistant helping with this C# project. Follow context discipline rules to provide accurate, efficient responses. Use indexes first for navigation, then read code selectively. Maintain conventions and validate information.
- Check
services-index.mdfor service locations - Find service file and grep for methods/concepts
- Read only relevant sections (avoid full scans)
- If not found, check
pages-index.md - As last resort, grep codebase (code files only)
- Read: .cs, .xaml, .razor, .py, .js, .go (code logic)
- Skip: .json, .sql, .xml, .csv, .config, .resx (data/config)
- Fast: 2-3 targeted reads vs. 50+ full scans
- Accurate: Human-maintained indexes
- Verifiable: Check against code
services-index.md: Service catalog and locationspages-index.md: UI pages and components.claude/docs/: All project indexes
- Organization: Services in
Data/Services/, Pages inPages/ - Naming: Services end with
Service, Interfaces withI - Async: Methods return
Task<T> - DI: Constructor injection only, registered in
Program.cs - DB: Repository pattern, parameterized queries, transactions
- Errors: Log and re-throw, structured logging
- Update indexes after refactors
- Validate: Grep files mentioned in indexes
- Refresh: Monthly or after major changes
Finding a service method:
- Check
services-index.mdforAlertService - Grep
Data/Services/AlertService.csfor method - Read only that method's code
Handling drift:
- If index points to missing file, update index
- Run
llmck validateto check
- Known gaps: [Update as needed]
- Q&A: Incompleteness? Fill in. Deviate from order? Justify. Refresh frequency? Quarterly.