From fpl-hsmem
Export the current Hindsight bank's content for backup or audit — memories, documents, mental models. Use when the user says "back up memory", "export bank", "save Hindsight state", or before doing risky operations like deleting / re-bootstrapping a bank.
How this skill is triggered — by the user, by Claude, or both
Slash command
/fpl-hsmem:export-bankThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Snapshot the current bank into a folder for backup or audit. Hindsight
Snapshot the current bank into a folder for backup or audit. Hindsight itself stores data in its embedded Postgres, but a markdown export is useful for:
memory_get_current_bankmemory_status (memory count, document count)<id> (~N memories) to <cwd>/hindsight-export/<id>-<date>/? [y/N]"mkdir -p hindsight-export/<bank-id>-<YYYY-MM-DD>
For each model in mental_model_list:
mental_model_get(id) → fetches contentmental-models/<id>.md with header (id, name, source_query, last refresh)memory_recall doesn't dump everything by design — it returns ranked
results. To get a useful corpus, run 3-5 broad queries and merge:
recall("decisions and reasoning") → write to memories/decisions.mdrecall("bugs and fixes") → memories/bugs.mdrecall("project context and conventions") → memories/context.mdEach result file: one memory per section with [type] and (date).
Write hindsight-export/<bank-id>-<date>/README.md:
# Hindsight export — <bank-id>
Exported: <ISO timestamp>
URL: <hindsight URL at export time>
Stats: <N memories>, <M docs>, <K pages>
## Mental models
- [id1.md](mental-models/id1.md) — <name>
- [id2.md](mental-models/id2.md) — <name>
## Memory snapshots (curated by query)
- [decisions.md](memories/decisions.md)
- [bugs.md](memories/bugs.md)
- [context.md](memories/context.md)
For a complete backup including raw memory graph, mention to the user:
docker exec hindsight pg_dump -U hindsight -d hindsight > pg-dump.sql
This captures everything (not just what recall surfaces), but is opaque
without restoring to a Postgres instance.
~/.pg0/ directory.Exported bank "<id>" to ./hindsight-export/<id>-<date>/
Mental models: <K>
Memory snapshots: <Q> queries
Index: README.md
npx claudepluginhub forgeplan/marketplace --plugin fpl-hsmemGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.