agentleFS
MicrosoftKnown publishermicrosoft/PurviewIntegrations/AGENTS.md

PurviewIntegrations

AGENTS.md8 starsChanged 5 months agoMITView on GitHub

This file is the single entry point for AI agents (Copilot CLI, Copilot Chat, Claude, Cursor, etc.) working in this repository. It points to the tooling, conventions, and build/test loop an agent needs to make a change and validate it before pushing. Purview GitHub Action — a TypeScript GitHub Action that scans repository files on push / pull request and sends them to Microsoft Purview for data governance and compliance tracking. It authenticates with Azure via GitHub OIDC, processes changed…

  • Installs packages
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repositoryOne other file it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before opening a PR, an agent should:

    line 60
  2. Very specific:

    Run scripts/verify.ps1 — installs dependencies, compiles TypeScript, bundles the action with ncc, and runs the full jest suite (equivalent …

    line 62
  3. Very specific:

    Commit so the .husky/pre-commit hook rebuilds and stages dist/.

    line 65
  4. Very specific:

    Keep PRs reasonably sized.

    line 74

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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
AGENTS.md

AGENTS.md — Agent Router

This file is the single entry point for AI agents (Copilot CLI, Copilot Chat, Claude, Cursor, etc.) working in this repository. It points to the tooling, conventions, and build/test loop an agent needs to make a change and validate it before pushing.

What this repo is

Purview GitHub Action — a TypeScript GitHub Action that scans repository files on push / pull request and sends them to Microsoft Purview for data governance and compliance tracking. It authenticates with Azure via GitHub OIDC, processes changed files, builds chunked payloads, and calls the Purview API with retry/backoff.

Entry point: src/index.ts. Bundled output: dist/ (generated by ncc, committed). Action metadata: action.yml.

Discoverable context

TopicSource
Product overview, features, usageREADME.md
End-to-end setup (Entra app, OIDC, secrets, workflow install)Instructions.md
Code style, structure, and test patternsdocs/conventions.md
GitHub Actions best practices (action.yml, inputs/outputs, secrets, dist sync, workflow security)docs/github-actions.md
Test framework, layout, and @actions/* mocking patterndocs/testing-patterns.md
PR & ADO work-item telemetry tagging (mandatory).github/instructions/telemetry.instructions.md
Agent guardrails (PR size, etc.).github/copilot-instructions.md
PR template.github/pull_request_template.md

Build & test loop

The repeatable build-and-test loop lives in package.json scripts and is documented in the README Development section. Run these from the repo root:

npm install        # install dependencies
npm run build      # tsc compile (src -> intermediate)
npm run package    # ncc bundle into dist/
npm run test       # jest (ts-jest), runs all tests under tests/**
npm run lint       # eslint over src/**/*.ts

For a single-command run of the whole loop, use the verify script:

pwsh scripts/verify.ps1   # install deps, build, package, test (+ best-effort lint)

A .husky/pre-commit hook runs npm test, rebuilds, and re-stages the bundled dist/ files on every commit. CI runs npm ci && npm test on push to main and on every pull request (see .github/workflows/tests.yml), and a separate check-dist job rebuilds the bundle and fails if the committed dist/ is out of sync with src/. This action runs the committed dist/index.js, not the TypeScript source — see docs/github-actions.md for the full set of GitHub Actions conventions (action.yml, inputs/outputs, secret handling, and workflow security).

Verification / Definition of Done

Before opening a PR, an agent should:

  1. Run scripts/verify.ps1 — installs dependencies, compiles TypeScript, bundles the action with ncc, and runs the full jest suite (equivalent to npm run build && npm run package && npm run test).
  2. Commit so the .husky/pre-commit hook rebuilds and stages dist/.
  3. Apply the mandatory telemetry labels and PR-description footer from .github/instructions/telemetry.instructions.md.

PR conventions

Titles are at the author's discretion. Tagging is not optional — every PR must carry the two required labels and the pr-telemetry description footer defined in .github/instructions/telemetry.instructions.md. Keep PRs reasonably sized; see .github/copilot-instructions.md.

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.