agent-plugins/skills/openviking-memory/SKILL.md
OpenViking is a long-term semantic memory store addressed by viking:// URIs.
This client has no lifecycle hooks, so nothing is recalled or captured
automatically — you drive both halves of the loop with the openviking MCP
tools:
find, search, recall, read, list, tree, grep, globremember, write, edit, add_resourceforget, healthUse only the tools the session actually registered — the exact set depends on
the server version, and tree, write, and edit are absent on older
deployments. If no OpenViking tools are registered at all, continue without
memory. Do not fabricate tool calls or fall back to raw HTTP.
find (fast, ranked results with URI + abstract + score) with
limit around 5-10. Use search when deeper intent analysis helps, or
recall for a server-assembled, token-budgeted context block. Scope with
target_uri when you know where to look, e.g.
viking://user/memories/experiences for prior task experience.read the
one to three exact file URIs likely to change how you execute. Ignore
sidecar files such as .abstract.md, .overview.md, and
.relations.json.Treat retrieved memory as advisory. Priority order: system and developer instructions, the current user request, current environment and tool evidence, then memory. Verify commands, paths, and versions against the present task; prior success never authorizes a destructive action now.
Because capture is not automatic here, durable information is lost unless you store it. When you encounter something worth keeping, persist it in the same session:
remember(messages) — the default. Pass the key exchange or a short factual
summary as role-tagged messages; the server extracts and files memories
(preferences, entities, events, experience) on its own. Use it when the user
says "remember this", states a lasting preference or decision, or when a
hard-won lesson (root cause, working procedure, environment quirk) emerges.write(uri, content) / edit — when you need an exact document at a known
location, such as curated notes under viking://user/ or shared reference
material under viking://resources/. Prefer edit over rewriting whole
files. If neither tool is registered, fall back to remember.add_resource — to import external documents or URLs as searchable
resources.What to persist: stable preferences and conventions, environment facts, decisions with their rationale, and reusable procedures or fixes. What not to persist: secrets and credentials, transient state, speculation, or bulk transcript dumps — store conclusions, not scrollback.
User asks to fix a failing deployment:
find with query deployment image pull failure private registry,
target_uri: "viking://user/memories/experiences".read the most relevant experience URI; check its assumptions against the
current cluster before applying its steps.remember a short summary of the root cause and the working fix so the
next session can recall it.