/gmem:gmem-mapfrom gmem
Maps the gmem memory garden: memory kinds, conflict resolution order, recall/validation workflow, and which skill handles each operation. Open at session start or when unsure which gmem skill to use.
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: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The map of the whole garden: which beds exist, which paths to take, and which tool does
what. What is planted inside each bed is listed in that bed's own index.md.
The config decides where each kind lives. Before reading or writing memory, find it. Look in this order and use only the first file found:
<project>/gmem-config.toml<project>/.gmem/gmem-config.toml~/.gmem/gmem-config.tomlEach kind's folder is <location.<kind>>/<memory_dir>/<kind>/. A key missing from the
config takes its default.
Only when no config file exists, use the defaults (Central memory): every kind under
~/.gmem/<kind>/. Mention once that gmem-setup can change this. The full rules are in
gmem-setup. To understand the whole pattern or the install modes, run gmem-ask.
One test separates them — "will this still matter after this work is done?":
Highest to lowest: rules/ > precedents/ > active/ > learnings/. On any
conflict the higher layer wins. Notes and retro/ are context, not authority.
Use memory on every task — both to inform your work and to record what you learn. Don't let hard-won facts evaporate when a session ends.
gmem-recall. It reads, in order:
rules/index.md, precedents/index.md, active/index.md, and notes that are
in-progress or blocked, opening only what touches the task. Learnings, retros and
done notes are reference, opened only when needed.gmem-learn.| Skill | Use it for |
|---|---|
gmem-learn | Capture a durable fact. Reach for this constantly — any time you hit a gotcha or learn how something really works, even if no one asked. The primary memory action. |
gmem-memory | Maintain current understanding in active/: corrections and references, revised in place. |
gmem-note | Leave a status board for one piece of work, so the next session can pick it up. |
gmem-retro | At the end of a meaningful chunk of work, write the session diary, then pull durable facts out of it into learnings. |
gmem-stop | Manual-only: when the user says you got something wrong, invoke it to write the correction into active/correction/. Never triggered on its own. |
gmem-bye | On any wrap-up or goodbye, walk through note, memory, retro and learn, and record whichever has something worth keeping. |
| Skill | Use it for |
|---|---|
gmem-judge | Periodically tidy the learnings: revise rough ones in place, raise proposals in proposals/ for facts worth promoting to precedents or rules. Non-blocking — learnings stay valid regardless. |
gmem-tidy | Now and then, audit memory against the rules for each layer and the real code, decide fixes with the user, then apply them. |
gmem-check | Check, without changing anything, that memory follows gmem's rules and that its format is right. Run it before committing memory. |
gmem-setup | Choose an install mode, or inspect where each kind of memory is kept. |
gmem-ask | Explain gmem: the kinds of memory, the lifecycle, which skill to use when, and the install modes. Read-only. |
gmem-typdoc | In the gmem-extensions plugin: set up typdoc so gmem-check checks frontmatter against schemas. Optional. |
Promoting to a precedent or rule is a human step: add the file to precedents/ or
rules/<topic>.md, and its row to that folder's index.md (one row per file: file →
when to read it) in the same change.
Recall before working, validate before finalizing, capture learnings as you go, run bye when a chunk concludes, run the judge and tidy now and then. Never wait on review — memory is usable immediately.
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-memoryKeeps a curated, editable knowledge base by topic — corrections to past mistakes and reference notes on how things work — revised in place as understanding changes. Use when the user tells you how something works or wants to add to, update, or review what is known about a topic ("remember this", "save this", "add to memory", "update memory", "that's outdated now"). Not for a fact the agent learned from its own work — use gmem-learn; not for current project status — use gmem-note.