# {{PROJECT_NAME}} - Angular

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

## What (Stack & Structure)

**Stack**: Angular {{ANGULAR_VERSION}}, TypeScript, Standalone Components, Signals

### Project Structure
```
src/app/
├── core/             # Singleton services, guards, interceptors
├── shared/           # Reusable components, pipes, directives
├── features/         # Feature modules (domain-driven)
├── layout/           # Layout components (header, sidebar)
└── app.routes.ts     # Root routing
```

## Why (Purpose & Organization)

### Architecture: Standalone + Feature-First
- **Standalone Components**: No NgModules, tree-shakeable
- **Signals**: Reactive state management
- **OnPush**: All components use ChangeDetectionStrategy.OnPush
- **Modern Control Flow**: @if, @for, @switch syntax

See `rules/02-architecture.md` for complete patterns.

### Critical Rules
| Rule | Reason |
|------|--------|
| Standalone components | Modern Angular, tree-shaking |
| Signals for state | Reactive, fine-grained updates |
| TypeScript strict | Type safety |
| 80%+ coverage | Quality assurance |

## How (Commands & Workflows)

### Development Commands
```bash
ng serve              # Start dev server
ng build              # Production build
ng test               # Run tests (Vitest/Jest)
ng lint               # ESLint check
```

### Code Generation
```bash
ng generate component features/{{feature}}/components/{{name}} --standalone
ng generate service core/services/{{name}}
```

### Development Workflow
1. **Analyze** - Understand component hierarchy (`rules/01-workflow-analysis.md`)
2. **TDD** - Write test -> Implement -> Refactor
3. **Quality** - Run `ng lint && ng test`
4. **Commit** - Conventional Commits format

## References

| Topic | Rule File |
|-------|-----------|
| Analysis | `rules/01-workflow-analysis.md` |
| Architecture | `rules/02-architecture.md` |
| TypeScript | `rules/03-coding-standards.md` |
| SOLID | `rules/04-solid-principles.md` |
| State Management | `rules/06-state-management.md` |
| Testing | `rules/07-testing.md` |

{{STYLING_INSTRUCTIONS}}

{{STATE_MANAGEMENT_INSTRUCTIONS}}

<!-- PROJECT-SPECIFIC-START -->
## Project Specifics

{{CUSTOM_INSTRUCTIONS}}

<!-- PROJECT-SPECIFIC-END -->
