Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

orpc-openapi

Skill by middleapi

Exposes an oRPC router as a spec-compliant OpenAPI HTTP API, with REST-style routes, Smart Coercion, an OpenAPI client link and generated OpenAPI documents. Built for developers using @orpc/openapi in oRPC v2 projects.

  • Score 86
  • 5.8k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install orpc-openapi

Built from the published package, never by AI.

git clone --depth 1 https://github.com/middleapi/orpc /tmp/orpc && mkdir -p ~/.claude/skills && cp -r /tmp/orpc/skills/orpc-openapi ~/.claude/skills/orpc-openapi

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install orpc-openapi in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill covers the OpenAPI side of oRPC, where one router can serve both the RPC protocol and plain OpenAPI HTTP. It explains how to define REST-style routes with openapi metadata or the .route extension, including path parameters and successStatus. It also covers input and output mapping, serving routes with OpenAPIHandler, coercing query and path strings with Smart Coercion, calling APIs with OpenAPILink, and generating documents with OpenAPIGenerator.

It is aimed at developers using @orpc/openapi in oRPC v2 projects. The skill also covers serving Scalar or Swagger docs through the OpenAPI Reference plugin. Contract-first work with oc and implement is handed off to the orpc-contract skill, and plain RPC work to the orpc skill.

Written from the project's SKILL.md and checked against it.

What it can do

  • REST-style routingSets HTTP method, path and success status on procedures with openapi metadata or .route.
  • OpenAPIHandlerServes an oRPC router as OpenAPI HTTP alongside RPCHandler on a separate prefix.
  • Smart CoercionConverts query, path and form strings to schema-driven types such as numbers, booleans and dates.
  • Input and output mappingSwitches between compact and detailed input and output structures for params, query, headers and body.
  • Bracket notationDecodes nested query and form values into arrays and objects using bracket syntax.
  • OpenAPILinkCalls an OpenAPI-shaped API through a typesafe oRPC client.
  • OpenAPIGeneratorGenerates an OpenAPI 3.2 document, or 3.1 or 3.0 for older tools, from a router or contract.
  • OpenAPI Reference pluginServes the spec at /spec.json and a Scalar UI, or Swagger UI when configured.

What you need

  • A project that depends on @orpc/openapi
  • oRPC v2

Try asking

  • Expose my oRPC planet router as a REST API with OpenAPIHandler
  • Add a GET /planets/{id} route to this oRPC procedure
  • Generate an OpenAPI 3.1 document from my oRPC router

Good to know

  • Targets oRPC v2; the source warns that pretrained knowledge of v1 is often wrong for v2
  • Smart Coercion adds runtime overhead and can be skipped
  • QUERY procedures require OpenAPI 3.2
  • Bracket notation cannot represent empty objects or arrays, or root-level arrays

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/orpc-openapi/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md11 KB

Alternatives to orpc-openapi

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

orpc-openapi: common questions

Does this work with RPC as well as REST?

Yes. OpenAPIHandler and RPCHandler accept the same router, so they can be mounted on different prefixes such as /api and /rpc.

Why do Date values come back as strings from OpenAPILink?

OpenAPI serialization is one-way, so a Date returns as a string. SmartCoercionLinkPlugin can restore native types on responses.

Which OpenAPI versions can be generated?

OpenAPIGenerator produces OpenAPI 3.2 by default and accepts any 3.1.x or 3.0.x version for tools that need an older one.

How do I install orpc-openapi?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is orpc-openapi free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is orpc-openapi safe to use?

It scores 86 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to orpc-openapi?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

orpc-openapi Install

Add to stack

Loading.