/mori:wrapfrom mori
Wraps up a Claude Code session: extracts identity, writes a concise summary, publishes to cc-share and NATS, and triggers dream processing. Use at end of session for handoff or persistence.
Ships in mori. 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.
Read ~/.config/mori/identity.yaml for the name field. Note current hostname.
Write a concise session summary covering:
Keep it brief — bullet points, not prose.
Read the URL and key from secrets. Skip this step silently if either is absent.
CC_SHARE_URL=$(~/bin/get-secret.sh CC_SHARE_URL 2>/dev/null)
KEY=$(~/bin/get-secret.sh CC_SHARE_API_KEY 2>/dev/null)
DATE=$(date +%Y-%m-%d)
if [ -n "$CC_SHARE_URL" ] && [ -n "$KEY" ]; then
curl -s -X POST "${CC_SHARE_URL}/cc-share/session-${DATE}" \
-H "X-Api-Key: $KEY" \
-H "Content-Type: application/json" \
-d "{\"key\":\"session-${DATE}\",\"value\":\"<summary from step 2>\",\"ttl_seconds\":604800}"
fi
Set TTL to 604800 (7 days) so it persists across the week.
Publish a one-line wrap message: mori_nats_pub with message "<name> on <hostname>: <one-line summary of session>".
mori-msg_send(to="broadcast", type="broadcast", body="<same one-line summary as step 4>")
This makes the summary replayable via mori-msg_recv alongside the existing cc.> NATS stream.
Skip silently if the tool is unavailable.
Call mori_dream_run to flush any undreamed events.
Report what was written and where. No autonomous actions after.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
session-wrap, session-summary, nats-publish, dream-flush, mori
npx claudepluginhub fjwood69/mori --plugin mori10 skills in this plugin
/briefSession bootstrap — loads shared memories and team standards from the Mori server. Use at session start, or after a context compaction with --post-compact./consultStrategic guidance from the advisor model on a question, with optional focus area and depth. Use before consequential decisions or to review a plan./dreamRuns the dream pipeline that distils session events into durable memories. Use to flush undreamed events or check dream status./exportBundle the canonical memory set into one structured Markdown document for external-LLM review, audit, or dashboard download./ingestBootstraps the memory store from existing material (repos, PDFs, transcripts). Use to seed memory from a project or document./msgInter-agent messaging — send tasks, questions, and decisions to other Mori agents over NATSOther plugins' skills for the same job