/mz-memory:memory-note <the note, verbatim as the user wrote it> [--log to append to Activity Log instead of Pinned] [--lesson to save a lesson to the lessons Inbox]from Mozg Project Memory
Saves a note or decision to project memory; --lesson saves what a correction taught. Use when the user wants something remembered ("remember that", "note this", "pin this decision") or corrects you. Not for CLAUDE.md or lookups (open MEMORY.md).
Ships in Mozg Project Memory. 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.
Appends a single dated entry to .mz/memory/MEMORY.md. By default the entry goes to the Pinned section (persistent, never auto-pruned). Pass --log to append to the Activity Log instead (FIFO, capped at 400 lines). Pass --lesson to add a lesson to the Inbox of .mz/memory/lessons.md, where the background curator later merges, keeps or drops it.
Records one note, decision, convention or invariant the user wants to outlive the current session, as a dated entry in .mz/memory/MEMORY.md.
With --lesson, records what a user's correction taught, so a later session does not repeat the mistake. After a correction, the prompt hook reminds you to run this mode.
## Lessons in that run's state.md, which the SessionEnd hook collects.mz/memory/MEMORY.md directly$ARGUMENTS — the note body. Inline modifiers, at most one:
--log — append to Activity Log instead of Pinned (use for transient activity-style notes)--lesson — save a lesson to the lessons Inbox instead of a noteIf $ARGUMENTS is empty, ask via AskUserQuestion. Never guess. The one exception is an empty --lesson, which Phase 2 covers.
.mz/memory/MEMORY.md.mz/memory/lessons.md${CLAUDE_PLUGIN_ROOT}/scripts/memory-note.shPass the text to NOTE_SCRIPT in single quotes, writing each ' inside it as '\''. Inside double quotes, the shell would run backticks and expand $ before the script saw the text.
| Phase | Goal | Details |
|---|---|---|
| 0 | Parse | Inline below |
| 1 | Confirmation gate (notes only) | Inline below |
| 2 | Save a lesson (no gate) | Inline below |
| 3 | Verification | Inline below |
--log or --lesson if present; remember it as target=log or target=lesson, otherwise target=pinned. If both are present, ask the user which one they meant.AskUserQuestion for the note text. Never guess. With target=lesson, go to Phase 2 instead.target=lesson, go to Phase 2; otherwise continue to Phase 1.This orchestrator (not a subagent) presents this gate. This step is interactive and must not be delegated.
Pre-read: Compute the exact entry that will be written (- [YYYY-MM-DD] <body>) and capture it into context.
Surface 1 — emit the plan message. Output the entry verbatim as a normal markdown chat message. Emit the full verbatim contents — do not substitute a path, summary, or placeholder. Structure:
## Memory note ready for review — memory-note
- [YYYY-MM-DD] <body>
Target section: <pinned|log>
File: .mz/memory/MEMORY.md
---
**Approve** → write the entry to MEMORY.md · **Reject** → discard, no file changes · reply with feedback to revise
Surface 2 — call AskUserQuestion. After the plan message, call AskUserQuestion. The question must not re-embed the entry — it lives in the plan message above.
The memory note above is ready for review.Memory noteResponse handling:
Bash NOTE_SCRIPT [--log] '<body>', then proceed to verification.A lesson goes to the Inbox without a gate. The curator reviews the Inbox later, and every session is told that lessons never override the user.
WHEN <situation> → <what to do> — WHY <cause>. Keep it to about 40 words, under LESSON_MAX_CHARS, with concrete paths, commands and flags, and no secrets. If there is neither a lesson nor a correction to draw one from, ask via AskUserQuestion.(review), (failure) or (change) when it came from one of those. Untagged lessons are filed as corrections.Bash NOTE_SCRIPT --lesson '<lesson>', then proceed to verification.After the script runs, output a visible final block:
Memory note written.
File: .mz/memory/MEMORY.md
Section: <pinned|log|lessons inbox>
Entry: <verbatim entry line>
For a lesson, File is LESSONS_FILE and Entry is the line the script printed after Wrote to lessons inbox:. If the script exited non-zero, follow Error Handling.
| Rationalization | Rebuttal |
|---|---|
| "skip the gate, just write it" | a wrong note pollutes pinned memory across every future session |
| "shorten the note to fit" | the user will not notice the loss until the lost detail matters |
| "default to Activity Log" | log entries roll off; user-driven notes belong in Pinned |
| "gate the lesson too, to be safe" | lessons go straight to the Inbox by design; the curator is the review |
| "the fix is enough, skip the lesson" | without the lesson, the next session makes the same mistake |
| "pin the lesson so it sticks" | Pinned is for the user's notes; lessons are counted, merged and promoted instead |
MEMORY.md or lessons.md directly with Edit/Write instead of the helper script.$ARGUMENTS was empty.AskUserQuestion for the text. Never guess.memory-note.sh exits 2 on a lesson over LESSON_MAX_CHARS → shorten it and run again if you wrote it; ask the user to if they did.memory-note.sh exits 2 for any other reason, or 1 → surface stderr and stop.memory-note.sh reports duplicate → surface the message; do not retry.This skill is single-shot — no .mz/task/ state file is created. The only durable artifact is the line added to MEMORY.md, or to the Inbox of lessons.md.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
2 skills in this plugin
npx claudepluginhub doctormozg/claude-pipelines --plugin mz-memory