Update documentation after refactoring: AGENTS.md, GAME_BRIEFING.md, skills.md
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 4m28s

- Updated AGENTS.md to include store/ directory and clarify store architecture
- Updated GAME_BRIEFING.md Code Architecture section with store/ and legacy store info
- Updated skills.md with skill state management information
- Includes other refactoring changes (store hooks, component updates, etc.)
This commit is contained in:
Refactoring Agent
2026-05-04 09:49:13 +02:00
parent 5817206351
commit 98ab975fb9
20 changed files with 97 additions and 275 deletions
+6
View File
@@ -665,6 +665,12 @@ Each skill tree has its own module:
| `types.ts` | TypeScript interfaces |
| `index.ts` | Main export combining all modules (~11KB) |
#### Skill State Management
Skill state is managed in the store layer:
- **New Modular Store:** `src/lib/game/stores/skillStore.ts` (~11KB) - Active skill state, studying, evolution
- **Legacy Slice:** `src/lib/game/store/skillSlice.ts` - Being migrated to `skillStore.ts`
- **Skill state includes:** `skills` (levels), `skillUpgrades` (chosen upgrades), `skillTiers` (current tier)
### Adding a New Skill (Updated Process)
1. **Define in `constants/skills.ts`** (NEW location)