/memsy:memsyfrom Memsy
Universal entry point for Memsy memory system. Parses user intent after /memsy slash command and dispatches to search, store, profile switch, or maintenance workflows.
Ships in Memsy. 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.
The user invoked /memsy <something>. Treat everything they typed after /memsy as the query for this skill. If they typed /memsy alone with no arguments, the query is empty.
This skill is the universal Memsy entry point — read the user's message after /memsy, classify intent (search / store / switch profile / list / doctor / setup), and run the matching Memsy workflow inline.
Apply these rules in order, first match wins. Be conservative — when ambiguous between SEARCH and STORE, default to SEARCH (mis-storing creates noise that's hard to undo; mis-searching is harmless).
| Query shape | Intent | What to do |
|---|---|---|
| empty / whitespace only | MENU | Show the short help menu below. |
starts with remember, save, note that, store, tag this as, let's remember, for future reference | STORE | Drop the leading verb; store the rest. |
starts with switch to, use profile, change profile, or org followed by a profile name | SWITCH | Switch active Memsy profile. |
starts with list, show, browse and mentions memories/recent | LIST | List memories — scoped to the current actor by default; org-wide only when the text signals all actors (e.g. all, global, all actors, everyone, org). |
is exactly doctor, health, status, check, or diagnose (one or two words) | DOCTOR | Run the /memsy-doctor workflow inline. |
is exactly setup, configure, init, set defaults, or onboard (one or two words) | SETUP | Run the /memsy-setup workflow inline. |
starts with mode, modes, proactive, confirm, permission, autocontext, or auto-context (with or without on/off/status) | MODE | Toggle a session-scoped behavior flag. |
| anything else — a question, topic, or noun phrase | SEARCH | Search memories with the query verbatim. |
Edge cases:
/memsy remember (verb only, no content) → ask "What would you like me to remember?"/memsy switch to (no profile name) → fall through to LIST profiles, ask which to switch to.remember.MENU (empty query)Call memsy_health once silently — only surface output if it errors. Then print:
Memsy is ready. What do you want to do?
/memsy <question> — search past memories
/memsy remember <fact> — store something for later
/memsy switch <profile> — change active org
/memsy doctor — health + identity check
/memsy setup — first-time defaults walkthrough
/memsy list — recent memories for the current actor
/memsy list all — recent memories across every actor
/memsy proactive on|off — auto-save preferences/decisions (session)
/memsy confirm on|off — ask before each save (session)
/memsy modes — show current mode state
Or just talk naturally — say "what did we decide about X" or "remember
that Y" and the recall / remember skills fire automatically (no slash).
If memsy_health errored, hand off to the memsy-setup skill instead.
STOREremember that we picked Postgres → we picked Postgres).msy_, sk_, ghp_, Bearer , etc.) → refuse. Say: "That looks like it contains a secret — Memsy stores in plain text. Paraphrase without it, or use a real secret manager."[memsy modes: ... confirm-before-store ...], surface the stripped content and ask Save? (y / n / edit "<new text>"). Proceed only on y or edit. On n, say "Not stored." and stop. If the mode line isn't in context, skip this step (user invoked /memsy explicitly — that's deliberate enough on its own).memsy_ingest with one event: content=<stripped substance>, ts=<current ISO 8601>, and kind matching the speaker the substance came from — "user_message" when the user is asserting it (the usual case), "assistant_message" when they're asking you to save something you produced. Don't blindly use user_message.✓ Stored: <first 80 chars>... plus event_id (first 8 chars).SWITCHswitch to work → work).memsy_use_org with profile=<name>.profile_name, org_label, base_url, actor_id.memsy_list_orgs, list available profiles, point at ~/.memsy/config.json for adding new ones.LISTFirst decide the scope from the user's text after list / show / browse:
all, global, everyone, everybody, every actor, all actors, org, or org-wide.Then:
memsy://actor/current to get the active actor_id, then call memsy_list_memories with that actor_id and limit=20. Head the output with: Memories for actor <actor_id> — use "/memsy list all" for every actor. If the resource read fails, fall back to the org-wide call and say so.memsy_list_memories with limit=20 and all_actors=true (no actor_id). Head the output with: All memories (every actor)./memsy <query> to search a specific topic."SEARCHmemsy_search with query=<user's query verbatim> and limit=8. Do not paraphrase.memsy_search actually returns (id, score, content, metadata, source_events, source_metadata):
Memsy results for "<query>" (N hits)
1. [score 0.87] <content, truncate to 200 chars>
2. [score 0.81] <content, truncate to 200 chars>
Do not invent fields. If the user needs timestamps or actor attribution, call memsy_get_memory for the specific result they want to dig into./memsy:memsy-doctor to check the active profile (memory may be in a different org).DOCTORRun the full /memsy-doctor workflow inline (don't recursively call the slash command — just do the work):
memsy_* tool exists, print the "MCP not loaded" diagnostic and stop.memsy_health + read memsy://actor/current + memsy://profile/current in parallel.MEMSY_API_KEY in launch shell, restart"ECONNREFUSED / ENOTFOUND → "Cannot reach <base_url> — check network or MEMSY_BASE_URL"/memsy-setupMODELets the user toggle Memsy behavior flags from chat without setting env vars + restarting. Three flags are toggleable in-session:
| Query phrasing | Flag | On effect | Off effect |
|---|---|---|---|
proactive on / proactive off / proactive (toggle) | MEMSY_PROACTIVE | Actively watch for save-worthy content (preferences/intents/decisions) and store via memsy_ingest. | Stop proactive saves; only explicit verbs / slash commands save. |
confirm on / confirm off / permission on / permission off | MEMSY_CONFIRM_STORE | Ask Save? (y/n/edit) before every single-item store. | Store directly without asking. |
autocontext on / autocontext off / auto-context on/off | MEMSY_SESSION_AUTOCONTEXT | Inject "recent memories" recall block at session start. Takes effect at next launch — already-running session is unaffected. | Don't inject auto-context at next launch. |
mode / modes / status (no on/off) | — | Show current state of all three modes. | — |
Read current state from your session context. Modes set at launch appear in the [memsy modes: ...] line emitted by the SessionStart hook. Subsequent /memsy <mode> on/off invocations override the launch state for the rest of the session.
Apply the change by:
Reply with this exact shape:
✓ Memsy mode: <flag> = <new state> (session-scoped)
To persist across restarts:
export MEMSY_<FLAG>=<value> # add to ~/.zshrc or ~/.bashrc
then restart Claude Code
CRITICAL — when turning proactive ON: The full proactive behavior instruction does NOT automatically enter context mid-session (the SessionStart hook already fired). You MUST emit the full instruction block below verbatim as part of your response so it enters your context and you can act on it immediately:
[memsy proactive mode — active from this turn]
For the rest of this conversation, actively watch for content the user clearly wants remembered, EVEN IF they don't say "remember that" or "save this". When you spot it, store it via memsy_ingest. Categories that qualify:
Proactive save workflow per qualifying item:
msy_/sk_/ghp_/Bearer), skip if already stored this session.Save? (y / n / edit "...") first. Otherwise store directly — proactive mode is pre-authorization.memsy_ingest: content=<substance>, ts=<ISO 8601>, metadata={"source":"claude-code-proactive","safe_to_delete":true}, and kind matching the speaker the substance came from — "assistant_message" if it's something you produced or concluded, "user_message" if the user stated it. Do NOT default everything to user_message.→ saved to Memsy: "<first 60 chars>..." (event <id>)After emitting the block above, immediately apply it to the user's CURRENT message. Scan back through the user's most recent message and any recent context for save-worthy content you may have missed. If you find qualifying content, store it now and acknowledge.
Special case — autocontext: changing it mid-session has no effect until next launch (the SessionStart hook has already fired). Make this explicit:
✓ Memsy mode: autocontext = on (effective NEXT session — SessionStart already fired this turn)
To make it take effect now: restart Claude Code with
export MEMSY_SESSION_AUTOCONTEXT=on # then `claude` from that shell
mode / modes / status with no direction → print the current state of all three:
Memsy modes — current session
proactive: on (toggled via /memsy)
confirm-before-store: off
autocontext: on (fires at next session start)
For each mode, indicate the source: (env) if from launch env, (toggled via /memsy) if changed in-session, (default off) if never set.
SETUPRun the full first-time-defaults walkthrough inline:
memsy_list_roles → show numbered list; if empty, ask user for role names + create via memsy_create_role.memsy_list_teams / memsy_create_team.memsy://actor/current, explain current value + source, offer agent-style / personal-handle / keep-current.memsy_set_defaults with the chosen roles, teams, actor_id, and persist="global"./memsy doctor to verify.Any tool call returning "tool not found", 401 / 403, ECONNREFUSED, or other MCP-side failures → hand off to the memsy-setup skill. Never fabricate substitute answers. Always be explicit when a store didn't actually land.
/memsy-doctor or other sibling slash commands — Claude Code can't nest slash invocations.memsy_search exactly as typed — no paraphrasing, summarizing, or "improvement"./memsy. Natural-language Memsy phrasing ("what did we decide", "remember that") is handled by memsy-recall and memsy-remember skills.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub memsy-io/memsy --plugin memsy4 skills in this plugin
/memsy-recallUse this skill when the user asks to recall past context, decisions, or what was discussed previously. Trigger phrases include "what did we decide", "remember when", "have we discussed", "context on X", "do we have anything about Y", "look up", "search past conversations", "find that thing about", or any retrieval-intent question about prior work. Calls memsy_search MCP tool with the topic extracted from the user's question./memsy-rememberUse this skill when the user explicitly asks to save, note, or persist a fact, decision, or piece of context for future sessions. Trigger phrases include "remember that", "save this decision", "note that", "let's remember", "store this", "tag this as", "for future reference", or any clear save-intent statement. Calls memsy_ingest MCP tool to persist the substance./memsy-setupUse this skill when Memsy MCP tools are unavailable or returning errors — symptoms include "tool not found", "memsy_health unavailable", 401/403 auth errors from Memsy, "ECONNREFUSED" or network errors to api.memsy.io, or when the user explicitly asks to "set up memsy", "install memsy", "memsy isn't working", "memsy auth error", or similar. Diagnoses the failure mode and walks the user through the fix without retrying the broken tool blindly.Other plugins' skills for the same job