Skip to content
rysweet avatar

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
View on GitHub

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, and debugging.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 -y

Installs 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:

  1. Extracting learnings from session transcripts at Stop hook
  2. Storing learnings in structured YAML format (~/.amplihack/.claude/data/learnings/)
  3. Injecting relevant past learnings at SessionStart based on task similarity
  4. Managing learnings via /amplihack:learnings capability

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

Similar to Session Learning

More Memory & Context