/tm-forum-oda-consumer:generate-component-svg-diagramfrom tm-forum-oda-consumer
Generates SVG architecture diagrams for TM Forum ODA Components (TMFCxxx) from component.yaml or Helm charts, rendered with D3. Shows eTOM business activities, SID data entities, dependent APIs as sockets, exposed APIs as lollipops, and a legend.
Ships in tm-forum-oda-consumer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Turns ${CLAUDE_PLUGIN_ROOT}/knowledge/components/{TMFCxxx}/component.yaml into a standalone,
deterministic SVG in the style of the ODA Component Specification PDFs
(${CLAUDE_PLUGIN_ROOT}/knowledge/components/TMFC001/media/product-catalog-management-architecture.png
is the style reference).
The rendering is done by bundled Node scripts, so don't hand-write SVG or re-implement the layout — run the scripts, then check the result. Hand-built diagrams drift from the YAML and from each other; the script keeps every component consistent and re-runnable.
The scripts read ${CLAUDE_PLUGIN_ROOT}/knowledge/components/ by default wherever they are run
from, and write into diagrams/ under the current working directory (the
user's project) — so run them from the directory the user wants the output in.
${CLAUDE_PLUGIN_ROOT}/skills/generate-component-svg-diagram/scripts/node_modules is missing; needs Node ≥ 18).
Run npm install inside the scripts folder — npm install --prefix <dir> fails on some Windows npm versions:
(cd ${CLAUDE_PLUGIN_ROOT}/skills/generate-component-svg-diagram/scripts && npm install)
node ${CLAUDE_PLUGIN_ROOT}/skills/generate-component-svg-diagram/scripts/render.mjs TMFC001
node ${CLAUDE_PLUGIN_ROOT}/skills/generate-component-svg-diagram/scripts/render.mjs all
Output goes to diagrams/{id}-architecture.svg. The script prints the
counts it drew (dependent / exposed / eTOM / SID) — mention these to the user.
For a Helm chart (a reference implementation — any folder with a
Chart.yaml whose templates produce a kind: Component, including one
generated by implement-oda-component):
node ${CLAUDE_PLUGIN_ROOT}/skills/generate-component-svg-diagram/scripts/render.mjs --chart path/to/ProductCatalog
This runs helm template (Helm 3 must be on PATH), picks out the Component
document and writes diagrams/reference/{chart}-architecture.svg. Charts
often gate APIs behind values (MCP servers, dependent APIs, alternative
security APIs); the default render shows what deploys with default values.
Read values.yaml and the component template for if .Values… switches,
tell the user which optional APIs exist, and render a variant with
--set key=value (repeatable) or --values file.yaml when that's useful.node ${CLAUDE_PLUGIN_ROOT}/skills/generate-component-svg-diagram/scripts/verify.mjs TMFC001 # or no ids = all
node ${CLAUDE_PLUGIN_ROOT}/skills/generate-component-svg-diagram/scripts/verify.mjs --chart <dir> [--svg file] [--set k=v] [--strict] # charts
For charts this runs two passes. The first checks the SVG against the model it
was drawn from. The second is an independent audit (scripts/audit-chart.mjs)
that re-derives what should be linked straight from the helm template output —
every exposed API's implementation resolves and is linked, every declared
dependent API has a consumer, every env var naming an in-chart Service is drawn
as an integration, every external host is a known platform API. Read its
WARN lines and tell the user about any gap rather than hiding it; info
lines (e.g. init jobs with no lines) are usually expected. --strict makes
warnings fail the run..svg directly; for
many diagrams build diagrams/index.html with
node ${CLAUDE_PLUGIN_ROOT}/skills/generate-component-svg-diagram/scripts/gallery.mjs). Check that labels don't
collide and nothing spills outside the box.render.mjs)| Option | Default | Use when |
|---|---|---|
--out PATH | diagrams/ | user wants a different file or folder. Never write into ${CLAUDE_PLUGIN_ROOT}/knowledge/ — it is the read-only source corpus. |
--include security,management | core only | user wants security/management-function APIs too (e.g. TMF669 on the security side). Placeholder ids like exposedAPI_id are always dropped. |
--etom-levels all | 2 | user wants L3/L4 activities listed individually instead of rolled up under their L2. |
--components-dir DIR | ${CLAUDE_PLUGIN_ROOT}/knowledge/components | components live elsewhere. Also used to borrow readable API names and the component title for charts. |
--chart DIR | — | render a Helm chart instead of a published component. |
--set k=v, --values F, --release R | chart defaults, r1 | passed to helm template. |
For charts, --include defaults to all three functions — an implementation
deploys its management and security APIs and they're part of what the user
wants to see. Pass --include none for core only. For published specs the
default is core only, matching the PDF diagrams.
Content always comes from component.yaml; the PNG/.puml in media/ are only
a style reference. They often disagree (TMFC001's YAML has L2 eTOMs 1.1.19 and
1.2.8 that the PNG omits) because TM Forum publishes the YAML and PDF on
separate schedules — ${CLAUDE_PLUGIN_ROOT}/knowledge/components/AGENTS.md forbids reconciling them. So draw
the YAML and, if the user compares against the PNG, explain the difference
rather than "fixing" it.
Mapping rules (details in references/data-mapping.md):
*Function.dependentAPIs, left side; exposed ← *Function.exposedAPIs, right side. Grouped by function and colour-coded: core = subtle green, management = subtle blue, security = subtle red; within a group sorted by TMF number. Bold = required: true. An API can legitimately appear on both sides (TMF620 in TMFC001).metrics, MCP servers) are drawn as Name (apiType). Terse implementation names (productcatalogmanagement) get the readable name for that TMF id from the published components.implementation → Service → workload (Service selector matched to pod labels); dependent API whose name appears as a workload env value (e.g. API_DEPENDENCY_NAME). A declared dependent API that no env var names is wired by the Canvas at runtime, so it's linked to the microservice(s) that call the Canvas info service (TMF638, CANVAS_INFO_HOST_PORT) — the tooltip says "discovered at runtime via the Canvas info service".MONGODB_HOST=r1-mongodb, http://r1-x:8080/...).scripts/platform-apis.json: info.canvas.svc.cluster.local = TMF638 Service Inventory, the OpenTelemetry collector = OpenTelemetry (OTLP)) become management-function dependent APIs on the left, linked to the microservices whose env vars use them. Unknown external hosts are listed in a "Platform services used" note — if the user tells you what one is, add it to platform-apis.json rather than hard-coding it.
If the user expects a link that isn't drawn, the chart doesn't declare it in a way the model can see (e.g. a job that calls an API via a hard-coded URL) — say so rather than adding it by hand.<title>) carry API versions/resources and full eTOM/SID ids.Components without a component.yaml (TMFC013, 015, 032, 033, 051) are
unpublished — say so; don't invent a diagram from the .md.
Layout constants (spacing, colours, font) are the L and C objects at the
top of scripts/layout.mjs; data rules live in scripts/model.mjs. After any
change, re-run render.mjs all and verify.mjs so every component is checked,
not just the one being looked at.
references/data-mapping.md (opens in a new tab)scripts/audit-chart.mjs (opens in a new tab)scripts/gallery.mjs (opens in a new tab)scripts/layout.mjs (opens in a new tab)scripts/model.mjs (opens in a new tab)scripts/package-lock.json (opens in a new tab)scripts/package.json (opens in a new tab)scripts/platform-apis.json (opens in a new tab)scripts/render.mjs (opens in a new tab)scripts/verify.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
19 skills in this plugin
/assess-change-impactGiven a TM Forum ODA component (TMFCxxx), Open API (TMFxxx), or eTOM process (GB921 id such as 1.2.20) and a proposed change (deprecation, breaking version bump, removal), lists every TMFSxxx use case that depends on it, describes specifically how each one uses it, and drafts a maturity-weighted migration/impact report. Use this before deprecating, breaking, or removing a component, API, or eTOM process./audit-implementation-against-componentGiven a TMFCxxx component id and a description of an existing implementation, checks conformance at Component-boundary granularity, split explicitly the way component.yaml itself is split -- Core Function (does it expose/consume the real exposedAPIs/dependentAPIs) and Supporting Function (does it provide the managementFunction/securityFunction behaviors the spec describes) -- reported as two separate dimensions, never blended into one score. Use this to audit a component's full contract independent of any specific use case; see audit-implementation-against-usecase for flow-level auditing against one use case's narrative instead.Other plugins' skills for the same job
/audit-implementation-against-usecaseGiven a TMFSxxx use-case id and an existing implementation (codebase, API contract, or integration config), checks whether the implementation actually follows the use case's described flow and calls the right real APIs, flagging drift from spec. Use this to audit an existing system against ODA, not to design a new one.npx claudepluginhub tmforum-oda/oda-agent-skills-marketplace --plugin tm-forum-oda-consumer2 plugins in one repository ship this exact skill · first indexed Oct 20, 2026