/loom-code-skill:loom-memoryfrom ClickHouse Loom skills
Writes durable facts (decisions, constraints, corrections) to Loom memory for cross-session recall. Use before saving to Loom or when the user states a fact to keep.
Ships in ClickHouse Loom skills. 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.
Loom version of this copy: 1.3.0
When a call this file names is refused as unknown or answers ignored_args,
or the user asks whether this skill is current, read the server's version
(loom_op {op: "mentor.guide"}; over HTTP, GET /v1/health): if it is
newer, say this copy is older and follow the server's guide (that reply's
text) and loom_op {op: "help"} where they differ from this file.
Nothing captures this session for you: a fact you do not write is not kept. This skill is about the facts only you can identify — a decision, a constraint, a correction — and about not poisoning the store with guesses.
Not this skill: a code question is loom-code; "is this already reported?",
a duplicate or a bisect check is a direct loom_search or
loom_tracker_duplicate_check call with nothing to read first.
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 namespace's guide (namespace.guide_get; context.pack loads it) 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 (primary_namespace on code.repos): 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
Three short reads, in order
npx claudepluginhub clickhouse/loom --plugin loom-code-skill4 skills in this plugin
/loomHow an agent uses Loom: memory, documents, working state, runs and code intelligence that persist across sessions and are shared with other agents. WHEN: you have a Loom server (LOOM_BASE_URL, an SDK `Agent`, `loom_*` MCP tools) and you start a task, learn a durable fact, hold a document or a large blob, need to resume, hand work to another agent, or answer from what an earlier session knew. Covers MCP, the Python and TypeScript SDKs and plain HTTP./loom-codeUse before you grep or open files to answer a question about a Loom-indexed codebase: where something is defined, how it works, who calls it, what a change touches. NOT for unindexed repositories./loom-statusUse when Loom seems quiet or wrong: a Loom tool answers unauthenticated or finds nothing the user says was saved, or the user asks if Loom, its token or this skill is current. Names one cause.Other plugins' skills for the same job