# Lesson resurface

> Lesson resurface is an open-source agent skill for knowledge and memory. Lets an agent find archived or superseded lesson files relevant to a task, as pointers. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/tansuasici/claude-code-kit/tree/main/.claude/skills/lesson-resurface
- **Repository:** https://github.com/tansuasici/claude-code-kit
- **GitHub stars:** 6
- **License:** MIT
- **Skill name:** lesson-resurface
- **Collection:** https://github.com/tansuasici/claude-code-kit
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-12-03

## About

Lesson Resurface searches a repository's tasks/lessons folder, including its archive, for lessons whose applies_to topic tags overlap with a short task summary. It ranks matches by tag overlap, lowers the score of archived and superseded entries, and drops an older lesson when the active lesson that replaces it is also in the results. The output is a short list of file paths with their topic tags, status, confidence and title, so the agent can decide which files to open.

The matching logic lives in a shell helper, scripts/lesson-resurface.sh, which reads only the YAML frontmatter of each lesson and never loads bodies. The skill is meant to run alongside the kit's session boot, which reads a codebase map, an optional project file and the top rules of the lessons index before any task work begins.

It expects a Claude Code setup using the claude-code-kit layout, a Unix shell environment to run the script, and lesson files whose frontmatter includes applies_to tags. Lessons without those tags will not appear in results.

## When your agent uses it

> Surface archived or superseded lessons whose topic tags match the current task — returns pointers (paths only), never bodies. Use when a task touches an area past sessions may have covered, to recover dormant context without bloating boot.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/tansuasici/claude-code-kit/tree/HEAD/.claude/skills/lesson-resurface)
- [License: MIT](https://github.com/tansuasici/claude-code-kit/tree/HEAD/.claude/skills/lesson-resurface)

## Features

- **Topic tag matching:** Matches a task summary against the applies_to vocabulary found in lesson frontmatter.
- **Pointer-only output:** Returns file paths and metadata without loading or summarising lesson bodies.
- **Ranked results:** Scores lessons by topic and tag overlap, confidence and status, returning the top five.
- **Supersession handling:** Drops a superseded lesson when its active replacement is also in the match list.
- **Archive search:** Includes the tasks/lessons/_archive folder so older lessons remain discoverable.

## Good for

- Check whether a past session already recorded lessons about authentication before changing login code
- Find archived lessons about dependency conflicts before upgrading packages
- Look up earlier lessons on database migrations before writing a new migration
- Recover lessons about a specific module before resuming a handoff task

## Install

### Claude Code

This skill ships in the `claude-code-kit` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add tansuasici/claude-code-kit
/plugin install claude-code-kit@claude-code-kit
```

Or copy only this skill to `~/.claude/skills/lesson-resurface`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/lesson-resurface &&
cp -R "$tmp/.claude/skills/lesson-resurface" ~/.claude/skills/lesson-resurface &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/lesson-resurface` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/lesson-resurface` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/lesson-resurface &&
cp -R "$tmp/.claude/skills/lesson-resurface" ~/.agents/skills/lesson-resurface &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/lesson-resurface` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/lesson-resurface` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/lesson-resurface &&
cp -R "$tmp/.claude/skills/lesson-resurface" ~/.cursor/skills/lesson-resurface &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/lesson-resurface` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/tansuasici/claude-code-kit.git --path .claude/skills/lesson-resurface
```

Or copy the folder to `~/.gemini/skills/lesson-resurface` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/lesson-resurface`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/lesson-resurface &&
cp -R "$tmp/.claude/skills/lesson-resurface" ~/.copilot/skills/lesson-resurface &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/lesson-resurface` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git
```

Then copy `claude-code-kit/.claude/skills/lesson-resurface` into your agent's skills folder as `lesson-resurface`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It needs the kit's scripts/lesson-resurface.sh helper and lesson files under tasks/lessons with applies_to tags in their frontmatter.

### Does Lesson resurface change any files?

No. The skill is read-only and does not modify any files.

### Does Lesson resurface load full lesson bodies?

No. The helper reads only the frontmatter block and returns paths with metadata, leaving the decision to open a file to the agent.

### Why might an archived lesson rank low?

Archived and superseded lessons are down-weighted rather than excluded, so a low-ranked archived hit is intentional and may still be useful.

### How do I install Lesson resurface in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/lesson-resurface to use it in all your projects, or to .claude/skills/lesson-resurface in one project. Or install the claude-code-kit plugin, which includes it: /plugin marketplace add tansuasici/claude-code-kit, then /plugin install claude-code-kit@claude-code-kit.

### Does Lesson resurface run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Lesson resurface?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Lesson resurface?

The closest alternatives to Lesson resurface are Lesson refresh, Mine learnings, Remember, Vibe reflect and compound and Academy guide.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Lesson refresh](https://ai-powered.com/skills/lesson-refresh): Lesson refresh is an open-source agent skill for knowledge and memory.
- [Mine learnings](https://ai-powered.com/skills/mine-learnings): Mine learnings is an open-source agent skill for knowledge and memory.
- [Remember](https://ai-powered.com/skills/remember-ajyadav013-2): Remember is an open-source agent skill for knowledge and memory.
- [Vibe reflect and compound](https://ai-powered.com/skills/vibe-reflect-and-compound): Vibe reflect and compound is an open-source agent skill for knowledge and memory.
- [Academy guide](https://ai-powered.com/skills/academy-guide): Academy guide is a free agent skill for ai models and llm tooling.
- [Learn](https://ai-powered.com/skills/learn): Learn is an open-source agent skill for knowledge and memory.
- [Recap](https://ai-powered.com/skills/recap-onebrain-ai): Recap is an open-source agent skill for knowledge and memory.
- [Memory distill](https://ai-powered.com/skills/memory-distill): Memory distill is an open-source agent skill for knowledge and memory.

---
Source: https://ai-powered.com/skills/lesson-resurface
