/tm-forum-oda-consumer:generate-api-mocks-from-usecasefrom tm-forum-oda-consumer
Scaffolds mock servers or request/response fixtures from cached OpenAPI schemas and real sample payloads linked to a TM Forum use case. Useful for integration testing before a real backend exists.
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.
Mock responses / fixture files for the real APIs a use case depends on, grounded in the cached OpenAPI schema and (where available) real sample payloads TM Forum's own API authors wrote — not invented JSON shaped to look plausible.
Read links.apis from ${CLAUDE_PLUGIN_ROOT}/knowledge/use-cases/{ID}/{ID}.md's frontmatter.
Each entry gives an id and name; check ${CLAUDE_PLUGIN_ROOT}/knowledge/index/apis.json for
its cached version and status. An id with status: "not_yet_specified"
or fetch_failed has no real schema to mock from — say so, don't
fabricate a plausible-looking schema for it.
${CLAUDE_PLUGIN_ROOT}/knowledge/apis/{TMFxxx}/{TMFxxx}_v{version}.json -- the OpenAPI/Swagger schema
${CLAUDE_PLUGIN_ROOT}/knowledge/apis/{TMFxxx}/samples/ -- real example payloads, if fetched
Not every API has a samples/ directory — it's optional, best-effort
enrichment (fetched from a separate, private TM Forum GitHub org repo),
so its absence isn't an error, just means Step 2 has less to work with
for that particular API.
When samples exist, prefer them over hand-building a payload from the
schema alone — they're real, human-authored examples TM Forum wrote for
conformance testing. Note what a sample actually is before using it: some
files under samples/ are plain request/response bodies for a specific
operation, others are event-notification payloads (e.g.
*CreateEvent/*AttributeValueChangeEvent, wrapping the resource inside
an event envelope with eventType/eventTime/etc.) — don't use an
event-notification sample as if it were a plain resource response, the
shapes are different.
When no sample exists for an operation, build a minimal valid example
directly from the schema's paths/definitions — real property names
and types from the schema, not invented field names. State clearly which
of the two sources (real sample vs. schema-derived) each mock came from.
Output request/response fixture files per operation actually used by the
use case (grounded in Step 1's schema paths, or the operations
generate-test-cases-from-usecase would cite for this same use case, if
that's already been run) — not every operation the API happens to
expose. A use case that only calls POST /individual and
GET /individual/{id} doesn't need mocks for every other Party
Management endpoint.
One fixture per operation: the real path + method, the real
operationId, and the payload (marked as sample-sourced or
schema-derived per Step 2). If scaffolding an actual mock server
(rather than static fixtures), keep the server as thin as possible —
route matching plus returning the fixture — not a reimplementation of
the API's business logic.
status: not_yet_specified/fetch_failed — report the gap instead of fabricating a schema to mock against.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
api-mocks, test-fixtures, openapi, tm-forum, integration-testing
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.Other plugins' skills for the same job