agentleFS
Microsoft AzureKnown publisherAzure/oav/.github/copilot-instructions.md

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
  1. Very specific:

    Array types: Use simple array syntax (string[]) instead of generic (Array<string>)

    line 27
  2. Very specific:

    Imports: Keep imports ordered (enforced by ESLint import/order rule)

    line 28

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

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 (experimentalDecorators and emitDecoratorMetadata enabled)

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/order rule)
  • Module system: CommonJS (require/module.exports in JS, standard import/export in TS compiled to CommonJS)

Testing

  • Framework: Jest with ts-jest for TypeScript support
  • Test location: test/ directory, with test files named *Tests.ts or *Test.ts
  • Test match pattern: **/test/**/*.ts
  • Run tests: npm test or npm run fast-test for 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 fixtures
  • dist/ — Compiled output (do not edit directly)
  • documentation/ — Additional documentation
  • regression/ — Regression test configurations
  • eng/ — Engineering and build scripts

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.