publish_lesson
Publishes an anonymized, PII-free lesson to a shared public knowledge base for the specified framework or topic, making it discoverable and importable by other developers.
Instructions
Publish a lesson to the Cachly Public Brain (anonymized community knowledge base). Published lessons can be imported by other developers via import_public_brain. PII is stripped automatically. Visible under the framework/category tag. Returns { lesson_id, topic, framework, published_at } confirming the publish. Irreversible — once published to the public brain, lessons cannot be deleted via the MCP interface. Use learn_from_attempts or global_learn for private lessons; use syndicate for anonymized global sharing without framework tagging.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes | Topic key (used as public category) | |
| lesson | Yes | Lesson to publish (PII will be stripped) | |
| severity | No | Severity | |
| framework | No | Framework/platform tag (nextjs, fastapi, go, docker, etc.) | |
| instance_id | Yes | UUID of the cache instance |