<h1 align="center">
<a href="https://prompts.chat">
Apply when reading or writing to memory files under `~/.claude/projects/*/memory/`.
Loading actions...
<a href="https://prompts.chat">
TypeScript and ESLint rules that MUST be followed when creating, modifying, or reviewing any file under apps/frontend/, including .ts, .tsx, .js, and .jsx files. Also apply when discussing frontend linting, type safety, or ESLint configuration.
risks
Apply when reading or writing to memory files under ~/.claude/projects/*/memory/.
Memory is organized in three tiers:
MEMORY.md in each scope. Auto-loaded. Contains a routing table pointing to topic files. NEVER store knowledge here, only pointers. Keep under 50 lines.decisions.md, debug-journal.md). Read on demand when a task requires that category of knowledge. Each has YAML frontmatter with last_updated and topics.The root L0 index lives at your global memory scope:
~/.claude/projects/<root-scope>/memory/MEMORY.md
When working in a project directory, the project's own MEMORY.md auto-loads. For cross-project context (shared dependencies, infrastructure, cross-project decisions), explicitly read the root L0 index above, then follow its pointers.
Do NOT wait for session end to update memory. Sessions can end abruptly with no exit hook. Update immediately:
debug-journal.md right after confirming the fix.decisions.md right after the user approves.patterns.md immediately.last_updated field in both the topic file's YAML frontmatter and the L0 index table.If an update affects more than the current project (shared dependency, cross-project pattern, common convention), log it in the ROOT scope, not just the local project memory.
If the L0 index doesn't clearly point to the right topic file, use Grep across all memory files rather than guessing:
Grep pattern="<search term>" path="~/.claude/projects/<root-scope>/memory/" glob="*.md"
If the L0 index shows a "Last Updated" date older than 90 days for a file you're about to read, flag it to the user and review the file's entries for accuracy. If a topic file is missing YAML frontmatter, treat it as stale and add default frontmatter on the next update.
If an L1 topic file exceeds 150 lines, archive oldest entries to <topic>-archive-YYYY.md in a memory/archive/ subdirectory and replace them in the L1 file with a 3-5 line summary pointing to the archive.