/gmem:gmem-setupfrom gmem
Sets up or inspects gmem's config, deciding where each kind of memory (memory, notes, rules, precedents, learnings, proposals, retros) is stored — project-level, user-level, or custom path. Offers four install modes and guides through configuration.
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.
Writes or shows gmem's config, which says where each kind of memory lives.
memory_dir = ".gmem" # folder name under each base
[location]
memory = "${USER}"
note = "${USER}"
rules = "${USER}"
precedents = "${USER}"
learnings = "${USER}"
proposals = "${USER}"
retro = "${USER}"
${PROJECT} (the git root, or the current directory if not a git repo),
${USER} (~/), or a custom path: absolute (/data/gmem), home (~/work/gmem),
built on a variable (${PROJECT}/docs), or relative (resolved against ${PROJECT}).<location>/<memory_dir>/<kind>/, e.g. memory = "${PROJECT}" →
<project>/.gmem/memory/. Skills name it by the kind in angle brackets: <memory>,
<note>, <rules>, <precedents>, <learnings>, <proposals>, <retro>.${USER} (Central memory, everything under ~/.gmem/), and
memory_dir is .gmem.<memory>/ YYYY-MM-DD_HHMM_<topic>.md ledger
active/ index.md, correction/, reference/
<note>/ YYYY-MM-DD_HHMM_<topic>.md
<rules>/ index.md + <topic>.md
<precedents>/ index.md + <slug>.md
<learnings>/ <slug>.md
<proposals>/ <slug>.md
<retro>/ YYYY-MM-DD-<slug>.md
Look for the config here, highest priority first. The config file is always at one of
these paths, whatever memory_dir says.
<project>/gmem-config.toml<project>/.gmem/gmem-config.toml~/.gmem/gmem-config.tomlAsk one question at a time and wait for each answer.
Do you know gmem already? If not, invoke gmem-ask; when it hands back, go on.
Which install mode? Each mode presets all seven keys:
| # | Mode | memory, note | rules, precedents | learnings, proposals, retro | Config file (recommended) |
|---|---|---|---|---|---|
| 1 | Central memory (default) | ${USER} | ${USER} | ${USER} | User level |
| 2 | Home Repo Pattern memory | ${PROJECT} | ${PROJECT} | ${PROJECT} | Project level |
| 3 | Dedicated agents memory | ${PROJECT} | ${USER} | ${USER} | User level |
| 4 | Custom | ask | ask | ask | none |
~/.gmem/.memory, note, rules, precedents,
learnings, proposals, retro): Project, User, or a custom path.Where should the config file live? User level (~/.gmem/gmem-config.toml, used by
every project) or Project level (<project>/.gmem/gmem-config.toml). Mark the
recommended one from the table; for Custom recommend neither.
Write all seven keys. Don't ask about memory_dir unless the user brings it up. Before
writing, show and confirm any file already at that path, and warn if a higher-priority
config exists (the new one is ignored until that is removed).
After writing, print each resolved folder and the config path, one per line
(memory -> /Users/you/.gmem/memory, …, config -> /Users/you/.gmem/gmem-config.toml).
Create folders only when something is first saved into them.
gmem-check checks format on its own, and
uses typdoc, when set up, to check frontmatter against schemas and find broken links.
gmem-typdoc later.gmem-typdoc (in the gmem-extensions plugin). If it isn't
available, show /plugin install gmem-extensions@gmem or
npx skills@latest add thaitype/gmem, and stop there.gmem-tidy decides fixes with the user through grilling and wayfinder (which calls
research), from mattpocock/skills. At the end of
setup, or when asked, check whether all three are available. Say so in one line if they
are; otherwise list the missing ones and show:
npx skills@latest add mattpocock/skills --skill grilling wayfinder research
Add -g for user level. Run it only if the user says so; a new skill may only show up in
a new session. They are optional: without them gmem-tidy asks one question at a time.
Writing memory itself (each kind has its own skill), explaining gmem (gmem-ask), and
moving files from an older layout (gmem-migrate).
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.