From b387ea69871b6c933fb08be8d5a06ba801c47aca Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 9 Jun 2026 17:31:51 +0000 Subject: [PATCH 01/22] feat: add Claude Code Agent Skill template Ship Memory Hive as a native Claude Code Agent Skill. The template carries the on-demand depth layer (retrieval verb guide, raw-learning frontmatter spec, lane rules, curator loop) so the always-on CLAUDE.md boot block can stay small; Claude Code loads the full body only when memory work is happening (progressive disclosure), and the skill is invocable as /memory-hive. Installer wiring, doctor receipts, CI smoke, and docs land in the follow-up commit. https://claude.ai/code/session_01TbAgEqEHJ4xTcx9otN3DrN --- templates/skills/memory-hive/SKILL.md | 143 ++++++++++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 templates/skills/memory-hive/SKILL.md diff --git a/templates/skills/memory-hive/SKILL.md b/templates/skills/memory-hive/SKILL.md new file mode 100644 index 0000000..eb1ec4b --- /dev/null +++ b/templates/skills/memory-hive/SKILL.md @@ -0,0 +1,143 @@ +--- +name: memory-hive +description: "Read and write Memory Hive, the local file-backed shared memory for AI agents (hive at ${HIVE_DIR}). Use at the start of substantive work to hydrate from the shared hive and your private silo; when the user mentions remember, recall, last time, a previous session, lessons, preferences, or prior decisions; at the end of any non-trivial task to log work and write back reusable learnings; and when curating shared memory as the main agent (promote, dedup, conflicts, stale)." +--- + +# Memory Hive + +Memory Hive is the durable memory layer on this machine. Markdown under +`${HIVE_DIR}` is the source of truth; the `memory-hive` CLI lives at +`${INSTALL_DIR}/memory-hive` (also on PATH as `memory-hive` when the +installer could wire a shim). Work directly with files when reading or +appending; use CLI verbs for search, recall, and curation. + +## Path map + +| Path | What it is | Who writes | +|---|---|---| +| `${HIVE_DIR}/index.md` | Boot entrypoint, global state | curator only | +| `${HIVE_DIR}/agents//log.md` | Your append-only activity journal | owning agent | +| `${HIVE_DIR}/agents//context.md` | Your role + current focus | owning agent | +| `${HIVE_DIR}/agents//memory.md` | Your durable private memory | owning agent | +| `${HIVE_DIR}/knowledge/` | Curated shared truth (`HUMAN_CONTEXT.md`, `SOUL.md`, ...) | curator only | +| `${HIVE_DIR}/learnings/raw//` | Your contributions to the shared pool | any agent, own subdir | +| `${HIVE_DIR}/learnings/distilled/` | Promoted patterns, wins, mistakes | curator only | +| `${HIVE_DIR}/tasks/queue.md` | Shared task queue | any agent | +| `${HIVE_DIR}/curator/` | Conflicts, decisions audit trail | curator only | + +## Resolve your agent id + +Your agent id must match a directory under `${HIVE_DIR}/agents/`. Solo +sessions and the curator use `main`. If your id has no silo, stop and ask +the operator (or run `memory-hive add --role