name: weddin-fsd-rules
description: Apply repository-specific FSD architecture and coding conventions from .claude/project-rules.md. Use when implementing, refactoring, or reviewing code under src/ in this repository.
Weddin FSD Rules
Enforce the project rules from .claude/project-rules.md for every relevant code change.
Required process
- Read
.claude/project-rules.mdbefore editing architecture-sensitive files. - Keep layer direction strict:
app -> features -> entities -> shared. - Keep
app/routing thin and move feature behavior intofeatures/. - Keep feature structure aligned to
ui/,model/,lib/. - Keep entities structure aligned to
api/anddto/. - Never introduce barrel export files (
index.tsre-export pattern). - Use direct imports from source files.
- Use function declarations for components, not arrow-function component constants.
Quick validation checklist
- Paths and module names follow the FSD conventions in
.claude/project-rules.md. - No reversed imports across layers.
- No new barrel exports.
- Naming conventions match project rules.