lessons-extractor

Extract structured lessons from Claude Code session logs into Markdown and JSONL outputs.

Updated Jan 22, 2026
One-click install
npx skills add https://github.com/BryceEWatson/bryce-labs-toolkit --skill lessons-extractor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lessons-extractor
Source: https://github.com/BryceEWatson/bryce-labs-toolkit/tree/main/skills/lessons-extractor
Command: npx skills add https://github.com/BryceEWatson/bryce-labs-toolkit --skill lessons-extractor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Extracts structured lessons from Claude Code session logs into Markdown and JSONL outputs to help teams capture patterns and accelerate learning.

Core Features & Use Cases

  • Summarize Claude Code sessions to identify tasks, decisions, and outcomes.
  • Extract reusable lessons and publish both human-readable (lessons.md) and machine-readable (lessons.jsonl) outputs.
  • Support incremental runs with run-scope guidance, redaction, and deduplication to maintain high-quality insights.

Quick Start

Run the lessons-extractor on a sample set of Claude Code session logs to generate lessons outputs under docs/ai/lessons-extractor.

Frequently Asked Questions about lessons-extractor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract lessons from Claude Code session logs?

You can extract lessons from Claude Code session logs by automating the summarization, extraction, and merging of session data. This process identifies tasks, decisions, and outcomes to generate structured, reusable lessons from your project experiments.

What is the best way to summarize Claude Code sessions and track tool failures?

The best way to summarize Claude Code sessions and track tool failures is to use an automated extraction process that identifies patterns across multiple sessions. This allows you to capture end-to-end outcomes and turn them into structured lessons.

Can I generate both Markdown and JSONL outputs for my AI lessons?

Yes, you can generate both human-readable Markdown and machine-readable JSONL outputs for your AI lessons. This dual-output approach allows developers to read insights directly while enabling downstream automated tools to parse the data efficiently.

Does this lessons extraction process support incremental runs and data redaction?

Yes, the lessons extraction process supports incremental runs with run-scope guidance to avoid reprocessing old logs. It also includes data redaction and deduplication features to maintain high-quality, secure insights across multiple runs.

Where are the extracted lessons and summaries stored in my project?

The extracted lessons and summaries are stored under the docs/ai/lessons-extractor directory in your project. This centralizes the human-readable lessons.md and machine-readable lessons.jsonl outputs for easy team access.