Files
goldbrain/goldbrain-memory.src/commands/gb-save.md
T
2026-06-19 23:03:06 -05:00

23 lines
1.1 KiB
Markdown

---
description: Save to goldbrain memory — route content to its canonical home (search-first, idempotent)
argument-hint: "[what to remember]"
---
Use the **goldbrain-memory** skill to persist this to the goldbrain vault:
> $ARGUMENTS
Follow the skill's write discipline exactly:
1. **Route** via `references/routing-map.md` (the canonical map). If no path fits, capture to `inbox/captures/inbox.md`.
2. **Search-first** for any new slug-addressed note (slug AND human title) before creating — merge/promote instead of duplicating.
3. Write through the bundled client so the call is status-checked and idempotent:
```bash
GB="${CLAUDE_PLUGIN_ROOT}/skills/goldbrain-memory/scripts/goldbrain.sh"
"$GB" append inbox/captures/inbox.md "- $(date +%F): <entry>" # idempotent capture
"$GB" put <routed/path>.md <bodyfile> # create/overwrite (verifies)
"$GB" patch <path>.md append heading "<H1::Sub>" <bodyfile> # targeted append
```
4. Write in third person about Bryan; set `agent_written: true` + `source_notes`; never put `[[wikilinks]]` in frontmatter; `bump` `updated:` only on substantive changes.