Orval
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
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.tschoices 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 -yInstalls 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
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | OpenAPI Specification Quality | CRITICAL | spec- |
| 2 | Configuration Architecture | CRITICAL | orvalcfg- |
| 3 | Output Structure & Organization | HIGH | output- |
| 4 | Custom Client & Mutators | HIGH | mutator- |
| 5 | Query Library Integration | MEDIUM-HIGH | oquery- |
| 6 | Type Safety & Validation | MEDIUM | types- |
| 7 | Mock Generation & Testing | MEDIUM | mock- |
| 8 | Advanced Patterns | LOW | adv- |
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- Ast Grep351
- Mui Base346
- Codemod345
- Skill Authoring345
- Vhs342
- Unix Cli338
- 12 Factor App337
- Rust Refactor336
- Python335
- Ios Design System333
- Js Google328
- Tailwind Refactor326
- Pulumi321
- Harness Engineering317
- Ios Hig314
- Rails Testing313
- Ruby Refactor313
- Think313
- Ios Xcode311
- Restful Hateoas308
- Ios Ui Refactor307
- Rails Dev303
- Swift Optimise297
- Ruby Optimise296
Similar to Orval
More Frontend & UI CodezodSkillpproenca/dot-skills7.5K installsBest-practice rules for Zod schema definition, safe parsing, type inference, and error handling in TypeScript.
openapi-to-typescriptSkillsoftaworks/agent-toolkit4K installsConverts OpenAPI 3.0 specs into TypeScript interfaces, request/response types, and type guards for validation.
kubbPluginkubb-labs/kubb1.9K starsTurn your API spec into type-safe code: TypeScript types, Zod schemas, Axios clients, React Query hooks and more from an OpenAPI spec, with the Kubb MCP server
openapi-spec-generationSkillwshobson/agents17.6K installsStructured OpenAPI 3.1 spec generation, from code or design-first, with validation patterns for API contracts.
trpcSkillmindrally/skills917 installsTypesafe Next.js and tRPC v11 guidelines for routers, procedures, Zod validation, and React Query hooks.
trpc-type-safetySkillbobmatnyc/claude-mpm-skills1K installsEnd-to-end type-safe TypeScript API guidance for tRPC paired with React Query on the client.