How this skill is triggered — by the user, by Claude, or both
Slash command
/sage:learnThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- Announce: "Sage → learn workflow." before starting work
Deliberate knowledge capture. Use to onboard to a new codebase, deeply understand a module, or build persistent memory for a project area.
If a path is specified, that's the target — deep dive. If no path, broad scan of the whole project.
Sage: What would you like to learn?
[1] Broad scan — learn the project structure, stack, patterns, conventions [2] Deep dive — learn a specific module, service, or area [3] Something else — describe what you want to understand
Search sage-memory for any prior knowledge about this project or area. Don't re-learn what's already known — build on it.
If prior knowledge exists, summarize: "Sage: I already know [X] about this area from previous sessions. I'll focus on what's new or missing."
Before storing knowledge, present key findings to the user. Wrong knowledge stored in memory persists into future sessions and causes confident wrong actions.
Findings quality checklist — for each finding, verify:
ls? "Has a src/ directory" is inventory. "All business
logic lives in src/domain/, handlers are thin wrappers" is insight.If a finding fails any criterion, improve it before presenting.
Sage: Here's what I found about [area]:
[A] Looks correct — store in memory [R] Some findings are wrong — let me correct them
Do NOT present vague findings and rely on the user to approve them. The user may click [A] without scrutiny. The quality gate is YOUR responsibility, not the user's.
If the user corrects any findings, update before storing. Store the correction as a self-learning entry (Rule 6).
Store each finding by calling the sage_memory_store MCP tool directly.
Each call stores one focused insight:
sage_memory_store(
content: "detailed finding — what, why, implications",
title: "Short specific title (5-15 words)",
tags: ["domain-tag", "area-tag"],
scope: "project"
)
For broad scans, aim for 10-20 calls covering:
For deep dives, aim for 5-10 calls covering:
Tag entries appropriately:
billing, auth)ontology tag for entity relationships and dependencieslearning tag for gotchas or non-obvious behavior discoveredIf sage_memory_store is not available, fall back to .sage-memory/
files. For each finding, create a file using the format defined in the
memory skill's Storage Priority section. Filename = kebab-case title.
Save a human-readable report to .sage/docs/memory-{name}.md.
Follow the memory skill's references/knowledge-report.md guide:
Sage: Learning complete — [area name]
Knowledge stored: • [X] memories in sage-memory • Report: .sage/docs/memory-{name}.md
Key findings: • [Top 3-4 insights, one line each]
[C] Continue — learn another area
Next steps: /build — spec → plan → implement → verify /research — interview → JTBD → opportunity map /reflect — review what you learned, extract patterns
Type a command, or describe what you want to do next.
npx claudepluginhub xoai/sage --plugin sageIntegrates sage-memory into Sage workflows for persistent knowledge across sessions. Supports automatic store, recall, and structured learning via MCP or filesystem fallback.
Structured knowledge acquisition for unfamiliar codebases, APIs, or domains using deliberate model-building with feedback loops. Use when encountering unfamiliar territory or conflicting sources.
Captures patterns, decisions, gotchas, procedures, and feature knowledge from conversations into durable skills for on-demand reuse. Invoked via /learn or 'please remember'.