/gmem:gmem-checkfrom gmem
Validates gmem memory files against structural rules: layout, naming, indexes, frontmatter, and link resolution. Reports issues with the skill that fixes each. Read-only — use before committing memory or after hand edits.
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.
A fast, read-only check of every gmem folder. It answers two questions: does memory follow gmem's rules, and is its format right. It writes nothing.
gmem-tidy goes further: it checks content against the real code and fixes things
with the user. Run gmem-check often; run gmem-tidy now and then.
Resolve the gmem config first, using the rules in gmem-setup. This skill reads every
kind: <memory>, <note>, <rules>, <precedents>, <learnings>, <proposals>,
<retro>, each <location.<kind>>/<memory_dir>/<kind>/. A folder that doesn't exist
has nothing to check; skip it.
Check each rule mechanically. Every finding gets a rule id, a level, the file, and the skill that fixes it.
| Rule id | Level | Check | Fix with |
|---|---|---|---|
layout.active-flat | error | No topic file sits directly under <memory>/active/; only index.md, correction/ and reference/ | gmem-migrate or gmem-tidy |
layout.unknown | warn | No folder or file in a kind's folder that the layout in gmem-setup does not list | gmem-tidy |
name.learning | error | <learnings>/<slug>.md: lowercase kebab-case, no date prefix | gmem-tidy |
name.retro | error | <retro>/YYYY-MM-DD-<slug>.md | gmem-tidy |
name.note | error | <note>/YYYY-MM-DD_HHMM_<topic>.md | gmem-migrate |
name.ledger | warn | A file directly under <memory>/ is named YYYY-MM-DD_HHMM_<topic>.md | gmem-migrate |
index.missing | error | Every file in <rules>/, <precedents>/ and <memory>/active/ (both categories) has a row in that folder's index.md. A folder with files and no index.md fails for every file | gmem-tidy (rules and precedents: the human adds the row) |
index.dangling | error | Every row in those index.md files names a file that exists | gmem-tidy |
index.duplicate | warn | No file has two rows in one index | gmem-tidy |
note.duplicate-topic | warn | No two notes share a topic (the part after the timestamp, compared loosely: az-data-volume and az-data-volume-cli are one topic) | gmem-note (merge into one) |
rules.single-file | error | No rules.md file in place of the rules/ folder | gmem-migrate |
Signals that need judgment. Report these as warn and never as errors, because a
mechanical check can be wrong:
| Rule id | Signal | Fix with |
|---|---|---|
learning.diary | A learning written in the first person ("I", "we"), or with a timeline ("today", "then", a date in the body) | gmem-judge |
learning.multi-fact | A learning with more than one heading, or a list of separate facts | gmem-judge |
correction.incomplete | A file in active/correction/ (other than lessons.md) that lacks one of: what was done wrong, the exact words that caught it, the signal to recognize it, what to do instead | gmem-tidy |
For each .gmem/ folder, check whether it has a .typdoc/config.json.
With typdoc. Run it and take its findings as they are:
TYPDOC_DIR=<that .gmem/ folder> typdoc validate --json
Exit 0 is no errors, exit 2 is at least one error; the report is on stdout either way.
Keep typdoc's rule ids (frontmatter.types, body.links, and the rest). If typdoc is
not on PATH, try ~/.local/bin/typdoc; if it is missing, say so and fall back to the
check below.
Without typdoc. Check these yourself:
| Rule id | Level | Check |
|---|---|---|
fm.learning | error | A learning has author and created (a YYYY-MM-DD date). reviewer may be empty |
fm.retro | error | A retro has author and created |
fm.proposal | error | A proposal has author and created |
fm.note | error | A note has status, one of in-progress, blocked, done |
fm.parse | error | A frontmatter block that is not valid YAML |
links.body | error | A relative Markdown link in any memory file points at a file that exists |
Memory under <memory>/, rules and precedents have no required frontmatter.
The required fields in the fm.* rows must match the base schemas in the
gmem-extensions plugin (gmem-typdoc/schemas/). If you change one, change the other
in the same commit.
If typdoc is installed but not set up, mention once that gmem-typdoc sets it up.
Group the findings by folder, then by rule id:
<project>/.gmem 2 errors, 1 warn
index.missing memory/active/reference/staging.md has no row in active/index.md → gmem-tidy
fm.note note/2026-11-19_1200_x.md: status `wip` is not allowed → gmem-tidy
note.duplicate-topic note/…_seed-script.md and note/…_seed-script-fixtures.md → gmem-note
~/.gmem clean
End with one line: the totals, and whether anything needs fixing before a commit (any error). If there are no findings, say so in one line.
gmem-tidy.error.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
13 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-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./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.npx claudepluginhub thaitype/gmem --plugin gmem