mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-05-30 10:38:35 +01:00
2.1 KiB
2.1 KiB
description
| description |
|---|
| Reflect on this session to extract and store learned facts about the codebase |
Analyze the current conversation to extract useful facts that should be remembered for future sessions. Focus on:
- Corrections: Things the user corrected you about
- Clarifications: Misunderstandings about how the codebase works
- Patterns: Important conventions or patterns you learned
- Gotchas: Surprising behaviors or edge cases discovered
- Locations: Files or code that was hard to find
Instructions
- Read the Learned Facts Index section in
CLAUDE.mdand scan existing files in.claude/learned-facts/to understand what's already recorded - Review this conversation for learnings worth preserving
- For each new fact:
- Create a new file in
.claude/learned-facts/[kebab-case-name].mdusing the template below - Append a new entry to the appropriate category in the Learned Facts Index section of
CLAUDE.md
- Create a new file in
- Skip facts that duplicate existing entries
- If a new category is needed, add it to the index in
CLAUDE.md
Fact File Template
Create each file at .claude/learned-facts/[kebab-case-name].md:
# [Title]
**Date**: YYYY-MM-DD
**Category**: navigation | tv | native-modules | state-management | ui
**Key files**: `relevant/paths.ts`
## Detail
[Full description of the fact, including context for why it matters]
Index Entry Format
Append to the appropriate category in the Learned Facts Index section of CLAUDE.md:
- `kebab-case-name` | Brief one-line summary of the fact
Categories: Navigation, UI/Headers, State/Data, Native Modules, TV Platform
Example
File .claude/learned-facts/state-management-pattern.md:
# State Management Pattern
**Date**: 2025-01-09
**Category**: state-management
**Key files**: `utils/atoms/`
## Detail
Use Jotai atoms for global state, NOT React Context. Atoms are defined in `utils/atoms/`.
Index entry in CLAUDE.md:
State/Data:
- `state-management-pattern` | Use Jotai atoms for global state, not React Context
After updating, summarize what facts you added (or note if nothing new was learned this session).