/oagen:integratefrom oagen
Integrates generated SDK code into a live SDK by running `oagen generate --target`. Required for every generation cycle — initial setup and ongoing spec updates.
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.
Integrate generated SDK code into a live SDK by running oagen generate --target. This runs every time code is generated for a live SDK, not just once — both during initial setup and on every subsequent spec update. The writer's additive merge makes it safe to run on every regeneration.
/integrate fits in the overall workflowskipIfExistsBefore integration:
sdk-{language}-surface.json in the emitter project). If missing, suggest running /verify-compat first.fileBySymbol hints for correct file placement — this ensures generated files land at the paths the live SDK expects.Determine required paths:
AskUserQuestionsdk_path): from argument, or use AskUserQuestion: "Where is the live SDK? (absolute or relative path)"spec): from argument, OPENAPI_SPEC_PATH env var, or use AskUserQuestionproject): from argument, or detect from current directoryoutput): use a temp directory or the emitter project's sdk/ directoryapi_surface): sdk-{language}-surface.json in the emitter projectmanifest): .oagen-manifest.json in the output directory (contains file list and operations map)Run oagen generate with --dry-run and --target to show what will happen:
npx tsx src/cli/index.ts generate \
--spec {spec} \
--lang {language} \
--output {output} \
--target {sdk_path} \
--namespace {namespace} \
--api-surface {api_surface} \
--manifest {manifest} \
--dry-run
Present the output to the user. The dry-run shows:
Use AskUserQuestion to confirm:
"The above files will be written to
{output}and integrated into{sdk_path}. Proceed?"
On confirmation, run without --dry-run:
npx tsx src/cli/index.ts generate \
--spec {spec} \
--lang {language} \
--output {output} \
--target {sdk_path} \
--namespace {namespace} \
--api-surface {api_surface} \
--manifest {manifest}
Suggest running the live SDK's test suite:
cd {sdk_path} && npm test # or equivalent for the target language
If tests fail, the merger's additive-only guarantees mean hand-written code was not modified — failures are likely from new symbols that need wiring up or import updates.
Report what happened:
=== Integration Complete ===
Target: {sdk_path}
New files created: {N}
Existing files merged: {N}
Files skipped: {N}
Next steps:
- Review changes: cd {sdk_path} && git diff
- Run tests: cd {sdk_path} && npm test
- If needed, re-run /integrate after fixing issues
{output} directory{sdk_path} via the writer's additive mergeWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
9 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"./review-operationsReview resolved operation names from the OpenAPI spec. Runs the resolution algorithm with hints applied and outputs a review table for human approval. Use when reviewing operation names, checking for unhinted operations, auditing method naming, or after spec changes. Also triggers for "operation names", "method names", "hint map", "operation review", "unhinted operations".Generated from the plugin's indexed repository (workos/oagen) — no native marketplace selected
npx claudepluginhub p/workos-oagenOther plugins' skills for the same job