Backend Trpc Openapi

🌐Community
by petbrains Β· vlatest Β· Repository

Generates OpenAPI specifications and TRPC schemas from backend code, streamlining API documentation and client generation.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add backend-trpc-openapi npx -- -y @trustedskills/backend-trpc-openapi
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "backend-trpc-openapi": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/backend-trpc-openapi"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill allows AI agents to generate OpenAPI specifications from tRPC endpoint definitions. It facilitates creating API documentation and client SDKs based on your backend's tRPC schema, streamlining development workflows. The generated OpenAPI documents can be used for testing, code generation, and integration with other tools.

When to use it

  • Generating API Documentation: Quickly create a comprehensive OpenAPI document from an existing tRPC endpoint definition.
  • Client SDK Generation: Use the generated OpenAPI spec to automatically generate client SDKs in various programming languages.
  • API Testing: Integrate the OpenAPI specification with testing tools for automated API validation and contract testing.
  • Backend-Driven Development: Ensure your frontend development aligns perfectly with your backend tRPC schema by generating up-to-date API definitions.

Key capabilities

  • Generates OpenAPI specifications from tRPC endpoint definitions.
  • Supports various tRPC versions.
  • Facilitates automated client SDK generation.
  • Enables API testing and contract validation.

Example prompts

  • "Generate an OpenAPI document for my backend's tRPC endpoints."
  • "Create a Swagger UI representation of my tRPC schema."
  • β€œCan you give me the OpenAPI spec in JSON format?”

Tips & gotchas

  • Ensure your tRPC endpoint definitions are accurate and complete to generate a valid OpenAPI specification.
  • The quality of the generated OpenAPI document depends heavily on the clarity and structure of your tRPC schema.

Tags

πŸ›‘οΈ

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates β€” what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
petbrains
Installs
7

🌐 Community

Passed automated security scans.