agentleFS
Microsoft AzureKnown publisherAzure/azure-sdk-for-js/AGENTS.md

azure-sdk-for-js

AGENTS.md2.3k starsChanged 21 months agoMITView on GitHub

Resolver for agent-facing guidance in this repo. Each section points at the canonical location — content lives there, not here. If you find yourself duplicating a rule across docs, the duplicate is wrong. TypeScript / JavaScript SDKs for Azure services. Monorepo managed by pnpm + Turborepo. Before pushing any code change — including changes outside sdk/ — run the checks defined by CI for the affected package locally. Package managers and scripts vary for non-workspace eng/* tools. See .github/skills/sdk-workflow/SKILL.md §…

Trending

Quiet this year.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the Azure/azure-sdk-for-js repository that our weekly crawl found: only 11 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about Azure/azure-sdk-for-js

The biggest 5 of 11 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 11

Talked about on GitHub and Bluesky (11 times).

On GitHub · 10

5 more on GitHub

The file

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

8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    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:

    Do not use npm run build at the package level — turbo workspace linking breaks it.

    line 55
  2. Very specific:

    Do not edit files under <package>/generated/.

    line 57
  3. Very specific:

    Don't refactor, delete, or "fix" them as part of test cleanup.

    line 61
  4. Very specific:

    Do not disable @azure/eslint-plugin-azure-sdk rules with eslint-disable directives.

    line 67
  5. Very specific:

    Do not hand-roll long-running operations.

    line 69
  6. Very specific:

    Always consult .github/skills/find-package-skill/SKILL.md (and the relevant package-specific SKILL.md if one is registered there)

    line 72
  7. Distinctive:

    When pushing new commits to an existing pull request, re-check that the PR description still matches the current changes.

    line 75
  8. Distinctive:

    If a fact would belong in two places, pick the more-specific one.

    line 99

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

Resolver for agent-facing guidance in this repo. Each section points at the canonical location — content lives there, not here. If you find yourself duplicating a rule across docs, the duplicate is wrong.

What is this repo

TypeScript / JavaScript SDKs for Azure services. Monorepo managed by pnpm + Turborepo.

  • Packages live under sdk/* (e.g. sdk/web-pubsub/web-pubsub).
  • Shared tools in common/tools/* (eslint plugin, dev-tool, warp).
  • Engineering tooling under eng/*; deep-dive docs under documentation/*.
  • Contributor onboarding: see README.md and CONTRIBUTING.md.

Where to find guidance

Task / topicWhere to look
Build / test / lint / format / release a package.github/skills/sdk-workflow/SKILL.md
Add a feature to a package under sdk/.github/skills/find-package-skill/SKILL.md (check the registry FIRST)
Generate or regenerate SDK code from TypeSpec.github/skills/azsdk-common-generate-sdk-locally/SKILL.md
Release / publish a package.github/skills/azsdk-common-sdk-release/SKILL.md
Resolve APIView feedback.github/skills/azsdk-common-apiview-feedback-resolution/SKILL.md
Troubleshoot a CI / pipeline failure.github/skills/azsdk-common-pipeline-troubleshooting/SKILL.md
Audit or register ADO pipelines for ci.yml files.github/skills/ado-pipeline-audit/SKILL.md
Create a new package-specific skill.github/skills/create-package-skill/SKILL.md
Copilot code review (CCR).github/skills/code-review/SKILL.md (routes to canonical reviewer guidance)
Review criteria (architecture, perf, security, deps, tests, docs, mgmt).github/instructions/reviewer/*.instructions.md
Test framework, recorder lifecycle, asset-syncdocumentation/Quickstart-on-how-to-write-tests.md
TypeSpec / codegen workflowdocumentation/Generate-code-from-TypeSpec.md
Linting rules and troubleshootingdocumentation/linting.md
Dependency managementdocumentation/dependency-management.md
Authoritative API design guidelineshttps://azure.github.io/azure-sdk/typescript_design.html
Other deep divesdocumentation/ (browse the directory)

Before pushing any code change — including changes outside sdk/ — run the checks defined by CI for the affected package locally. Package managers and scripts vary for non-workspace eng/* tools. See .github/skills/sdk-workflow/SKILL.md § "Before you push".

The skills above carry workflow guidance the rest of this repo's contributor docs assume agents will find. Read them on demand — don't load them all up front.

Hard rules

Rules agents have violated in the past and which the eval suite at eng/agent-evals/ actively regression-tests. Each one is here because it has no static-analysis enforcement today (otherwise it would be a lint rule or CI check, not an eval).

  • Build a single package with pnpm turbo build --filter=<pkg>... --token 1. Do not use npm run build at the package level — turbo workspace linking breaks it.
  • Do not edit files under <package>/generated/. Those are regenerated on every tsp-client run. Customizations go in src/ or via TypeSpec decorators. See documentation/modular-customization.md.
  • snippets.spec.ts files are documentation source, not real tests. Don't refactor, delete, or "fix" them as part of test cleanup. They're consumed by dev-tool run update-snippets to keep README code blocks in sync.
  • Options bags on client methods extend OperationOptions from a core package (@azure-rest/core-client, @azure/core-client, or @azure/core-rest-pipeline depending on the package lineage).
  • Do not disable @azure/eslint-plugin-azure-sdk rules with eslint-disable directives. Fix the underlying issue.
  • Do not hand-roll long-running operations. Use the LRO primitives in @azure/core-lro and @azure/core-client. Review sdk/core/core-lro for the latest patterns.
  • Always consult .github/skills/find-package-skill/SKILL.md (and the relevant package-specific SKILL.md if one is registered there) before modifying a package under sdk/.
  • When pushing new commits to an existing pull request, re-check that the PR description still matches the current changes. If iterating has made it inaccurate or incomplete, update the description in the same step — don't leave a stale description behind.

Where new guidance belongs

Rules for the agent that maintains this file:

  • A rule that applies to all package work → here, "Hard rules" section, only if it's eval-covered. Don't add hard rules without a corresponding eval in eng/agent-evals/ — the eval is what prevents the rule from silently drifting.
  • A workflow that's specific to one task type (build, generate, release, ...) → a new or existing skill in .github/skills/.
  • Reviewer-only behavior → .github/instructions/reviewer/.
  • Deep-dive how-to or tutorial → a new file under documentation/, then a row in the "Where to find guidance" table above pointing at it.
  • Package-specific tribal knowledge → a package-owned skill at sdk/<svc>/<pkg>/.github/skills/<name>/SKILL.md.
  • Contributor-facing prose (workflows, prerequisites, setup) → CONTRIBUTING.md, not here. AGENTS.md is for agent-routing only.

If a fact would belong in two places, pick the more-specific one. Link from the less-specific to the more-specific, don't copy.

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.