memory-keepinglisted
Install: claude install-skill matejformanek/postgres-claude
# memory-keeping
The pg-claude system is only as useful as its memory. STATE.md, coverage.md, and
the sessions/ log are how a future Claude (or future you) picks up cold without
re-reading the whole repo.
## Invariants
1. **STATE.md is the front page.** It must answer in under a minute: what phase
are we in, what's the last thing that got finished, what's the next concrete
step. Keep it short — link to detail elsewhere.
2. **coverage.md is a table.** One row per documented artifact (subsystem,
idiom, data-structure). Columns: `name | path | last-verified-commit | confidence-summary | open-questions`.
3. **sessions/ is append-only.** One file per significant session,
`YYYY-MM-DD-<topic>.md` (use **today's** date, the day you're writing —
not the date of the work if it spanned multiple days). Never edit old
session logs; if a later session invalidates a claim, write a new session
log that supersedes it and update STATE.md to point at the newer one.
4. **files-examined.md is the per-file ledger.** Append-only. One row per
source file read in non-trivial depth, columns:
`path | depth (skim/read/deep-read) | date | last-verified-commit | produced-doc`.
Append whenever a file becomes load-bearing for any claim in `knowledge/`,
including pure file-by-file deep reads that don't yet have a synthesis doc.
(See CLAUDE.md rule 6: "Track what you read.")
## When to update what
| Trigger | STATE.md | coverage.md | files-examined.md | sessions/ |
|--