用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Morrison-Lab/ai-config --skill learn命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | learn |
| description | Persist new pattern to memory. |
| user-invocable | true |
| allowed-tools | ["Bash","Read","Write"] |
Jot down a candidate learning without deciding right now whether it
belongs in committed memory. This is the staging half of a two-stage
pipeline; promote-memory is the review gate
that later decides which staged candidates actually get promoted.
record-learnings and memorize both write straight into committed memory
(CLAUDE.md, memories/*.md, or a repo's project memory) the moment
something looks worth remembering. That's the right call when you're
confident — an explicit user correction, a clearly general fact. But not
every candidate is that clear-cut mid-task: a pattern that might be a
one-off, a preference stated once that might not generalize, a workaround
whose root cause isn't confirmed yet. Committing those immediately risks
polluting the corpus with noise that later has to be found and pruned.
learn defers that judgment call to a dedicated review pass instead of
making it under time pressure mid-task.
record-learnings/memorize already handles
confidently — an explicit "remember that..." instruction, or a clearly
general, well-evidenced fact. Use those directly; staging is for the
uncertain middle ground, not a mandatory detour for everything.Append (never overwrite) an entry to the staging file:
~/.claude/projects/<project-slug>/memory/learn-staging.md. This is the
same auto-memory directory handoff/record-learnings/memorize already
use — it's local to this machine and was never going to be committed
regardless, so it's a natural staging area distinct from the ai-config
repo's actual committed corpus (CLAUDE.md, memories/*.md).
Each entry is a dated bullet, not a polished write-up — capture speed matters more than form here:
- 2026-07-06: [candidate] <what you noticed, one or two sentences, with the
concrete evidence — a command, a file:line, a quoted user statement>
Don't categorize, don't decide a destination file, don't check for
duplicates against the committed corpus — that's promote-memory's job, not
this step's. The entire point of learn is that logging it costs almost
nothing.
One line: "logged to staging" is enough. Don't produce a report.
promote-memory — the review gate this feeds. Staged entries sit in
learn-staging.md until that skill runs (on demand, or periodically) and
decides promote / discard / hold for each.record-learnings / memorize — the direct-write path for
learnings confident enough not to need review. learn doesn't replace
either; it's the additional path for the uncertain middle ground both of
those skip past by writing immediately.ums — a full-session sweep that also writes directly to committed
memory. promote-memory can absorb a learn-staging.md review as part of
a ums pass, or run standalone.learn for everything "to be safe" — most learnings are clear
enough for record-learnings/memorize to write directly; reserve
staging for genuine uncertainty, or the staging file becomes a dumping
ground no one reviews.promote-memory's job; keep this step fast and undecided.learn-staging.md is piling up unreviewed, run promote-memory rather
than letting it grow indefinitely.