azure-sdk-for-rust / samples
AGENTS.md887 starsChanged 29 days agoMITView on GitHub
Follow ../AGENTS.md.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,774 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 repository22 other files it gives its agents.
- AGENTS.mdAGENTS.md
- eng/tools/generate_api/AGENTS.mdAGENTS.md
- sdk/core/AGENTS.mdAGENTS.md
- sdk/cosmos/AGENTS.mdAGENTS.md
- sdk/cosmos/azure_data_cosmos_emulator/AGENTS.mdAGENTS.md
- sdk/cosmos/docs/AGENTS.mdAGENTS.md
- agentic-workflowsSkill
- analyze-codeSkill
- check-spellingSkill
- create-crateSkill
- create-hotfixSkill
- create-perf-testSkill
- create-recorded-testSkill
- document-cratesSkill
- export-apiSkill
- lint-markdownSkill
- prepare-releaseSkill
- review-doc-commentsSkill
- update-emitterSkill
- update-rustSkill
- cosmos-design-structSkill
- cosmos-pre-commit-validationSkill
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 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.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Use the latest stable published versions of repo crates.
- Very specific: line 8
Use path dependencies only to show unpublished functionality that cannot live in a crate's examples/ directory.
- Distinctive: line 9
Never use path dependencies for convenience or to track unreleased versions.
- Very specific: line 10
If a sample uses a local path crate, mirror its direct Azure SDK path + version dependencies for any public types that cross the boundary.
- Very specific: line 14
Place each sample in samples/{service directory}/{sample}.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 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
Follow ../AGENTS.md.
Samples
- Use the latest stable published versions of repo crates.
- Use path dependencies only to show unpublished functionality that cannot live in a crate's
examples/directory. - Never use path dependencies for convenience or to track unreleased versions.
- If a sample uses a local
pathcrate, mirror its direct Azure SDKpath + versiondependencies for any public types that cross the boundary; do not mix published and local crate instances there.
Organization
- Place each sample in
samples/{service directory}/{sample}. The service directory must match an existing service directory undersdk/; for example,samples/cosmoscontains samples forsdk/cosmos. - Choose the
sdk/service directory for the predominant Azure service crate used by the sample. If the predominant service is indeterminate, ask the user which service directory to use before creating or moving the sample. - For every
samples/{service directory}, ensure .github/CODEOWNERS has a matching/sdk/{service directory}/entry and a/samples/{service directory}/entry with the same owners. - Apply spelling corrections to
samples/{service directory}using the same pattern as the correspondingsdk/{service directory}.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

