Skip to content

Best-practice rule set for generating type-safe TypeScript API clients from OpenAPI specs with Orval.

CCM score
50 of 100
skills.sh installs
353
GitHub stars
228
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers 42 rules across 8 categories: spec quality, config architecture, output structure, mutators, query hooks, Zod types, MSW mocks, and advanced patterns
  • Includes priority-ranked quick references, with the spec-quality and configuration rules marked as critical for automated setup
  • Guides orval.config.ts choices such as output mode, client selection, schema separation, and Prettier formatting
  • Designed for projects wiring React Query or SWR hooks, custom auth mutators, or MSW mocks, and links to the tanstack-query, test-msw, and zod skills

Install

$ npx -y skills add pproenca/dot-skills --skill orval -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Orval OpenAPI Best Practices

Comprehensive guide for generating type-safe TypeScript clients from OpenAPI specifications using Orval. Contains 42 rules across 8 categories, prioritized by impact to guide automated configuration, client generation, and testing setup.

When to Apply

Reference these guidelines when:

  • Configuring Orval for a new project
  • Setting up OpenAPI-based TypeScript client generation
  • Integrating React Query, SWR, or Vue Query with generated hooks
  • Creating custom mutators for authentication and error handling
  • Generating MSW mocks for testing

Rule Categories by Priority

PriorityCategoryImpactPrefix
1OpenAPI Specification QualityCRITICALspec-
2Configuration ArchitectureCRITICALorvalcfg-
3Output Structure & OrganizationHIGHoutput-
4Custom Client & MutatorsHIGHmutator-
5Query Library IntegrationMEDIUM-HIGHoquery-
6Type Safety & ValidationMEDIUMtypes-
7Mock Generation & TestingMEDIUMmock-
8Advanced PatternsLOWadv-

Quick Reference

Details

Repository
github.com/pproenca/dot-skills
Categories
Frontend & UI Code, Backend & APIs
First seen
Jun 3, 2026

Questions

What does the orval skill do?

The orval skill gives best practices for Orval, the OpenAPI TypeScript client generator. It covers configuring orval.config.ts, generating typed clients from OpenAPI specs, setting up React Query or SWR hooks, creating custom mutators, and writing MSW mocks.

How do I install the orval skill?

Run npx -y skills add pproenca/dot-skills --skill orval -y in your project to install the orval skill. Once installed, the agent can apply its Orval rules when you configure code generation.

Where does the orval skill sit among Frontend & UI Code skills?

The orval skill is in the Frontend & UI Code category on Claude Marketplaces. It sits alongside vercel-react-best-practices, web-design-guidelines, design-taste-frontend, vercel-composition-patterns and lark-apps. Its focus is narrower than those: it targets OpenAPI client generation with Orval.

When should I use the orval skill?

Use the orval skill when you configure Orval for a new project, generate TypeScript clients from OpenAPI specs, or add custom mutators for authentication and error handling. It also applies when you write MSW mocks for generated clients.

Does the orval skill cover Zod validation and mocks?

Yes, the orval skill has rules for generating Zod schemas for runtime validation and for generating MSW handlers from the spec. It also covers how to use OpenAPI examples to make mocks more realistic.

More from pproenca/dot-skills

All 100

Similar to Orval

More Frontend & UI Code