/gmem:gmem-stopfrom gmem
Records a correction after being told the agent was wrong or missed something. Captures the mistake, trigger words, signal to detect it next time, and the correct action. Invoked manually as /gmem-stop.
Ships in gmem. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Deliberately not something to reach for by inferring the moment. Relying on the model to notice on its own that it was just corrected, and to judge whether the correction is worth capturing, is exactly the failure this skill works around — so it is invoked explicitly, never triggered automatically.
Resolve the gmem config first, using the rules in gmem-setup. This skill uses the
location.memory key. <memory> below means <location.memory>/<memory_dir>/memory/.
Only if no config file exists, use the default: ~/.gmem/memory/ (Central memory).
Mention once that gmem-setup can change where memory is kept.
Entries follow the gmem-memory layout for corrections:
<memory>/active/correction/lessons.md.<memory>/active/correction/<topic>.md. If the
file is new, add its row to <memory>/active/index.md (file → when to read it) in the
same change. If a file on the same mistake already exists, update it instead of
starting a second one.Create folders only when writing into them.
Write the entry with:
A one-line entry in lessons.md still carries all four, compressed.
No filtering by triviality. Write it every time this is invoked, immediately, before continuing whatever else was in progress.
gmem-recall reads active/correction/lessons.md on every recall, so a lesson written
here is seen the next time work starts.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub thaitype/gmem --plugin gmem13 skills in this plugin
/gmem-askExplains gmem — why it exists, every kind of memory, the memory lifecycle, which skill to use when, and the four install modes. Use when the user asks "what is gmem", "how does gmem work", "which gmem skill should I use", "what is the difference between learn / memory / retro / note", "explain gmem memory types", "explain the install modes", or when gmem-setup calls it for a user who does not know gmem yet. Read-only — it explains and points to the skills that write; it changes nothing./gmem-byeEnd-of-session checkpoint that checks whether anything from the session belongs in a note, memory, retro, or learning, and records only what qualifies. Use proactively on any wrap-up or goodbye signal in Thai or English — "จบแล้ว", "พอแค่นี้ก่อน", "บาย", "done for now", "wrapping up", "good night", or "note/memory/retro if needed" — even if the user doesn't mention memory. Not for logging a correction — use gmem-stop./gmem-checkChecks gmem memory without changing it — whether files follow gmem's rules (layout, file names, complete indexes, one note per topic) and whether their format is right (required frontmatter, links that resolve), using typdoc when it is set up. Reports each finding with the skill that fixes it. Use before committing memory, after hand edits, at the start of gmem-tidy, or when the user asks to "check memory", "validate memory", "lint memory", or "is my memory OK". Read-only — to fix what it finds, use gmem-tidy, gmem-judge or gmem-migrate./gmem-judgeReviews the captured learnings and acts on each one — fixes small problems in place, or raises a proposal when a learning should be promoted, conflicts with a rule or precedent, or is unclear. Use when asked to "judge", "review the learnings", "triage learnings", "vet the inbox", or "clean up captured facts", or after many gmem-learn captures have piled up. Not for writing rules or precedents (a human acts on proposals), not for retros, and not for a full memory audit — use gmem-tidy./gmem-learnSaves one durable, timeless fact that was learned from the work itself — a gotcha hit, a constraint discovered, a mistake that turned out to have a general cause — as a learning card in gmem memory. Use whenever something like that turns up mid-work, when pulling lasting facts out of a retro, or when the user says "TIL" or "lesson learned", even if they never say "learning". Not for what happened in a session — use gmem-retro; not for how the project works when the user tells you, or for revising what a topic already says — use gmem-memory./gmem-mapThe map of the whole gmem garden — what kinds of memory exist, which layer wins on conflict, when to recall and validate, which skill records what, and the everyday rhythm. Open it at the start of a session or before non-trivial work in a project that uses gmem, when unsure which gmem skill fits, or when the user asks how memory works here. Read-only; it points to the skills that read and write.