/openltm:GitLearn [--commits N | --since YYYY-MM-DD]from openltm
Mines durable LTM memories from past git commits via the git-learner agent. Use for onboarding repos, backfilling history, or harvesting patterns after a sprint.
Ships in openltm. 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.
None: SKILL.md is the whole skill.
Extract durable LTM memories from past git commits by delegating the read-and-extract
work to the dedicated git-learner agent (shipped with this plugin). The agent
reads the diffs and stores memories via the learn MCP tool, so this path needs
no API key and keeps the main thread's context clean (raw diffs stay in the agent).
| Argument or request | Commits processed |
|---|---|
| (none) | last 10 |
--commits N | last N |
--since YYYY-MM-DD | all commits since that date |
gitLearnEnabled for the first time.The background post-commit hook (GitCommit.ts) calls an LLM API directly and needs
a configured key. This skill runs interactively instead, so it spawns the
git-learner agent via the Agent tool. Spawning an agent is valid here because
skills execute in the live Claude Code session, which has the Agent tool available.
The agent carries its own extraction rubric (signal-to-noise rules, category mapping,
storage fields), so this skill only has to supply the scope.
Determine the commit range from the arguments or the user's wording (default: last 10). Capture the repo root so the subagent runs git in the right directory:
git rev-parse --show-toplevel
git log --pretty=format:'%H %s' -<N> # or --since="<date>"
git-learner agent onceCall the Agent tool once with subagent_type: "openltm:git-learner" (plugin agents are namespaced by plugin name). A single agent processes
the whole batch — do not spawn one per commit. The agent's system prompt already holds
the extraction rubric, so the spawn prompt only supplies a <scope> block:
<scope>
REPO_ROOT: <repo root from git rev-parse --show-toplevel>
PROJECT_NAME: <repo directory basename>
COMMITS:
<one commit hash per line, from Step 1>
</scope>
Pass nothing else — no rubric, no instructions. The agent knows what to keep, what to skip, how to map categories, and which fields to store.
Relay the subagent's table and total. Memories are tagged git-commit:<hash> and
anchored to the changed files (so later commits flag them stale), queryable via
mcp__plugin_openltm_memory__recall. Tool names and categories: the Ltm skill
(../Ltm/SKILL.md).
mcp__plugin_openltm_memory__recall query="git commit patterns" — check what's
already stored, so the subagent reinforces rather than duplicates.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub rohirik/openltm --plugin openltm4 skills in this plugin
/LtmOpenLTM long-term memory: tool names, the recall-before / learn-after ritual, categories, project context, and what the hooks already inject. Use when the user says 'remember this', 'save this gotcha', 'what do we know about X', 'did we decide on Y before', 'forget that memory', 'link these memories', 'restore project context', 'set the project goal' — or before non-trivial work that may touch past decisions./MemoryReviewCuration pass over OpenLTM memory: triage pending session-end proposals, stale-flagged memories, conflicting or superseded entries, and low-value duplicates, then accept, revalidate, relate, or forget them with the user's approval. Use when the user says 'review memories', 'clean up memory', 'curate LTM', 'what's pending', 'any memory proposals', 'prune stale memories', or after a refactor that may have invalidated what LTM knows./Other plugins' skills for the same job