/gmem:gmem-learnfrom gmem
Captures one durable, timeless fact as a learning card in gmem memory. Use when discovering gotchas, constraints, or generalizable mistakes mid-work or during retros.
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.
Capture one durable fact as a recipe card under <learnings>/. A learning is what you now know about the world — useful to anyone, indefinitely, even someone who never saw the painful session that produced it. A learning is valid and usable the moment you capture it — it does not wait for any review. gmem-judge later tidies learnings and may propose that the strongest ones be promoted to precedents/ or rules/, but that is optional and non-blocking.
Resolve the gmem config first, using the rules in gmem-setup. This skill uses the
learnings key, and retro when extracting from a retro. <learnings> below means
<location.learnings>/<memory_dir>/learnings/ and <retro> means
<location.retro>/<memory_dir>/retro/. Only if no config file exists, use the
defaults: ~/.gmem/learnings/ and ~/.gmem/retro/ (Central memory). Mention once
that gmem-setup can change where these are kept.
I. True regardless of which day or project hit it. → goes here.gmem-retro.The test: "Will this still matter after the work that produced it is finished?"
gmem-retro.I, no timeline, no story. State the fact, not the journey that produced it.Example of the move — turn a diary sentence into a recipe card:
Diary (retro): "Spent two hours today fighting the iii-engine install, the binary kept failing on this machine, eventually gave up."
Recipe card (learning): "iii-engine has no prebuilt binary for this arch — anything depending on it needs the Docker fallback."
<retro>/) → read it, pull out each durable fact, and write one learning file per fact. Distil — do not copy the narrative across.mkdir -p <learnings>gmem-retro, not here.iii-engine-no-prebuilt-binary, aca-sidecar-no-host-network).<learnings>/<slug>.md — no date prefix. Learnings are timeless; only retro carries a date in the filename.---
author: <agent name or person capturing this>
reviewer:
created: YYYY-MM-DD
---
Leave reviewer empty. An empty reviewer just means gmem-judge has not looked at this one yet — it does not mean the learning is unusable. The learning is valid right away. Do not fill reviewer in from this skill.I, no timeline.gmem-judge / index search — for now, use judgement.)When extracting from a retro, repeat steps 2–7 once per durable fact you find.
<learnings>/<slug>.md — no date prefix (timeless fact)author, reviewer (empty — gmem-judge fills it once it has looked), createdgmem-retro).reviewer yourself — that is gmem-judge's job; an empty field just means the judge hasn't looked at it yet, not that the learning is unusable.precedents/ from here — that is a human review step handled by a later skill.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-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.