publish_lesson
Publish an anonymized lesson to the public brain for community sharing. Automatically strips personal information and tags by framework or category.
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 |
|---|---|---|---|
| instance_id | Yes | UUID of the cache instance | |
| topic | Yes | Topic key (used as public category) | |
| lesson | Yes | Lesson to publish (PII will be stripped) | |
| framework | No | Framework/platform tag (nextjs, fastapi, go, docker, etc.) | |
| severity | No | Severity |