Backend Trpc Openapi
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.
Run in terminal (recommended)
claude mcp add backend-trpc-openapi npx -- -y @trustedskills/backend-trpc-openapi
Or manually add to ~/.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 Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
π Community
Passed automated security scans.