Orval

From pproenca/dot-skills · View interactive version

Orval is an AI agent skill from the GitHub repository pproenca/dot-skills. Orval OpenAPI TypeScript client generation best practices. This skill should be used when configuring Orval, generating TypeScript clients from OpenAPI specs, setting up React Query/SWR hooks, creating custom mutators, or writing MSW mocks. Triggers on tasks involving orval.config.ts, OpenAPI codege

How to use this skill

Skill file

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:

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

1. OpenAPI Specification Quality (CRITICAL)

2. Configuration Architecture (CRITICAL)

3. Output Structure & Organization (HIGH)

4. Custom Client & Mutators (HIGH)

5. Query Library Integration (MEDIUM-HIGH)

6. Type Safety & Validation (MEDIUM)

7. Mock Generation & Testing (MEDIUM)

8. Advanced Patterns (LOW)

How to Use

Read individual reference files for detailed explanations and code examples:

Related Skills

Full Compiled Document

For the complete guide with all rules expanded: AGENTS.md

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.