agentleFS
MicrosoftKnown publishermicrosoft/purview-api-samples/AGENTS.md

purview-api-samples

AGENTS.md16 starsChanged 5 months agoMITView on GitHub

Short router / table of contents for humans and coding agents. This repo is a multi-sample collection of independent Microsoft Purview developer samples — there is no single buildable service. Each sample is self-contained with its own README, prerequisites, and run instructions. Samples that show how to call the Microsoft Purview APIs in Microsoft Graph to support data security, compliance, and governance. See README.md for the canonical sample list. See docs/conventions.md for observed code-style and structure conventions, and CONTRIBUTING.md for…

  • Reads credentials
  • 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

5 rules. About 0 are common, 1 is distinctive, and 4 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.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Run scripts/verify.ps1 — parses every PowerShell script, byte-checks JSON samples, compiles the Python sources, and (when the .NET SDK is …

    line 35
  2. Very specific:

    Every PR and ADO work item must follow the tagging rules in .github/instructions/telemetry.instructions.md.

    line 46
  3. Distinctive:

    Keep changes scoped to a single sample where possible.

    line 52
  4. Very specific:

    Never commit real tenant IDs, client secrets, or cloud credentials — see .gitignore and .env.example.

    line 54
  5. Very specific:

    Keep PRs small and reviewable (see .github/copilot-instructions.md).

    line 56

≈ “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 — Repo router for microsoft/purview-api-samples

Short router / table of contents for humans and coding agents. This repo is a multi-sample collection of independent Microsoft Purview developer samples — there is no single buildable service. Each sample is self-contained with its own README, prerequisites, and run instructions.

What this repo is

Samples that show how to call the Microsoft Purview APIs in Microsoft Graph to support data security, compliance, and governance. See README.md for the canonical sample list.

Samples (entry points)

SampleStackEntry pointDocs
AWSBedrockPython 3.12 (AWS Lambda) + browser MSAL frontend + CloudFormationAWSBedrock/lambda/lambda_function.py, AWSBedrock/frontend/serve.pyAWSBedrock/README.md
DLPforCustomAIAppsPowerShell 7+DLPforCustomAIApps/Create-DlpPolicyForCustomAIApps.ps1DLPforCustomAIApps/README.md
FoundryWindows PowerShell 5.1 / PowerShell 7+ (Az.Accounts)Foundry/EnableFoundryPurview.ps1Foundry/README.md
Postman CollectionPostman / JSONPostman Collection/DSPM4AI_API_postman_collection.jsonPostman Collection/README.MD
dotnet/Desktop.NET 8 WPF (net8.0-windows)dotnet/Desktop/Purview API Explorer.slndotnet/Desktop/README.MD

Conventions

See docs/conventions.md for observed code-style and structure conventions, and CONTRIBUTING.md for the CLA and Code of Conduct process.

Verification / Definition of Done

This repo has no CI pipeline and no single build. Use the repo-level verify loop to sanity-check all samples without deploying any of them:

  • Run scripts/verify.ps1 — parses every PowerShell script, byte-checks JSON samples, compiles the Python sources, and (when the .NET SDK is available) builds the WPF solution.
  • See docs/build-and-test.md for the per-sample build/test/run commands (the documented form of the verify loop).

A change is done when scripts/verify.ps1 passes and the touched sample's own README steps still hold.

PR conventions / telemetry (mandatory)

Every PR and ADO work item must follow the tagging rules in .github/instructions/telemetry.instructions.md. Apply the required labels and the description footer block on every turn.

Guardrails for agents

  • Keep changes scoped to a single sample where possible; do not refactor across samples in one PR.
  • Never commit real tenant IDs, client secrets, or cloud credentials — see .gitignore and .env.example. Use placeholders.
  • Keep PRs small and reviewable (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.