Command Palette

Search for a command to run...

Назад к скиллам
скилл № 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…

БесплатноБез исполняемых скриптов
eleboucherот eleboucher★ 35 звёзд на GitHub

Установить memory в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

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=

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл memory?

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.

Как установить скилл memory?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл memory запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить memory с