client-generation

Generate and sync typed API clients from canonical contracts.

1|Updated Jan 13, 2026
One-click install
npx skills add https://github.com/velcrafting/codex-skills --skill client-generation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: client-generation
Source: https://github.com/velcrafting/codex-skills/tree/main/skills/api/client-generation
Command: npx skills add https://github.com/velcrafting/codex-skills --skill client-generation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generating and syncing typed API clients from canonical contracts to ensure type-safe, up-to-date integrations.

Core Features & Use Cases

  • Generate typed API clients from contracts to enforce strong typing and reduce manual client maintenance.
  • Update handwritten wrappers to align with contract changes without hand-editing core client logic.
  • Use case: when a contract evolves, regenerate the corresponding client library to keep consumers in sync.

Quick Start

Provide the canonical contract source and target language to generate or refresh your typed API client library.

Frequently Asked Questions about client-generation

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

FAQPage Schema
How do I generate a typed API client from a contract?

To generate a typed API client, you provide the canonical contract source and target language to automatically produce a strongly typed library. This enforces type safety and eliminates the need for manual client maintenance across your project.

What is the best way to keep API clients in sync with contract changes?

Keeping API clients in sync with contract changes requires deterministic regeneration of the client library whenever the contract evolves. This approach automatically updates handwritten wrappers and aligns consumers with new endpoints without hand-editing core logic.

Can I use contract generation for API-driven projects across different languages?

Yes, contract generation applies to API-driven projects across languages and frameworks. By specifying your target language alongside the canonical contract source, you can generate or refresh type-safe client libraries for various environments.

Does generated client code compile and pass typecheck safely after contract updates?

Generated client code ensures compilation and typecheck safety by applying deterministic regeneration aligned with contract updates. This guarantees that newly generated endpoints and versioning changes integrate cleanly into production repositories without breaking existing types.

How do I update handwritten wrappers when an API contract evolves?

Updating handwritten wrappers when an API contract evolves involves regenerating the corresponding typed client library. This process aligns wrapper code with contract changes automatically, ensuring consumers stay in sync without requiring manual edits to core client logic.