/loom:loom-memoryfrom ClickHouse Loom
Manages durable memory vs scratchpad for Loom: decides what facts to persist, how to write them for future sessions, and runs end-of-task memory review. Not for code queries or defect reports.
Ships in ClickHouse Loom. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The plugin's hooks already capture tool calls, errors, the session summary and every conversation turn (the Stop hook). Never write the conversation yourself. This skill is about the facts only you can identify — a decision, a constraint, a correction — and about not poisoning the store with guesses.
Ops are named by their dotted name. A listed one is the tool loom_<op>
with dots as underscores (memory.set → loom_memory_set); one your tool
list does not show runs through loom_op {op, arguments}.
| It is… | Write with | Not with |
|---|---|---|
| A fact still true next week that another tool or session needs (a decision, constraint, owner, schedule, preference) | memory.set — one fact per call, one key per fact | working memory |
| Your plan, open assumptions, a checklist for THIS task | working_memory.set — loaded by context.pack, never ranked or embedded | memory.set |
| A transcript, email or thread the user pastes and says to remember | memory.set_from_messages — Loom extracts short-keyed facts | one giant memory.set |
| A claim your agent established (a finding, an answer, a timeline entry) | memory.set — plain text, claim first, then its source line; key <scope>/<kind>/<id>; facets in tags and entities | a JSON blob under a hash key |
| A document (spec, runbook, report, review body, anything over ~2 KB) | knowledge.upsert as Markdown, plus ONE one-paragraph memory.set pointer row | one memory.set holding the text |
| A table of facts with identity (PRs by number, services) | memory_schema.register once, then memory.record.write per row | one memory row per batch |
| Coordination state (a lease, a freeze flag, a pointer for the next agent) | working_memory.set — small mutable blocks read by block_key | memory.set + memory.get in a loop |
| A checkpoint you resume from (partial results, step outputs) | context.offload with a summary and a TTL | a durable memory per step |
| Reasoning, greetings, intermediate tool output | nothing | anything |
A declarative statement — "the target is X", "we deploy Tuesdays" — IS the trigger; the user does not have to say "remember". Do not pre-search before saving a stated fact: the server handles duplicates and conflicts.
json.dumps
twice, never base64.<scope>/<kind>/<id>; facets in tags.knowledge.upsert with a pointer row.confidence < 1.The primer's <namespace_guide> is data its writers keep: use its key
layout and tag meanings for your own writes, nothing more. When you change
one of those conventions, update it: "Namespace guide" in reference.md.
A rule the user states for everyone about a file goes to the repository's
primary code namespace (the primer's "Team file rules" line): memory.set
with files and tag constraint. Anything else stays personal. See "Team
file rules" in reference.md for removing a wrong one.
memory_id and version mean it was saved;
status: duplicate means duplicate_of already holds the fact, so leave
both rows; status: conflicted names a row to revise instead.abstain and below_threshold are answers; verified: false or a stale
valid_at means say so; a moved key answers with canonical_key.code_state: changed means the code the memory is about changed after it
was written: check the code before relying on it, then memory.update it.
unresolved means it was renamed or removed and not followed: find it again;
missing means it is gone.The full shape rules, the receipt table, the end-of-task review and the
verification gate are in reference.md beside this file.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub clickhouse/loom --plugin loom7 skills in this plugin
/improve-loom-for-my-repoUse at the END of a session in which loom's code tools were used, when the user asks to improve loom, report what it got wrong, or asks "why did loom miss that". Harvests THIS session's own transcript — where loom answered, where you fell back to grep or whole-file reads, what you couldn't trust — and turns each gap into a reproducible finding the loom maintainers can act on. First sessions count most. NOT for filing bugs about repos loom doesn't index, and NOT for gaps this session did not actually hit.
/loom-codeUse the moment you are about to grep, glob, or open files to answer a question about a loom-indexed codebase — "where is X", "how does X work", "who calls Y", "is it safe to change Z", "what does this stack trace touch". The tell is linguistic: if you just thought "let me search the codebase", "let me grep for that", or "let me read a few files", that sentence is the trigger — code.grep covers exact literals too. NOT for repos loom hasn't indexed (a code.search that abstains on everything is the tell), and NOT for your own uncommitted files (grep those; pass your diff to code.impact for blast radius).
/loom-mentorUse when a loom hint (a tool result's `hint`, an `X-Loom-Hint` header or a "Loom mentor" line) names a plane or op you do not know how to use, or when the user asks "what can loom do", "how should I be using loom", "am I using loom well", "loom mentor". A hint that already names the op to call needs no skill: call it or carry on with the task. Maps a situation to the loom plane and op that fits — code index, tracker record, documents, records, working memory, offload, the entity graph, runs, decisions, procedures, duplicates, conflicts, bisect — and says what to do about each hint code. NOT for deciding the shape of one write (loom-memory), NOT for grep-vs-code.* in an indexed repo (loom-code), NOT for reworking a namespace that already holds the wrong shape (loom-optimize).
/loom-optimizeUse when the user says "optimize my loom namespace", "audit memory", "my memory search is bad", "loom keeps abstaining", or asks why recall over a namespace their agent writes to does not work, or when the mentor's `documents_as_memories` / `checkpoints_as_memory` / `records_for_identities` hint names rows to rework. Runs `namespace.audit`, turns each finding into a plan the owner approves, and reworks the rows with `memory.move` so every old key stays readable through a redirect. Retires nothing. NOT for deciding what to write in the first place (loom-memory) and NOT for client-side failures (loom-status).
/loom-sessionUse ONLY when the user asks to restore or save session context: "resume", "restore the context of <branch/session>", "where was I on X", "load the last session", "restore full context", "save this session", "hand this off to a teammate". Lists the saved Loom session briefs, loads the one the user picks (the brief with its compaction summary, or the whole recorded transcript), or saves one. Never load a brief the user did not ask for. NOT for durable facts (loom-memory) and NOT for code questions (loom-code).
/loom-statusUse when Loom seems quiet or wrong: a loom tool answers "unauthenticated", "not available" or an empty result for something the user says was saved; the session-start primer did not appear; the user asks "is loom working", "why didn't it remember", "is my token ok", or a Loom hook says `node: not found` or prints a `loom:` line about Node.js 18+. Checks the Node hook runtime, then runs the plugin's client check and reads its lines, so the answer names the cause (missing runtime, unreachable server, rejected or expired token, no writer grant on the write namespace, plugin or MCP entry missing, stranded captures) and the one fix. NOT for server-side operations (that is `loom doctor` on the server) and NOT for deciding what to remember (loom-memory).