oav
Copilot instructions104 starsChanged 5 months agoMITView on GitHub
oav (openapi-validation-tools) is an npm package for validating Azure REST API specifications (OpenAPI/Swagger). It provides semantic validation, model validation, live traffic validation, example quality checks, and traffic conversion utilities.
The file
We split this copilot-instructions.md into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 27
Array types: Use simple array syntax (string[]) instead of generic (Array<string>)
- Very specific: line 28
Imports: Keep imports ordered (enforced by ESLint import/order rule)
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Copilot Instructions for oav
Project Overview
oav (openapi-validation-tools) is an npm package for validating Azure REST API specifications (OpenAPI/Swagger). It provides semantic validation, model validation, live traffic validation, example quality checks, and traffic conversion utilities.
Build, Lint, and Test
- Install dependencies:
npm ci - Build:
npm run build(runs TypeScript compiler, linting, and template copying in parallel) - Lint:
npm run lint - Lint with auto-fix:
npm run lint-fix - Run all tests:
npm test(builds first, then runs Jest) - Run tests only (skip build):
npm run fast-test - Run a specific test file:
npx jest <test-file-name>
Language and Framework
- TypeScript with strict mode, targeting ES2018, using CommonJS modules
- Node.js >= 20
- Dependency injection via inversify with decorators (
experimentalDecoratorsandemitDecoratorMetadataenabled)
Coding Conventions
- Formatter: Prettier with semicolons and 100-character print width
- Linting: ESLint with
@typescript-eslint/parser, Prettier integration, and enforced import ordering (import/order) - Array types: Use simple array syntax (
string[]) instead of generic (Array<string>) - Imports: Keep imports ordered (enforced by ESLint
import/orderrule) - Module system: CommonJS (
require/module.exportsin JS, standardimport/exportin TS compiled to CommonJS)
Testing
- Framework: Jest with ts-jest for TypeScript support
- Test location:
test/directory, with test files named*Tests.tsor*Test.ts - Test match pattern:
**/test/**/*.ts - Run tests:
npm testornpm run fast-testfor quicker iteration - Tests should validate both success cases and error/edge cases
Project Structure
lib/— Main source code (validators, models, CLI commands, utilities)test/— Test files and test fixturesdist/— Compiled output (do not edit directly)documentation/— Additional documentationregression/— Regression test configurationseng/— Engineering and build scripts
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

