# {{PROJECT_NAME}} - Symfony

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

## Was (Stack & Struktur)

**Stack**: {{TECH_STACK}}

### Projektstruktur
```
src/
├── Domain/              # Kern-Geschaeftslogik (KEINE externen Abhaengigkeiten)
│   ├── Entity/          # Aggregate Roots
│   ├── ValueObject/     # Immutable Objekte
│   ├── Event/           # Domain Events
│   └── Repository/      # Interface-Vertraege
├── Application/         # Use Cases (CQRS)
│   ├── Command/         # Schreiboperationen
│   ├── Query/           # Leseoperationen
│   └── Handler/         # Command/Query Handler
└── Infrastructure/      # Technische Details
    ├── Persistence/     # Doctrine Repositories
    ├── Http/            # Controller
    └── Cache/           # Redis
```

## Warum (Zweck & Organisation)

### Architektur: Clean Architecture + DDD + Hexagonal
- **Domain**: Geschaeftslogik ohne externe Abhaengigkeiten
- **Application**: Orchestrierung der Use Cases
- **Infrastructure**: Technische Implementierungen

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

### Kritische Regeln
| Regel | Beschreibung |
|-------|--------------|
| Docker PFLICHT | Alle Befehle via Makefile (`make console CMD="..."`) |
| TDD PFLICHT | RED -> GREEN -> REFACTOR |
| Qualitaet PFLICHT | `make quality` nach jeder Aenderung |
| Abdeckung | Minimum 80% Testabdeckung |

## Wie (Befehle & Workflows)

### Entwicklungsbefehle
```bash
make up                         # Stack starten
make console CMD="cache:clear"  # Symfony Console
make composer CMD="require ..." # Composer
make shell                      # PHP Container Shell
```

### Qualitaets-Pipeline
```bash
make quality        # PHPStan + CS-Fixer + Rector + Deptrac + Tests
make test           # Alle Tests
make test-coverage  # HTML Coverage-Report
make hadolint       # Dockerfile Lint
```

### Entwicklungs-Workflow
1. **Analysieren** - `rules/01-workflow-analysis.md` lesen
2. **TDD** - Test schreiben (RED), implementieren (GREEN), refaktorisieren
3. **Qualitaet** - `make quality` ausfuehren
4. **Commit** - Conventional Commits Format

## Referenzen
| Kontext | Datei |
|---------|-------|
| Vor Aenderungen | `rules/01-workflow-analysis.md` |
| Architektur | `rules/02-architecture-clean-ddd.md` |
| Code Standards | `rules/03-coding-standards.md` |
| SOLID | `rules/04-solid-principles.md` |
| Testing | `rules/07-testing-tdd-bdd.md` |
| Sicherheit | `rules/11-security-rgpd.md` |
| DDD Patterns | `rules/13-ddd-patterns.md` |

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