/karak-meta:record-learning-candidatefrom karak-meta
Records a one-line pointer to today's conversation log into auto-memory when a Stop hook injects a learning candidate instruction with transcript path and date. Accumulates grep-able breadcrumbs across sessions.
Ships in karak-meta. 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 karak-meta plugin installs a Stop hook that runs on Stop events (when Claude attempts to end an agent turn). The hook checks whether ≥24h have elapsed since the most recent learning-candidate-*.md in the auto-memory directory; the silent window is exclusive on the upper bound (strict <), so an mtime exactly 24h old falls outside it and fires. If the gate fires, the hook injects a short instruction into the next turn telling you to use this skill. The hook also passes:
transcript_path — absolute path to the current session's .jsonl transcriptdate — today's date in YYYY-MM-DD (local time)since — UTC timestamp of the previous record (ISO-8601), or the literal four-character sentinel null if no prior record exists. The sentinel is plain text, not JSON.If the hook did not fire (no instruction in context, no transcript_path mentioned), do not run this skill spontaneously — the user did not ask for it.
A single Markdown memory file plus a one-line entry in MEMORY.md. The point is to leave a breadcrumb you can grep back to later, not a full summary.
~/.claude/projects/<encoded-cwd>/memory/learning-candidate-<YYYY-MM-DD>.md
The encoded directory is the same one that already holds MEMORY.md and other auto-memory files in this session. Resolve it by stripping the filename off the path of an existing entry like MEMORY.md. Do not hardcode the project name.
If a file for today's date already exists, append to it rather than overwriting. The 24h mtime gate makes same-day collisions improbable, but timezone shifts (e.g. DST), manual hook reruns, and edits that bump mtime without writing a new record can still produce them. Append a new bullet under a fresh ## <HH:MM> header.
---
name: learning-candidate-2026-05-18
description: Learning-candidate pointer for 2026-05-18 — keywords: <≤31char grep string>
metadata:
type: reference
---
## 14:23
- **Transcript:** `/Users/.../<session-uuid>.jsonl`
- **Keywords:** `<≤31char grep string>`
- **Hook range:** since `<since-iso>` until `<now-iso>`
- **Why this might matter:** <one-sentence reason a future session might want to grep this back>
The Keywords field is the load-bearing part. It is the string a future you will grep -l for across learning-candidate-*.md files when trying to remember "did I work on X recently?". Pick it so that:
+; a single keyword wastes the budgetIf the session genuinely had no learning worth a pointer (e.g., a chat that was all clarification questions), still write the entry but say so explicitly — Keywords: <no learning — clarify only> — so you don't re-scan the same dead turn next time the hook fires.
Append exactly one line to MEMORY.md under any existing header (or at the end):
- [Learning 2026-05-18](learning-candidate-2026-05-18.md) — <same ≤31char keyword string>
Do not add a fresh section header for every entry; that pollutes the index. If today's entry is already indexed (appending to an existing file), skip this step.
You have the full conversation context loaded already — that is by design. The hook does not ship the transcript bytes; it relies on you using your own context window as the source of truth for "what happened since the last hook fire".
karak-meta Stop hook 24h gateCloud Run 404 rewrite fixSwiftData V2 migration rollbackMSW resetHandlers afterEachtranscript_path, date, and since. If the since value is the literal four-character text null, treat it as "no prior record" — do not put the word null into the memory file body; either omit the Hook range: start ("since first record") or write n/a.MEMORY.md). Construct the new filename from date.Hook injects: transcript_path=/Users/x/.claude/projects/-Users-x-foo/abc.jsonl date=2026-05-18 since=2026-05-16T11:02:00Z
Output file learning-candidate-2026-05-18.md:
---
name: learning-candidate-2026-05-18
description: Learning-candidate pointer for 2026-05-18 — keywords: karak-meta Stop hook 24h gate
metadata:
type: reference
---
## 14:23
- **Transcript:** `/Users/x/.claude/projects/-Users-x-foo/abc.jsonl`
- **Keywords:** `karak-meta Stop hook 24h gate`
- **Hook range:** since `2026-05-16T11:02:00Z` until `2026-05-18T05:23:00Z`
- **Why this might matter:** First implementation of the Stop-hook-based learning-pointer flow; details around 24h-boundary handling and stop_hook_active loop guard live in this transcript.
MEMORY.md gets: - [Learning 2026-05-18](learning-candidate-2026-05-18.md) — karak-meta Stop hook 24h gate
Today's file already exists from this morning. Append a new ## HH:MM section to the same file. Do not touch MEMORY.md.
## 22:11
- **Transcript:** `...`
- **Keywords:** `<no learning — clarify only>`
- **Hook range:** since `...` until `...`
- **Why this might matter:** Logged so the 24h window advances; nothing to recover here.
The pointer is still useful: it tells future-you "you already looked, there is nothing there".
fixed the Cloud Run rewrite). Future-you will grep for nouns (Cloud Run rewrite), not verbs.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub karak/karak-claude-plugin --plugin karak-meta