# {{PROJECT_NAME}} - C#/.NET

> Erstellt: {{GENERATION_DATE}} | Claude Craft v{{VERSION}}

## Was (Stack & Struktur)

**Stack**: {{TECH_STACK}}
**.NET Version**: {{DOTNET_VERSION}}

### Projektstruktur
```
src/
├── Domain/           # Kern-Geschaeftslogik (KEINE externen Abhaengigkeiten)
│   ├── Entities/     # Aggregates, Entities
│   ├── ValueObjects/ # Immutable Types
│   ├── Events/       # Domain Events
│   └── Interfaces/   # Repository Contracts
├── Application/      # Use Cases, CQRS
│   ├── Commands/     # Schreiboperationen
│   ├── Queries/      # Leseoperationen
│   └── Behaviors/    # MediatR Pipeline
├── Infrastructure/   # Externe Concerns
│   ├── Data/         # EF Core, Repositories
│   └── Services/     # Externe Services
└── WebAPI/          # Presentation Layer
```

## Warum (Zweck & Organisation)

### Architektur: Clean Architecture + DDD + CQRS
- **Domain**: Reine Geschaeftslogik, keine Framework-Abhaengigkeiten
- **Application**: MediatR Commands/Queries
- **Infrastructure**: EF Core, externe Adapter

Siehe `rules/02-architecture.md` fuer Muster.

### Kritische Regeln
| Regel | Beschreibung |
|-------|--------------|
| Naming | PascalCase (public), _camelCase (private) |
| Async | Immer CancellationToken uebergeben |
| Nullable | Nullable Reference Types aktiviert |
| Tests | 80% Coverage (Domain: 90%) |

## Wie (Befehle & Workflows)

### Entwicklungsbefehle
```bash
dotnet build                # Build
dotnet run --project src/WebAPI  # Starten
dotnet watch run            # Hot Reload
```

### Qualitaets-Pipeline
```bash
dotnet test                              # Tests
dotnet test --collect:"XPlat Code Coverage"  # Coverage
dotnet format --verify-no-changes        # Format pruefen
```

### Entwicklungs-Workflow
1. **Analysieren** - `rules/01-workflow-analysis.md` lesen
2. **TDD** - Test schreiben, implementieren, refaktorisieren
3. **Qualitaet** - Build + Tests + Format pruefen
4. **Commit** - Conventional Commits Format

### Verfuegbare Skills
- `/csharp:check-compliance` - Compliance Audit
- `/csharp:check-architecture` - Architektur Validierung
- `/csharp:check-code-quality` - Code Qualitaet
- `/csharp:generate-feature` - CQRS Feature generieren

## Referenzen
| Kontext | Datei |
|---------|-------|
| Vor Aenderungen | `rules/01-workflow-analysis.md` |
| Architektur | `rules/02-architecture.md` |
| Code Standards | `rules/03-coding-standards.md` |
| Testing | `rules/07-testing.md` |
| Sicherheit | `rules/11-security.md` |

<!-- PROJECT-SPECIFIC-START -->
## Projektspezifika
<!-- Projektspezifische Konfiguration hier hinzufuegen -->
<!-- PROJECT-SPECIFIC-END -->
