From oagen
Resolves and reviews OpenAPI operation names using an oagen hint map. Outputs a categorized table of hinted, algorithm-derived, and operations needing review for human approval.
How this skill is triggered — by the user, by Claude, or both
Slash command
/oagen:review-operationsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Parse the OpenAPI spec, run operation resolution with the configured hint map, and produce a review table highlighting operations that need attention.
Parse the OpenAPI spec, run operation resolution with the configured hint map, and produce a review table highlighting operations that need attention.
Accept --spec <path> as an optional argument. If not provided, fall back to the OPENAPI_SPEC_PATH environment variable, then try ../openapi-spec/spec/open-api-spec.yaml.
OPENAPI_SPEC_PATH env, or ../openapi-spec/spec/open-api-spec.yamloagen.config.ts exists in the current directory. If not, try ../openapi-spec/oagen.config.ts. If neither exists, use AskUserQuestion: "Where is your consumer config project (the project with oagen.config.ts)?"Run oagen resolve to get the full resolution output:
npx oagen resolve --spec <path> --format json
Parse the JSON output. Each entry has: service, method, path, derivedName, hintApplied, mountOn, wrappers.
Sort operations into three categories:
operationHints or mountRulescreate_organizations instead of create_organization)list_ for non-collection GETs (e.g., list_profile)create_token that don't capture the operation's purposePrint a markdown table with all operations, grouped by category:
## Operations needing review (N)
| Service | Method | Path | Current Name | Suggested Action |
| ------- | ------ | ---- | ------------ | ---------------- |
## Algorithm-derived operations (N)
| Service | Method | Path | Derived Name | Mount On |
| ------- | ------ | ---- | ------------ | -------- |
## Hinted operations (N)
| Service | Method | Path | Hint Name | Mount On |
| ------- | ------ | ---- | --------- | -------- |
For "needs review" operations, suggest a concrete action:
add name hint: <suggested_name> for semantic renamesadd mountOn hint: <target> for service remountingsingularize: <name> for plural-to-singular fixesPrint a summary:
If there are operations needing review, ask the user: "Would you like me to add hints for any of these operations to the consumer project's oagen.config.ts?"
npx claudepluginhub workos/oagenGenerates AI-powered suggestions via `speakeasy suggest` to improve SDK method names from operation IDs and error types in OpenAPI specs. Ideal for fixing auto-generated ugly names.
Reviews API designs for best practices, consistency, and issues in REST, GraphQL, gRPC, OpenAPI specs, or code files.
Structures OpenAPI 3.x specs with consistent naming, reusable schemas, error modeling, pagination, security schemes, and examples to produce a spec that works as a contract for code generation.