From continual-learning
Incrementally extract recurring user corrections and durable workspace facts from transcript changes, then update AGENTS.md with plain bullet points only. Use when the user asks to mine previous chats, maintain AGENTS.md memory, or build a self-learning preference loop.
How this skill is triggered — by the user, by Claude, or both
Slash command
/continual-learning:continual-learningThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Keep `AGENTS.md` current using transcript deltas instead of full rescans.
Keep AGENTS.md current using transcript deltas instead of full rescans.
AGENTS.md read from git after fetching latest (see Workflow steps 1–2)~/.cursor/projects/*/agent-transcripts/*.jsonl~/.claude/projects/*/*.jsonlCollect all workspace paths for this repo, not just the current one:
git worktree list --porcelain and collect every line starting with worktree .
Each gives an absolute path to a worktree checkout.For each worktree path, derive transcript directories for both tools:
/ with - and dropping the leading slash
(e.g. /Users/sam/github/data-dbt → Users-sam-github-data-dbt).
Transcripts live in ~/.cursor/projects/<slug>/agent-transcripts/.- and uses the same slash-to-dash transform
(e.g. -Users-sam-github-data-dbt).
Transcripts live directly in ~/.claude/projects/<slug>/.Check all directories. Skip any that don't exist. This ensures transcripts from every worktree of the same repo are processed, so learnings are not siloed to a single checkout.
git fetch origin before
reading anything. This ensures you're working with the most recent version of
the continual-learning branch, not a stale local ref.git show origin/continual-learning:AGENTS.mdgit show origin/<default-branch>:AGENTS.md
(detect default branch via git symbolic-ref refs/remotes/origin/HEAD).AGENTS.md in the workspace root.AGENTS.md:
AGENTS.md
to a temp file (e.g. /tmp/proposed-agents-<pid>.md), then run the helper script
whose path is provided in the hook trigger message: bun run <script-path> <tmpfile>.
The script commits to the continual-learning branch and pushes to the remote.
It retries up to 3 times on push conflicts (fetch-reset-reapply). Falls back to
writing AGENTS.md directly to the workspace root only if there's no remote.## Learned User Preferences## Learned Workspace FactsKeep an item only if all are true:
Never store:
{
"version": 1,
"transcripts": {
"/abs/path/to/file.jsonl": {
"mtimeMs": 1730000000000,
"lastProcessedAt": "2026-02-18T12:00:00.000Z"
}
}
}
npx claudepluginhub samdu/continual-learning-plugin --plugin continual-learningAnalyzes session transcripts to extract learnings (corrections, discoveries, pain points) and updates CLAUDE.md, README.md docs. Auto-runs on session end or manual /reflect.
Extracts learnings from the current conversation and appends them to the project's CLAUDE.md as generalized rules. Captures non-obvious solutions and workarounds.
Captures conversation outcomes into CLAUDE.md — decisions, preferences, patterns, and conventions established during the session.