/tm-forum-oda-consumer:draft-event-design-for-componentfrom tm-forum-oda-consumer
Drafts event definitions for TMFCxxx components following existing component.yaml eventNotification conventions. Use when a design needs new resource-level create/attributeValueChange/stateChange/delete events not already covered.
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.
None: SKILL.md is the whole skill.
"This component needs to publish or subscribe to an event that doesn't exist in its cached spec yet — what should it look like?" A Design-stage skill: it drafts an addition consistent with how every other cached component already expresses events, it doesn't invent a new event-modeling convention.
ODA-first, not ODA-only. Check whether the event this design needs is already covered by an existing eventNotification entry — on this component or, if the event really belongs to a dependent API, on the component that actually owns that API — before drafting a new one. Draft only what's genuinely missing.
eventNotification block${CLAUDE_PLUGIN_ROOT}/knowledge/components/{TMFCxxx}/component.yaml → spec.eventNotification.{publishedEvents,subscribedEvents}
Each entry is one API the component publishes events for (or subscribes to events from), shaped:
- hub: "/{{.Release.Name}}-.../tmf-api/{apiName}/hub" # publishedEvents only
implementation: "/{{.Release.Name}}-{EventServiceName}"
name: {ApiDisplayName}
port: 80
resources: [ {resourceName}CreateEvent, {resourceName}AttributeValueChangeEvent,
{resourceName}StateChangeEvent, {resourceName}DeleteEvent, ... ]
specification:
- url: {the API's real swagger/OpenAPI spec URL}
version: v{n}
apiType: openapi
id: TMFxxx
apiSDO: not_defined
A subscribedEvents entry additionally carries a callback field (the inbound hub URL this component registers against the source API's hub).
The resources naming isn't perfectly uniform across the corpus — confirmed by comparing multiple real components directly: some use {resource}CreateEvent/{resource}DeleteEvent, others drop the Event suffix on Create ({resource}Create) while keeping it on the rest, and casing conventions vary slightly. Fallback only, when Step 2's schema-defined event names aren't available: match the target component's own existing style if it already has at least one eventNotification entry — don't impose a different convention just because another component does it differently. If neither the schema nor this component's own precedent settles it, use the majority pattern ({resource}CreateEvent/AttributeValueChangeEvent/StateChangeEvent/DeleteEvent) and say explicitly that no stronger precedent was available.
The event must be tied to an actual resource defined in a real, cached OpenAPI schema — either this component's own coreFunction.exposedAPIs, or the dependent API whose event this actually is. Read the schema directly:
${CLAUDE_PLUGIN_ROOT}/knowledge/apis/{TMFxxx}/{TMFxxx}_v{version}.json → definitions / paths
Cite the exact resource name as it appears in the schema (e.g. productOffering, not a paraphrase). If the resource the design needs doesn't exist in any cached schema for this component's APIs, stop and say so — this skill drafts event definitions for real resources, it doesn't invent the underlying resource too (that's a schema-level gap outside this skill's remit; check ${CLAUDE_PLUGIN_ROOT}/knowledge/index/gaps-backlog.md or hand off to propose-component-or-api-extension if the API itself needs the new resource).
Before drafting anything, check whether another component already has an eventNotification entry for this exact API id (grep every component.yaml for the target API's id under eventNotification) — a component that depends on the same API as a subscribedEvents entry will already carry the identical, already-cached resources list. When one exists, that's a stronger source than re-deriving from the schema: reuse its resources/specification values directly (adjusting only the publisher-vs-subscriber-specific fields — hub instead of callback, an implementation path shaped for this component) rather than independently re-deriving the same list. Confirmed on a real pilot case: TMFC002's cached subscribedEvents entry for TMF716 carried the exact same 8-event resources list TMF716's own schema /listener/ paths independently implied — the two sources agreed, which is exactly the cross-check this step is for.
Check the schema's own paths for a /listener/{eventName} entry before inferring an event name from convention. Many TM Forum API schemas already declare their own canonical event names this way — e.g. TMF716's schema lists /listener/resourceReservationCreateEvent, /listener/resourceReservationAttributeValueChangeEvent, /listener/resourceReservationDeleteEvent, /listener/resourceReservationStateChangeEvent, and /listener/resourceReservationInformationRequiredEvent directly. When these exist, they're the authoritative event names for that resource — use them verbatim in the drafted resources list rather than deriving a name from Step 1's sibling-convention fallback, which is only for when the schema doesn't already spell this out.
Produce one eventNotification.publishedEvents (or subscribedEvents) entry in exactly the shape Step 1 established, with:
id/name/specification/apiType copied from the real cached API's own envelope (${CLAUDE_PLUGIN_ROOT}/knowledge/index/apis.json), never invented.resources limited to the specific lifecycle events the design actually needs — don't pad the list with every possible event type "for completeness" if the design only calls for, say, a state-change notification.hub/implementation paths following the {{.Release.Name}}/{{.Values...}} Helm-templated convention every cached component already uses — copy the existing pattern's literal structure, substituting only the component/API/resource-specific segments.If the target component already has an eventNotification entry for this API but is missing one specific resource-event, show only the addition (the new resources array entry), not a full re-draft of the existing entry. If this is a wholly new API's first event entry, show the complete new entry.
The drafted YAML fragment (Step 3), formatted exactly as it would appear inserted into component.yaml's spec.eventNotification block, plus a short note: which real resource/API it's grounded in (Step 2's citation), which existing component's eventNotification style it followed (Step 1), and whether this is a new entry or an addition to an existing one (Step 4).
eventNotification entry somewhere in the corpus.component.yaml itself — produces a drafted fragment for a human (or a follow-on skill) to apply, the same read-only posture as draft-architecture-diagram-from-usecase and validate-design-against-oda.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub tmforum-oda/oda-agent-skills-marketplace --plugin tm-forum-oda-consumer19 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./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./capture-requirements-from-usecaseGiven a TMFSxxx use-case id, reads its Description/Scope/Objective sections and drafts user stories and acceptance criteria, citing the exact component/API ids from frontmatter for any integration touchpoint rather than inventing them. Use this to turn an existing use case into requirements a delivery team can work from./check-usecase-maturityGiven a TM Forum ODA use-case id (TMFSxxx), reads its cached frontmatter and returns a plain-language maturity/trust verdict -- whether it's safe to build against today. Reads only YAML frontmatter, no document-body parsing. Use this before starting requirements or test-case work against any TMFSxxx use case./decompose-requirement-against-odaGiven a plain-language requirement that `recommend-oda-components-for-requirement` couldn't match to an existing use case, produces a structured ODA-aligned decomposition (business intent, candidate eTOM processes, candidate components/APIs, candidate information entities, and explicit open questions) instead of leaving the requirement as unstructured prose. Use this when nothing in `${CLAUDE_PLUGIN_ROOT}/knowledge/index/use-cases.json` matches closely enough to reuse.