lesson-harvest

Extracts lessons from chat session transcripts and routes them to durable owners.

Updated May 31, 2026
One-click install
npx skills add https://github.com/4444J99/limen --skill lesson-harvest-4444j99
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: lesson-harvest
Source: https://github.com/4444J99/limen/tree/main/.claude/skills/lesson-harvest
Command: npx skills add https://github.com/4444J99/limen --skill lesson-harvest-4444j99

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Chat sessions with AI agents contain corrections, workarounds, and decisions that are lost unless someone reads every transcript and codifies them; this Skill processes session backlogs into durable, routed lessons so future sessions do not repeat the same mistakes. ## Core Features & Use Cases - Session queue and cursor management: Lists unprocessed transcripts per vendor via scripts/lesson-harvest.py and tracks processed state in censor/lesson-harvest.jsonl. - Lesson extraction and deduplication: Reads bounded session excerpts, identifies defects, corrections, and binding decisions, then checks precedents, levers, and memory files before writing anything new. - Routing cascade: Sends each new lesson to an existing terminus — a precedent entry, a his-hand lever, a memory file, or a board task through the conduct broker. - Use Case: When the lesson-harvest-backlog sensor reports unprocessed sessions, run a 10-session tranche to harvest lessons, mark each session processed, and report the remaining backlog count. ## Quick Start Ask the agent to process the newest ten unprocessed Claude chat sessions into lessons and report the remaining backlog.

Frequently Asked Questions about lesson-harvest

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

FAQPage Schema
How do I process chat sessions into lessons?▼

Run scripts/lesson-harvest.py with --queue to list unprocessed sessions, read each with vendor-insights.py cat-session, extract candidate lessons, route them to existing owners, then mark the session with --mark and the lesson list.

How do I harvest lessons from Claude session transcripts?▼

Use the --vendor claude flag on the queue and cat-session commands to enumerate and read Claude transcripts. Sessions are processed newest first in tranches of ten, and each is stamped processed in censor/lesson-harvest.jsonl.

Where do extracted lessons get stored?▼

Lessons route only to existing termini: repeatable corrections become precedents in censor/precedents.jsonl, human-only actions become levers in his-hand-levers.json, behavioral knowledge becomes memory files indexed in MEMORY.md, and buildable work becomes board tasks via the conduct broker.

Can I create a new registry or doc for a lesson that fits nowhere?▼

No. The skill forbids inventing new ledgers or registries; a lesson binds only when it names an existing registry path, predicate script, lever id, or precedent id. If nothing fits, the lesson is not recorded as a new destination.

What happens if a session contains no lessons?▼

Mark it with --none-found, since processed is a state rather than a success claim. Marking is idempotent, so re-marking an already processed session is a no-op.

Why are some vendors excluded from the lesson backlog?▼

Only vendors with a working enumerator appear in the queue; others are printed as excluded. Their backlog is unknown rather than zero, and exclusions must be carried verbatim into the final report.