SKILL.md--- name: memori description: > Ambient Memori long-term memory for Claude Code via local Bash. MUST TRIGGER on essentially every non-trivial user turn: run recall before drafting any substantive response, whether or not the user mentioned memory, a prior session, or past work. The default is to check memory first; do not wait to be asked. Always fire before external lookups (WebSearch/WebFetch) and before answering any question about preferences, prior decisions, constraints, project history, status, past work, or any non-trivial coding/research task. Skip only for trivial acknowledgements/closings, purely self-contained turns where prior context cannot possibly help, or when the user explicitly opts out. Use Advanced Augmentation after drafting the final response for every non-trivial turn, as the last memory step. Use recall.summary only for broad session summaries/orientation, compaction after context loss, feedback for memory quality, quota for limits, and signup only when explicitly requested. argument-hint: '<command> [--flags ...]' allowed-tools: Bash --- # Memori Claude Code Skill Thin CLI wrapper around Memori Cloud for Claude Code subprocesses. Memori is an ambient memory enhancement, not an explicit destination tool. Do not wait for the user to ask to "use Memori" before applying the memory lifecycle below. Claude Code's primary job remains answering the user, editing code, debugging, reviewing, and completing the requested work. Run commands from the Claude Code integration root: ```bash bun .claude/skills/memori/index.ts <command> [--flags ...] ``` Flags accept `--flag value` or `--flag=value`. ## Setup Configure credentials in `.claude/settings.local.json` (per-project, not checked into source control). Claude Code injects everything under `env` into every Bash subprocess, including this skill: ```json { "env": { "MEMORI_API_KEY": "your_memori_api_key", "MEMORI_ENTITY_ID": "stable_identifier_for_this_user" } } ``` Required: - `MEMORI_API_KEY` — Memori Cloud API key. - `MEMORI_ENTITY_ID` — any stable string that namespaces memory for this user/agent. If it is missing on the first command, pick a sensible default yourself (the machine hostname, or a generated UUID), write it to `.claude/settings.local.json` so it persists, and continue. If no sensible default can be inferred, ask the user. Auto-resolved (no setup required, override with flags or env if needed): - `MEMORI_PROJECT_ID` — defaults to `basename($CLAUDE_PROJECT_DIR)`, the Claude Code workspace folder name. Override per call with `--projectId`, or pin it by adding `MEMORI_PROJECT_ID` to the `env` block. - `MEMORI_SESSION_ID` — defaults to `$CLAUDE_CODE_SESSION_ID` for writes (`advanced-augmentation`) and for `compaction` (which by definition restores the current session). **Reads (`recall`, `recall.summary`) do not auto-apply session_id** — it is a narrowing filter on the age