# {{PROJECT_NAME}} - Angular

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

## Was (Stack & Struktur)

**Stack**: Angular {{ANGULAR_VERSION}} + TypeScript
**Architektur**: Standalone Components + Signals

### Projektstruktur
```
src/app/
├── core/           # Singleton Services, Guards, Interceptors
├── shared/         # Wiederverwendbare Components, Pipes, Directives
├── features/       # Business Features (Domain-driven)
│   └── [feature]/
│       ├── components/
│       ├── services/
│       └── feature.routes.ts
├── layout/         # Layout Components (Header, Sidebar, Shell)
└── app.routes.ts   # Root Routing
```

## Warum (Zweck & Organisation)

### Architektur: Feature-Based + Standalone
- **Standalone Components**: Keine NgModules
- **Signals**: Reaktives State Management
- **OnPush**: Performance-optimierte Change Detection
- **Modern Control Flow**: @if, @for, @switch

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

### Kritische Regeln
| Regel | Beschreibung |
|-------|--------------|
| Components | Standalone + OnPush |
| State | Signals bevorzugen |
| Control Flow | @if, @for (nicht *ngIf) |
| TypeScript | Strict Mode |
| Tests | 80% Coverage |

## Wie (Befehle & Workflows)

### Entwicklungsbefehle
```bash
ng serve                    # Dev Server
ng build                    # Production Build
ng generate component ...   # Komponente generieren
```

### Qualitaets-Pipeline
```bash
ng lint              # ESLint
ng test              # Unit Tests (Vitest/Jest)
ng e2e               # E2E Tests (Cypress)
npm run type-check   # TypeScript Pruefung
```

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

## 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` |
| State Management | `rules/13-state-management.md` |

{{STYLING_INSTRUCTIONS}}
{{STATE_MANAGEMENT_INSTRUCTIONS}}

<!-- PROJECT-SPECIFIC-START -->
## Projektspezifika
{{CUSTOM_INSTRUCTIONS}}
<!-- PROJECT-SPECIFIC-END -->
