orpc-implement-contract

Convert an oRPC contract into an implementer instance with runtime enforcement.

8|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/ali-master/skills --skill orpc-implement-contract
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: orpc-implement-contract
Source: https://github.com/ali-master/skills/tree/main/skills/orpc-implement-contract
Command: npx skills add https://github.com/ali-master/skills --skill orpc-implement-contract

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @orpc/server, and includes scripts (resource) components.

What problem does it solve?

This Skill helps developers implement contracts for contract-first development in oRPC, ensuring runtime enforcement of the contract.

Core Features & Use Cases

  • Contract Implementation: Converts a contract into an implementer instance for oRPC.
  • Procedures Implementation: Guides the implementation of procedures as per the contract.
  • Router Building: Assists in building the router for the oRPC application.
  • Use Case: If you have a contract defined for your oRPC application, this Skill will help you implement it in your server code.

Quick Start

Implement the contract for your oRPC application using the implement function from the @orpc/server package.

Frequently Asked Questions about orpc-implement-contract

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement a contract for contract-first development in oRPC?

To implement a contract for contract-first development in oRPC, use the `implement` function from the `@orpc/server` package to convert your defined contract into an implementer instance and enforce it at runtime.

What does runtime enforcement do in an oRPC server application?

Runtime enforcement in an oRPC server application ensures that the implemented procedures strictly adhere to the predefined contract. The `implement` function converts the contract into an implementer instance to validate operations during execution.

How do I build an oRPC router from an existing contract?

You can build an oRPC router from an existing contract by converting the contract into an implementer instance. This process guides the implementation of procedures and assists in structuring the router for your server application.

Does the oRPC contract implementation work with @orpc/server?

Yes, oRPC contract implementation is fully compatible with the `@orpc/server` package. It applies to oRPC applications requiring contract enforcement and uses the `implement` function from this specific dependency.

Why do I need to convert a contract into an implementer instance in oRPC?

Converting a contract into an implementer instance in oRPC is necessary to bridge contract-first definitions with executable server code. This conversion enforces the contract at runtime and guides the implementation of procedures.