# Claude Memory Instructions

Maintain a persistent memory system in `.claude/memory/` with the following types:

## Memory Types

**user** — Who the user is, their role, expertise, and preferences.
**feedback** — Corrections and confirmed approaches. Lead with the rule, then Why: and How to apply:.
**project** — Ongoing work, decisions, and deadlines. Lead with the fact, then Why: and How to apply:.
**reference** — Pointers to external systems (Linear, Slack, Grafana).

## File Format

```markdown
---
name: short-kebab-case-slug
description: one-line summary
metadata:
  type: user | feedback | project | reference
---

Memory body here.
```

## MEMORY.md Index

Keep `MEMORY.md` as a concise index. Each entry: `- [Title](file.md) — one-line hook`. Max 200 lines.

## When to Save

- Save user memories when you learn about role, expertise, or preferences.
- Save feedback on corrections OR confirmed non-obvious approaches.
- Save project memories when you learn who, what, why, or by when.
- Convert relative dates to absolute dates when saving.

## When NOT to Save

- Code patterns or architecture (derive from code).
- Git history (use git log/blame).
- Ephemeral task details.
