lesson_append
Append or overwrite a lesson section in the shared lessons file using a stable slug from the title. Accepts body, optional summary, and source tag for provenance.
Instructions
Materialize a class-level lesson into ~/.threadkeeper/lessons.md.
title is sluggified to a stable key — repeated calls with the same
title overwrite the existing section (idempotent).
body is markdown; goes verbatim into the section body.
summary is an optional one-liner rendered as a blockquote right
after the header. Use when the body is long and a TL;DR helps the
next agent decide whether to read further.
source is a provenance tag — typically a thread id ("Tabc123")
when written by review_thread, or "shadow" when written by the
shadow_review observer. Empty is fine.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| body | Yes | ||
| summary | No | ||
| source | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |