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
Who's talking about Azure/azure-sdk-for-js
- microsoft/TypeScript“Extract APIs that are common to Node and the DOM to their own namespace”GitHub · Nov 29, 2020 · 21 reactions
- langchain-ai/langchainjs“[Feature request] Azure OpenAI Assistants”GitHub · Feb 8, 2024 · 14 reactions
- pnpm/pnpm“pnpm install failed on WSL with mounted windows file system drive: EACCES EACCES: permission denied”GitHub · Feb 28, 2023 · 11 reactions
- Azure/azure-sdk-for-python“"exists" operator for containers and blobs”GitHub · Jan 17, 2020 · 7 reactions
- anonyco/FastestSmallestTextEncoderDecoder“React Native - TypeError: Cannot read property 'prototype' of undefined”GitHub · Jul 11, 2024 · 6 reactions
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
- Nov 29, 2020Extract APIs that are common to Node and the DOM to their own namespace — microsoft/TypeScript21 reactions · 6 comments
- Feb 8, 2024[Feature request] Azure OpenAI Assistants — langchain-ai/langchainjs14 reactions · 4 comments
- Feb 28, 2023pnpm install failed on WSL with mounted windows file system drive: EACCES EACCES: permission denied — pnpm/pnpm11 reactions · 16 comments
- Jan 17, 2020"exists" operator for containers and blobs — Azure/azure-sdk-for-python7 reactions · 8 comments
- Jul 11, 2024React Native - TypeError: Cannot read property 'prototype' of undefined — anonyco/FastestSmallestTextEncoderDecoder6 reactions · 1 comment
5 more on GitHub
- Mar 15, 2024Avoid the SemVer v0.x.x anti-pattern — open-telemetry/opentelemetry-js5 reactions · 13 comments
- Mar 26, 2020Add a common AzureKeyCredential to Azure Core — Azure/azure-sdk5 reactions · 8 comments
- Mar 1, 2022[Identity] Getting a token via VisualStudioCodeCredential using v0.10.0 of the Azure Account Extension results in an error — Azure/azure-sdk-for-net4 reactions · 3 comments
- Nov 1, 2023[Epic] - Fix issues found when generating OpenAI — Azure/autorest.typescript3 reactions
- Jun 16, 2020[rush] Deprecated options warning when using pnpm v5 — microsoft/rushstack3 reactions · 1 comment
On Bluesky · 1
- Nov 12, 2023📦 Azure / azure-sdk-for-js ⭐ 1,810 (+46) 🗒 TypeScript This repository is for active development of the Azure SDK for JavaScript (NodeJS… — @github-trending-js.bsky.social3 likes and reposts
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 repository15 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- ado-pipeline-auditSkill
- agentic-workflowsSkill
- azsdk-common-apiview-feedback-resolutionSkill
- azsdk-common-generate-sdk-locallySkill
- azsdk-common-pipeline-analysisSkill
- azsdk-common-pipeline-fixerSkill
- azsdk-common-prepare-release-planSkill
- azsdk-common-sdk-breaking-changeSkill
- azsdk-common-sdk-releaseSkill
- code-reviewSkill
- create-package-skillSkill
- find-package-skillSkill
- node-migrationSkill
- sdk-workflowSkill
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
- Very specific: line 55
Do not use npm run build at the package level — turbo workspace linking breaks it.
- Very specific: line 57
Do not edit files under <package>/generated/.
- Very specific: line 61
Don't refactor, delete, or "fix" them as part of test cleanup.
- Very specific: line 67
Do not disable @azure/eslint-plugin-azure-sdk rules with eslint-disable directives.
- Very specific: line 69
Do not hand-roll long-running operations.
- Very specific: line 72
Always consult .github/skills/find-package-skill/SKILL.md (and the relevant package-specific SKILL.md if one is registered there)
- Distinctive: line 75
When pushing new commits to an existing pull request, re-check that the PR description still matches the current changes.
- Distinctive: line 99
If a fact would belong in two places, pick the more-specific one.
≈ “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.
Files
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 underdocumentation/*. - Contributor onboarding: see
README.mdandCONTRIBUTING.md.
Where to find guidance
| Task / topic | Where 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-sync | documentation/Quickstart-on-how-to-write-tests.md |
| TypeSpec / codegen workflow | documentation/Generate-code-from-TypeSpec.md |
| Linting rules and troubleshooting | documentation/linting.md |
| Dependency management | documentation/dependency-management.md |
| Authoritative API design guidelines | https://azure.github.io/azure-sdk/typescript_design.html |
| Other deep dives | documentation/ (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-workspaceeng/*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 usenpm run buildat the package level — turbo workspace linking breaks it. - Do not edit files under
<package>/generated/. Those are regenerated on everytsp-clientrun. Customizations go insrc/or via TypeSpec decorators. Seedocumentation/modular-customization.md. snippets.spec.tsfiles are documentation source, not real tests. Don't refactor, delete, or "fix" them as part of test cleanup. They're consumed bydev-tool run update-snippetsto keep README code blocks in sync.- Options bags on client methods extend
OperationOptionsfrom a core package (@azure-rest/core-client,@azure/core-client, or@azure/core-rest-pipelinedepending on the package lineage). - Do not disable
@azure/eslint-plugin-azure-sdkrules witheslint-disabledirectives. Fix the underlying issue. - Do not hand-roll long-running operations. Use the LRO primitives
in
@azure/core-lroand@azure/core-client. Reviewsdk/core/core-lrofor the latest patterns. - Always consult
.github/skills/find-package-skill/SKILL.md(and the relevant package-specificSKILL.mdif one is registered there) before modifying a package undersdk/. - 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.
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.

