/oagen:verify-smoke-testfrom oagen
Runs a generate-verify loop to iteratively fix an emitter until smoke tests pass. Use after smoke tests are created or when verify reports failures.
Ships in oagen. 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.
Run oagen generate → oagen verify in a loop, diagnosing and fixing the emitter (or smoke script) after each iteration until verify exits 0.
This is the final phase of /generate-sdk setup — after the emitter, extractor, compat overlay, and smoke tests are all scaffolded, this loop gets the emitter actually producing correct output.
node, ruby, python)sdk-{language}-surface.jsonGeneratedFile shape/generate-smoke-test completes and you need to iterate the emitter to passingoagen verify exits 1 (findings) or 2 (compile errors) and you want to fix and retryCollect these values. Use arguments if provided, otherwise ask:
language — target language (e.g., node, ruby, python)spec — path to the OpenAPI spec (e.g., ../openapi.yaml)output — path to the generated SDK output directoryproject — path to the emitter project (often the parent of output)namespace — SDK namespace/package name (e.g., Acme)Optional (Scenario A only):
sdk_path — path to the live SDK for target integrationapi-surface — path to sdk-{language}-surface.json for compat overlayCheck if a previous findings file exists — this indicates a prior loop iteration:
ls {output}/smoke-diff-findings.json {output}/smoke-compile-errors.json 2>/dev/null
If findings exist, read them to understand the starting state before running the first iteration.
oagen generate --spec {spec} --lang {language} --output {output} --namespace {namespace}
If Scenario A (compat overlay + live SDK integration), include:
oagen generate --spec {spec} --lang {language} --output {output} --namespace {namespace} --api-surface {api-surface} --target {sdk_path}
oagen verify --spec {spec} --lang {language} --output {output}
If Scenario A, include:
oagen verify --spec {spec} --lang {language} --output {output} --api-surface {api-surface}
| Exit | Meaning | Output file | Next action |
|---|---|---|---|
| 0 | Clean | — | Done — go to Exit |
| 1 | Findings | smoke-diff-findings.json | Go to Step 4 |
| 2 | Compile error | smoke-compile-errors.json | Go to Step 5 |
Read {output}/smoke-diff-findings.json. It contains:
criticalFindings — CRITICAL-severity mismatches (blocking)warningFindings — WARNING-severity mismatches (review)infoFindings — INFO-severity observations (non-blocking)missingFromSdk — operations the SDK didn't attemptmissingFromRaw — operations missing from baseline (non-blocking)coverage — summary statsFocus on CRITICAL findings first. Use the remediation table to locate the fix:
| Finding | Fix location |
|---|---|
| "HTTP method differs" | Emitter's resources.ts — method generation |
| "Request path structure differs" | Emitter's resources.ts — path interpolation |
| "Query parameters differ" | Emitter's resources.ts — query param serialization |
| "Request body key sets differ" | Emitter's models.ts or resources.ts — serializers |
| "Skipped in SDK" | Smoke runner smoke/sdk-{lang}.ts — method resolution |
| "Missing from SDK" | Smoke runner smoke/sdk-{lang}.ts — method mapping |
After fixing, go back to Step 1.
Read {output}/smoke-compile-errors.json. These are TypeScript type errors in the generated SDK. Common causes:
type-map.ts or model generatorsmodels.tsAfter fixing, go back to Step 1.
Track the count of CRITICAL findings between iterations. If the count doesn't decrease after three consecutive iterations, stop and report:
Stall detected: {N} CRITICAL findings remain after {iteration} iterations.
Remaining findings:
- {finding summary}
- ...
These may require a structural emitter change rather than a targeted fix.
Present the remaining findings to the user and ask how to proceed.
When verify exits 0:
# Run the full validation suite
cd {project} && npx vitest run test/{language}/
npx tsc --noEmit
Report the result:
=== verify-smoke-test: COMPLETE ===
Iterations: {N}
Final verify: exit 0 (clean)
Unit tests: {pass/fail}
Type check: {pass/fail}
The findings file (smoke-diff-findings.json or smoke-compile-errors.json) is the primary handoff state. If resuming from a previous session:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (workos/oagen) — no native marketplace selected
npx claudepluginhub p/workos-oagen9 skills in this plugin
/check-emitter-parityAudit an emitter's coverage of IR fields and produce a structured gap analysis. Use when checking if an emitter handles all IR types, after updating oagen, or verifying emitter completeness. Also triggers for "IR coverage", "emitter audit", "field coverage", "parity check"./generate-emitterScaffold a new language emitter for oagen, implementing the Emitter interface with idiomatic target-language code generation. Use this skill whenever the user wants to add a new target language, generate SDKs for a new language, add Go/Python/Kotlin/Java/etc. support, create an emitter, or asks about code generation for a language — even if they don't use the word "emitter" explicitly. Also triggers when the user mentions "add language support" or "new SDK target"./generate-extractorScaffold a new language extractor for oagen's compat system, implementing the Extractor interface to extract a live SDK's public API surface. Use when the user wants to add backwards-compatibility support, build an extractor, check for breaking changes or regressions, or asks about extracting an API surface for any language — even if they don't use the word "extractor" explicitly. Also triggers for "compat support", "API surface analysis", or "public surface extraction"./generate-sdkOrchestrate generating an SDK for a target language end-to-end. Determines the right scenario (backwards-compatible or fresh) and guides through the correct sequence of sub-skills. Use when the user wants to generate an SDK, add a new language, create SDK bindings, start a new language target, or asks "how do I add X support". Also triggers for "new SDK", "language support", or "scaffold SDK"./generate-smoke-testCreate a smoke test script for a new SDK language that verifies wire-level HTTP parity against the OpenAPI spec and live API baseline. Use when adding smoke tests for a new language, verifying a generated SDK against the real API, or checking HTTP request/response correctness. Also triggers for "integration test", "wire-level test", "HTTP parity", or "end-to-end SDK test"./integrateIntegrate generated SDK code into a live SDK by running `oagen generate --target`. Required for every Scenario A generation cycle — initial setup and ongoing spec updates. Use when the user wants to merge generated code into an existing SDK or integrate emitter output into a live codebase.Other plugins' skills for the same job