Maintain a compact git-tracked Central Memory layer (docs/memory/) with path fences for retired or unapproved files, topic routing, live drift detection, and compact briefs for fresh sessions and zero-history workers.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Shiplog Memory?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/devallibus-shiplog-memory)
---
name: shiplog-memory
description: Maintain a compact git-tracked Central Memory layer (docs/memory/) with path fences for retired or unapproved files, topic routing, live drift detection, and compact briefs for fresh sessions and zero-history workers.
---
# Shiplog memory
Opt-in companion skill to **shiplog** for preserving settled project canon, retired or unapproved path fences, and cross-repo contracts so fresh sessions, topic-pivoting coordinators, and zero-history delegates never trust stale files on disk over settled human decisions.
Read [references/format.md](references/format.md) for exact schemas, provenance rules, federation, and `check` validation rules.
## What lives where
- **`docs/memory/INDEX.md` (max 120 lines, git-tracked):** Root memory card with `synced_at` watermark, global `## Path Fences`, global `## Canon`, and `## Topics` routing table. Lives under `docs/` so `rg`, `fd`, and IDEs surface retired fences by default.
- **`docs/memory/topics/<slug>.md` (max 150 lines, git-tracked):** Domain-scoped canon and short factual context linked from `INDEX.md`.
- **`.shiplog/local.md` (optional, gitignored):** Machine-local path fences, local-only notes, and local sibling checkout paths. Never commit or force-add it to git.
GitHub issues (`kind: source`, `kind: state`, `kind: decision`) and `docs/decisions/` remain the primary source of truth. Every memory entry must carry a 1-hop provenance link (`#N`, `#N#issuecomment-ID`, `owner/repo#N`, or `docs/...`); never copy full discussion transcripts into `docs/memory/`.
## Statuses
- **`LOCKED`:** Settled human or architectural invariant. Agents must obey it.
- **`RETIRED`:** Rejected or deprecated file, tool, or approach. Never use, recommend, or revive it, even when still on disk.
- **`UNAPPROVED`:** Experimental or autonomous output lacking human sign-off. Never treat as approved baseline.
- **`SUPERSEDED`:** Former canon replaced by a newer entry (`->` replacement required).
- **`PROPOSED`:** Open option under discussion, not settled canon.
## CLI workflow
Resolve `scripts/shiplog-memory.mjs` relative to this skill directory (zero dependencies, Node.js 18+, cross-platform):
```bash
node scripts/shiplog-memory.mjs init [--with-local] [--force]
node scripts/shiplog-memory.mjs brief [--topic SLUG,...] [--paths PATH,...] [--compact] [--offline] [--include-linked] [--budget N]
node scripts/shiplog-memory.mjs delta [--all] [--stamp [ISO]] [--offline]
node scripts/shiplog-memory.mjs check [--strict]
```
## When to run
1. **Session start, topic pivot, or post-compaction:** Run `brief` with the relevant `--topic` and/or `--paths`. Read `## FENCES` first; `STILL ON DISK — DO NOT USE` and `ON DISK — UNVETTED` override raw filesystem inspection.
2. **Before delegating a zero-history worker:** Run `brief --topic ... --paths ... --compact` and paste the output into the worker's brief so it cannot revive retired scripts or treat unapproved artifacts as canon.
3. **Same PR as a decision, ADR, or retirement:** Update `docs/memory/INDEX.md` or the relevant topic file in the same PR so memory and code stay atomic and pass review together.
4. **Catch-up sync or initial backfill:** Run `delta` (or `delta --all` / `bootstrap` on a repo with existing closed issues and ADRs), distill only durable rulings into `docs/memory/`, then run `delta --stamp` (stamps `synced_at` from GitHub's max `updated_at`, avoiding laptop clock skew) and `check`.
5. **CI gate:** Run `check` in CI (warns on retired files still on disk and unindexed decision docs; exits 1 on budget, provenance, broken link, orphan topic, conflict, or tracked `.shiplog/local.md` errors). Pass `--strict` to fail on warnings too.
6. **Automatic lifecycle hooks:** When the core **shiplog** lifecycle hooks are enabled (`SessionStart`, `PreCompact`, `Stop`), `brief --compact --offline` is injected automatically at startup and local `docs/memory/` drift is flagged before compaction or turn end.