Session Learning
Cross-session learning that extracts session insights and injects relevant past learnings at start.
- CCM score
- 55 of 100
- skills.sh installs
- 156
- GitHub stars
- 77
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers extraction at session stop and injection at session start, using keyword matching for relevance
- Stores learnings in five YAML categories:
errors.yaml,workflows.yaml,tools.yaml,architecture.yaml, anddebugging.yaml - Enforces fail-safe behavior so learning extraction and injection never block session start or stop
- Designed to complement DISCOVERIES.md and PATTERNS.md, with management via
/amplihack:learnings
Install
$ npx -y skills add rysweet/amplihack --skill session-learning -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Session Learning Skill
Purpose
This skill provides cross-session learning by:
- Extracting learnings from session transcripts at Stop hook
- Storing learnings in structured YAML format (
~/.amplihack/.claude/data/learnings/) - Injecting relevant past learnings at SessionStart based on task similarity
- Managing learnings via
/amplihack:learningscapability
Design Philosophy
Ruthlessly Simple Approach:
- One YAML file per learning category (not per session)
- Simple keyword matching for relevance (no complex ML)
- Complements existing DISCOVERIES.md/PATTERNS.md - doesn't replace them
- Fail-safe: Never blocks session start or stop
Learning Categories
Learnings are stored in five categories:
Details
- Repository
- github.com/rysweet/amplihack
- Categories
- Memory & Context, Agent Workflow & Planning
- First seen
- Jun 3, 2026
Questions
What does the session-learning skill do?
The session-learning skill extracts insights from session transcripts when a session stops and stores them as structured YAML learnings. At session start it injects relevant past learnings into the context, using simple keyword matching for relevance.
How do I install the session-learning skill?
Run npx -y skills add rysweet/amplihack --skill session-learning -y in your project to install it. Once installed, the agent can store learnings across sessions and recall relevant ones when a new task begins.
Where does session-learning fit among other skills in its category?
It sits in the Memory & Context category alongside handoff and several caveman skills such as caveman-compress and caveman-learn. Its distinct focus is cross-session learning, complementing existing DISCOVERIES.md and PATTERNS.md files with structured YAML storage.
How does session-learning store and organize what it learns?
Learnings are kept in one YAML file per category, covering errors, workflows, tools, architecture and debugging. Each entry has keywords, a summary, an insight and a confidence score.
More from rysweet/amplihack
All 55- Anthropologist Analyst153
- Mcp Manager151
- Indigenous Leader Analyst146
- Dynamic Debugger145
- Multi Repo142
- Philosophy Compliance Workflow141
- N Version Workflow139
- Outside In Testing139
- Cybersecurity Analyst1.5K
- Lawyer Analyst700
- Psychologist Analyst465
- Mermaid Diagram Generator435
- Economist Analyst387
- Design Patterns Expert370
- Learning Path Builder347
- Philosopher Analyst329
- Storytelling Synthesizer316
- Documentation Writing313
- Political Scientist Analyst309
- Novelist Analyst295
- Knowledge Extractor286
- Socratic Review285
- Chemist Analyst282
- Physicist Analyst282
Similar to Session Learning
More Memory & Contextmemory-searchdavila7/claude-code-templates139 installsSearch conversation history and semantic memory to recall previous discussions, decisions, and context. Use when the user asks to "search memory", "what did we
honeyGreen-PT/honey-for-devs90 installsWrite less code and say less about it. Applies YAGNI and stdlib/native-first so the agent writes the minimum code that needs to exist, and responds tersely — st
context-recoveryjdrhyne/agent-skills37 installsAutomatically recover working context after session compaction or when continuation is implied but context is missing. Works across Discord, Slack, Telegram, Si
cavemanhoangnguyen0403/agent-skills-standard11 installs>
caveman-compresshoangnguyen0403/agent-skills-standard6 installs>
selvedgemasondelan/selvedge2 installsUse before editing a tracked entity (a DB column, table, function, API endpoint, dependency, or env var) and after any substantive change. Call prior_attempts f