export_markdown
Generate a human-readable KNOWLEDGE.md from knowledge items, grouped by scope and project. Publishes for org scope; returns markdown for local, team, or all scopes.
Instructions
Render knowledge to a human-readable KNOWLEDGE.md — grouped by scope then project, each item showing summary, kind, provenance (dec-NNN / claim origin), recall count and promoted date. cp1252 mojibake (em dashes, curly quotes) is normalized so the text is clean.
scope='org' (default): re-render the org knowledge repo's KNOWLEDGE.md from its knowledge.json and commit + push it beside the JSON, so the org repo's docs are always current. (This also runs automatically after any org promotion — direct-push commits both files together; PR mode puts both on the same PR branch.)
scope='local'|'team'|'all': render those scope(s) and RETURN the markdown without publishing — there is no repo to publish local/team docs to.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | org |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |