Diagram Generate
diagram_generateSketch a teamshared.diagram/v1 from GitHub manifests and store it.
Reads the repo tree plus README, compose, package manifests, infra/, and
SQL migrations. Produces mode=generated Mermaid (C4-container or ER
sketch — not architecture recovery). Source metadata (github, ref,
commit, paths, content_hash) lives on the document; TeamShared is not a
git host. Pass work_id / project_id to attach. Refresh later
with diagram_sync.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Git ref (branch, tag, or commit) | main |
| kind | No | 'software' (C4-container sketch), 'data' (ER), or 'infra' | software |
| view | No | Diagram view label stored on teamshared.diagram/v1 (defaults: C4-container / ER / containers) | |
| agent | No | Override agent identity | |
| title | No | Shared-file title; defaults to '{github} {kind} {view}' | |
| github | No | owner/repo to read via the GitHub API. Optional when work_id= already has github= set — that work field is the coding repo pointer, not a second git host. | |
| work_id | No | Attach the new shared file to this work item (kind=artifact) | |
| project_id | No | Attach the new shared file to this project (kind=artifact) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||