rpc

Generate type-safe RPC clients from server controllers and schemas.

52|Updated Jul 12, 2023
One-click install
npx skills add https://github.com/finom/vovk --skill rpc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rpc
Source: https://github.com/finom/vovk/tree/main/packages/claude-plugin/skills/rpc
Command: npx skills add https://github.com/finom/vovk --skill rpc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate type-safe RPC clients from server controllers to enable reliable, strongly-typed API usage in browser and server code.

Core Features & Use Cases

  • Generate composed or segmented clients from controllers and schemas.
  • Expose RPC surfaces such as .withDefaults, .getURL, .queryKey, and .schema for strong typing and tooling.
  • Integrate with React Query and OpenAPI/schema payloads to support modern frontend and testing.
  • Support configurable fetchers, per-call options, and client-side validation to unify transport logic.

Quick Start

Install vovk, configure your segments, and run vovk generate to emit typed RPC modules you can import and use.

Frequently Asked Questions about rpc

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

FAQPage Schema
How do I generate a type-safe API client from my server controllers?

You can generate a type-safe API client by running vovk generate after emitting schemas via your dev server, which produces typed RPC modules you import and call in browser or server code.

How does an RPC client integrate with React Query for data fetching?

The RPC client integrates with React Query by exposing surfaces like .queryKey and .schema, enabling strongly typed data fetching, tooling support, and client-side validation directly within your React Query hooks.

Can I customize the fetcher and apply per-call options for RPC requests?

Yes, the RPC client supports configurable fetchers and per-call options, allowing you to unify transport logic, handle errors effectively, and customize request behavior on a per-call basis.

Does the rpc client support OpenAPI schema payloads for frontend development?

Yes, the client integrates with OpenAPI schemas and schema payloads to support modern frontend workflows, ensuring reliable and strongly-typed API usage across browser and server environments.

What is the difference between composed and segmented client models in RPC generation?

Composed and segmented client models are two structural options for generating RPC clients from controllers, allowing you to choose how typed modules are organized and imported based on your project architecture.