/rekal-skills:rekal-usagefrom rekal-skills
Operational guide for rekal memory tools. Covers when/how to call memory_build_context, memory_store, and memory_delete with exact parameters and decision trees.
Ships in rekal-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.
None: SKILL.md is the whole skill.
You have persistent memory via three rekal MCP tools. Follow these rules exactly.
| tool | purpose |
|---|---|
memory_build_context(query, project?, limit?, min_score?) | recall: hybrid search over stored memories |
memory_store(content, project?, tags?, replaces?) | persist one distilled fact; replaces=<old_id> updates an existing one |
memory_delete(memory_id) | remove a memory that is wrong or obsolete |
Admin operations (health report, export, bulk prune) live in the CLI:
rekal health, rekal export, rekal prune.
Relevant memories are injected automatically under '## rekal memory' on each
prompt. Call memory_build_context only when that block is missing and you
need prior knowledge, or for a different angle mid-task.
Queries go through hybrid search: BM25 keywords + vector similarity + recency
decay. Results below the min_score relevance floor (default 0.0625, ignores age) are dropped, so an empty
result means "nothing relevant", not "nothing stored".
Do: Use natural language with domain terms.
"JWT refresh token rotation policy": specific, has domain terms
"how to deploy auth service to staging": natural language, synonyms work
"user's preferred formatter and why": retrieves preferences with reasoning
Do not: Use vague, generic, or garbage queries.
"stuff": matches nothing useful
"code": matches everything
"the thing": no semantic content
project; rekal scopes memories to $REKAL_PROJECT automatically.memory_build_context call with a
reworded query.1. memory_build_context(query="<what you want to store>")
2. Read results:
├── Exact duplicate found → do nothing
├── Same topic, outdated info → memory_store(content="...", replaces="<old_id>")
└── No match → memory_store(content="...", tags=[...])
Never skip step 1. Duplicates degrade search quality. Two memories about the
same topic must never coexist: replaces supersedes the old memory so it
stops surfacing in recall.
memory_store(
content="Ruff > Black. Faster + handles import sort.",
tags=["formatting", "ruff"], # 2-4 specific tags. Not "code" or "project".
replaces="mem_abc123", # ID from recall results when updating a topic.
)
Never store raw dialogue, conversation turns, or verbose text.
Distill to the durable fact, then apply caveman-style compression:
Drop: articles (a/an/the), filler (just/really/basically/actually/simply), pleasantries, hedging (might/could/maybe). Replace "in order to" → "to". Remove "you should", "make sure to", "remember to". State actions directly. Merge redundant points.
Keep exact: technical terms, proper nouns, version numbers, values, reasons, causality (X → Y).
BAD: "User said yeah I think maybe we could try using Python for this"
GOOD: "Prefer Python for project"
BAD: "So we went back and forth and eventually decided to use Postgres because
the team already knows it and the data is relational anyway"
GOOD: "DB: Postgres. Team familiar, data relational."
BAD: "User prefers Ruff over Black for formatting because it's faster and handles import sorting in one tool"
GOOD: "Ruff > Black. Faster + handles import sort."
Default memory = one Fact: one distilled, compressed, self-contained fact, 1-2 sentences; a fresh agent with zero context must understand it.
Exception: a Brief summarizes a whole subsystem in ONE memory (350-500 words: headline with 8-12 search keywords, mechanism narrative, final "Deviations:" section), tagged brief.
Every claim about code carries an inline anchor (relative/path.py:LINE symbol) with line numbers verified this session; unanchored claims get re-verified.
Bad: "Use Ruff" (no reasoning)
Bad: "As discussed, switch to Ruff" (references lost conversation)
Bad: "The formatter thing" (meaningless)
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub janbjorge/rekal --plugin rekal-skills4 skills in this plugin
/rekal-hygienePeriodic memory maintenance and cleanup. Finds duplicates, contradictions, and quality issues in the memory database. Proposes fixes for user approval. Never auto-deletes or auto-modifies. Use when user says "clean up memories", "memory maintenance", "check memory health", or invokes /rekal-hygiene. Run monthly or when recall quality degrades.
/rekal-initBootstrap rekal memory for a project. Scans the codebase for architecture, conventions, dependencies, workflows, and config, then stores durable knowledge as properly typed, tagged, deduplicated memories. Use when starting rekal on a new project, or when user says "init rekal", "bootstrap memory", "populate rekal", "scan project". Trigger: /rekal-init.
/rekal-saveEnd-of-session memory capture with deduplication. Extracts durable knowledge, checks for duplicates, stores or replaces as appropriate. Use whenever a session wraps up, a task finishes, or the user says goodbye/thanks/done. Also use when significant preferences, decisions, or discoveries emerge mid-session. Make sure to trigger this skill proactively. Err on the side of capturing.
Other plugins' skills for the same job