If you're generating TypeScript clients from OpenAPI specs, this covers the full workflow from config to testing. It's organized into 42 rules across 8 categories, from spec quality and orval.config.ts setup through React Query/SWR integration, custom mutators for auth, and MSW mock generation. The priority system is helpful because it steers you toward critical decisions first, like choosing the right output mode and client type, before you get into the weeds of Zod validation or infinite queries. It assumes you already know why you want Orval but need the patterns for doing it right. The mutator and query key sections are where most teams will spend their time once the basics work.

skills.sh installs
338
GitHub stars
222
last updated
Aug 21, 2026

Install

$ npx -y skills add pproenca/dot-skills --skill orval --agent claude-code

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/pproenca/dot-skills
Categories
Frontend Development, Backend & APIs, Testing & QA, Documentation
First seen
Jun 3, 2026

More from pproenca/dot-skills

All 100
1rstackjs avatarmigrate-to-rsbuildrstackjs/agent-skillsMigrate webpack, Vite, create-react-app (CRA/CRACO), or Vue CLI projects to Rsbuild.336skills.sh installs
2pproenca avatarmui-basepproenca/dot-skillsMUI Base UI style guidelines for building headless React component libraries (formerly headless-ui-style). This skill should be used when creating unstyled UI c335skills.sh installs
3davila7 avatarweb-artifacts-builderdavila7/claude-code-templatesSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for334skills.sh installs
4pedronauck avatarvercel-composition-patternspedronauck/skillsReact composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reus334skills.sh installs
5bobmatnyc avatarartifacts-builderbobmatnyc/claude-mpm-skillsSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui)333skills.sh installs
6secondsky avatarbun-tanstack-startsecondsky/claude-skillsTanStack Start full-stack React framework with Bun runtime. Use for TanStack Router, server functions, vinxi, or encountering SSR, build, preset errors.329skills.sh installs