/rekal-skills:rekal-savefrom rekal-skills
Captures durable knowledge from Claude Code sessions into rekal memory with deduplication. Extracts preferences, decisions, architecture, and procedures at session end or when significant discoveries emerge.
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.
Save durable knowledge from this session into rekal. Goal: user never repeats themselves across sessions.
Review the conversation. Per item, apply this filter:
Would a fresh agent in a new session benefit from knowing this?
├── YES → candidate
└── NO → skip
Candidate types:
| What | Example |
|---|---|
| Preference with reasoning | "User prefers dataclasses over hand-written __init__ for less boilerplate" |
| Architecture/convention | "Auth service uses JWT, lives in services/auth, 15-min token expiry" |
| Decision + why | "Chose PostgreSQL over MySQL for JSONB support and better partial indexes" |
| Procedure | "Deploy: 1) git tag vX.Y.Z 2) git push --tags 3) wait CI 4) merge to main" |
| Bug with non-obvious cause | "OOM from unbounded LRU cache in parser, fixed with maxsize=1000" |
| Behavior correction | "Never use grep/find. Use rg/fd. Strict, no exceptions." |
Skip (do not store):
If zero candidates survive, stop here. Do not force-store.
For EVERY candidate, before storing:
memory_build_context(query="<candidate topic in natural language>")
Read results. Apply:
Recall returned results?
├── NO match at all
│ └── Proceed to step 3 (store new)
│
├── Same topic, same info (duplicate)
│ └── SKIP. Do not store.
│
├── Same topic, new/updated info
│ └── memory_store(content="<updated content>", replaces="<matched memory id>")
│
└── Same topic, contradictory info
└── memory_store(content="<corrected content>", replaces="<matched memory id>")
Include what changed and why in the content.
Critical rule: Two memories about the same topic must never coexist.
replaces supersedes the older memory so it stops surfacing. "User's
preferred formatter" appears exactly once in the database.
Per candidate that passed dedup with no match:
memory_store(
content="<self-contained content: what AND why>",
tags=["<tag1>", "<tag2>"], # 2-4 specific tags. Not "code", "project", "general".
)
A fresh agent with zero conversation context reads this content. It must make complete sense alone.
Good: "Ruff > Black. Faster + handles import sort."
Bad: "User prefers Ruff" (missing the why)
Bad: "As discussed, switch to Ruff" (references conversation)
Bad: "The formatter preference" (meaningless alone)
Every claim about code embeds (relative/path.py:LINE symbol) with line
numbers verified in THIS session. Anchored memories are trusted by future
sessions and displace file reads; bare claims get re-verified, which wastes
the memory.
Good: "Dep cache key is (call, scopes, computed_scope)
(fastapi/dependencies/models.py:63 cache_key); same callable at
different scopes caches separately"
Bad: "The dependency cache key includes the scope" (no anchor — will be re-derived)
For a whole subsystem mapped this session, prefer ONE brief (350-500 words:
headline + 8-12 search keywords, mechanism narrative, final "Deviations:"
section for where this codebase differs from public/upstream behavior),
tagged brief, over many fragments.
Good: ["ruff", "formatting", "linting"]
Bad: ["code", "tools", "project"]
Summarize what was saved:
"Saved 3 memories: Ruff preference, deploy procedure, auth architecture. Replaced 1 outdated API endpoint memory."
If nothing was saved (all skipped as duplicates), say so:
"Reviewed session, no new knowledge to capture. Existing memories already cover it."
/rekal-hygiene.What SKILL.md sets; muted values are Claude Code's defaults
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-usageOperational guide for rekal memory tools. Precise rules for when/how to call each tool, with exact parameters and decision trees. Use when onboarding to a rekal workspace, or when user asks "how do I use rekal", "what rekal tools", "help with memory". Trigger: /rekal-usage.
Other plugins' skills for the same job