Command Palette

Search for a command to run...

Back to skills
skill № 47681

memory

Persistent long-term memory via memini. Use to remember durable facts, decisions, and preferences, and to recall relevant context before acting. Triggers when…

FreeNo executable scripts
eleboucherby eleboucher★ 35 GitHub stars

Install memory in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

memory (memini)

memini is a memory service.

If the memory_briefing / memory_recall / memory_remember / memory_list / memory_forget tools are in your tool list, use them and ignore the rest of this file. They take the same scope and visibility arguments described below, and they resolve the namespace for you. The curl recipes here are the fallback for installs that run memini as a skill without the plugin — see the README's Alternatives — where there is no tool to call.

Do not mix the two. The plugin namespaces memory per agent by default ({namespace}-{agent}), and the curl calls below cannot see that — they send the base $MEMINI_NAMESPACE, so a fact written by curl lands somewhere the plugin's own recall will never look. The plugin registers its tools by default, so if it is installed you should have them; if it is installed and you do not (the operator set expose_tools: false), say so rather than silently curling into the wrong namespace.

The rest of this file assumes the no-plugin install.

The service is reachable at ${MEMINI_BASE_URL:-${MEMINI_URL:-http://localhost:8080}}. If a bearer token is configured, send Authorization: Bearer $MEMINI_API_KEY.

Namespaces are managed for you. Every request carries the X-Memini-Namespace header, whose value is $MEMINI_NAMESPACE — configuration your operator exports, not something you choose. Never invent a namespace, and never type a raw namespace path into a request. You make two semantic choices instead — scope when you read, visibility when you write — and you learn the topology by reading what comes back. (With MEMINI_NAMESPACE unset the header is empty and the server falls back to its configured default namespace, MEMINI_DEFAULT_NAMESPACE — see docs/reference/configuration.md.)

Export it once, then use $NS in every call below:

NS="$MEMINI_NAMESPACE"

Orient first: the briefing

At the start of a task, get the session briefing — pinned context, durable facts, how-to procedures, and recent activity, in one query-less call. Prefer it over a broad recall query:

curl -sf "${MEMINI_BASE_URL:-$MEMINI_URL}/v1/namespaces/briefing" \
  -H "X-Memini-Namespace: $NS"

The response's scope_header is the line to read — e.g. Scope: acme/phoenix/api ← acme/phoenix(3) ← acme(4) ← personal(2). It spells out the ancestor chain this namespace inherits from. That is where the ancestor names you may pass as visibility come from; do not guess them.

Recall before acting

curl -sf -X POST "${MEMINI_BASE_URL:-$MEMINI_URL}/v1/search" \
  -H 'Content-Type: application/json' \
  -H "X-Memini-Namespace: $NS" \
  -d '{"query":"<what you are about to work on>","limit":5}'

scope is the only lever on how wide you read:

  • "project" — just this project's own memories.
  • "full" (default) — project plus inherited context: ancestors, the user's personal namespace, and links.
  • "everywhere" — full plus nested sub-projects.
curl -sf -X POST "${MEMINI_BASE_URL:-$MEMINI_URL}/v1/search" \
  -H 'Content-Type: application/json' \
  -H "X-Memini-Namespace: $NS" \
  -d '{"query":"deploy window","scope":"everywhere"}'

Read the returned results[].memory.content and factor them into your plan. Each result carries provenance, not a choice: an absent from means the memory is this project's own; otherwise from names the ancestor or personal namespace it came from ("acme", "personal/kit", or "link:shared/golang"). Read from and the briefing's Scope line to learn where knowledge actually lives — never construct a namespace path from them.

results[].memory also carries created_at and tags — on conflicting memories prefer the most recent and surface the conflict. A top-level degraded: "keyword_only" (with a note) means the query embed was unavailable and the results came from keyword matching alone; treat them as incomplete, not exhaustive. Empty results mean nothing is known — proceed from first principles, never invent a remembered fact.

Narrow recall with tags (a memory must carry every listed tag) and/or metadata (top-level key=value pairs), e.g. only auth bug-fix memories:

curl -sf -X POST "${MEMINI_BASE_URL:-$MEMINI_URL}/v1/search" \
  -H 'Content-Type: application/json' \
  -H "X-Memini-Namespace: $NS" \
  -d '{"query":"auth","tags":["auth"],"metadata":{"category":"bug_fixes"}}'

Two more levers worth knowing: "query_rewrite":true expands the query into 2-3 variants and fuses the results (slower, better recall — reach for it when a first attempt comes back thin), and "as_of":"<RFC3339>" is time-travel recall, returning the facts that were true at that instant, including ones since superseded.

Browse without a query

To list memories by tier/tag/category instead of searching — "show me everything categorized bug_fixes", "all procedural memories" — use GET /v1/memories with repeatable tag and `meta=

Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the memory skill do?

Persistent long-term memory via memini. Use to remember durable facts, decisions, and preferences, and to recall relevant context before acting. Triggers when the user says "remember", "what do you know about", or when starting a task that may have prior context.

How do I install the memory skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the memory skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare memory with