azure-sdk-for-cpp / azure-storage-blobs
AGENTS.md206 starsChanged 8 months agoMITView on GitHub
Guidance for AI agents working in sdk/storage/azure-storage-blobs. This file applies to: It extends sdk/storage/AGENTS.md with blob-specific guidance. Primary client hierarchy typically includes: Keep API behavior and naming consistent with this hierarchy. When touching blob code, ensure tests cover impacted areas: If behavior changes at protocol level, ensure recording/playback implications are addressed. Explicit human review recommended for:
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 repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- sdk/storage/AGENTS.mdAGENTS.md
- sdk/storage/azure-storage-files-datalake/AGENTS.mdAGENTS.md
- sdk/storage/azure-storage-files-shares/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- azsdk-common-apiview-feedback-resolutionSkill
- azsdk-common-generate-sdk-locallySkill
- azsdk-common-pipeline-troubleshootingSkill
- azsdk-common-prepare-release-planSkill
- azsdk-common-sdk-releaseSkill
- code-reviewSkill
The file
We split this AGENTS.md into the rules it gives an agent
9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Keep API behavior and naming consistent with this hierarchy.
- Distinctive: line 57
Keep transfer option parsing and defaults centralized and consistent.
- Distinctive: line 59
Prefer additive changes over replacing established abstractions.
- Distinctive: line 65
When touching blob code, ensure tests cover impacted areas:
- Distinctive: line 74
If behavior changes at protocol level, ensure recording/playback implications are addressed.
- Distinctive: line 80
Avoid renaming or removing public methods/types without approved breaking-change process.
- Distinctive: line 81
Keep overload patterns and option structs aligned with existing blob client style.
- Distinctive: line 89
Keep retry-friendly behavior for transient failures.
- Distinctive: line 90
Avoid introducing extra network calls on hot paths.
≈ “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
Guidance for AI agents working in sdk/storage/azure-storage-blobs.
Scope
This file applies to:
sdk/storage/azure-storage-blobs/**
It extends sdk/storage/AGENTS.md with blob-specific guidance.
Blob Domain Model (mental map)
Primary client hierarchy typically includes:
- BlobServiceClient (account-level blob service operations)
- BlobContainerClient (container-level operations)
- Blob clients (blob-level operations), including specializations such as:
- Block blob
- Append blob
- Page blob
Keep API behavior and naming consistent with this hierarchy.
Blob-Specific Concepts to Preserve
- Blob types: block / append / page have distinct semantics.
- Upload semantics: single-shot vs staged/block uploads.
- Download/range behavior: partial reads and offset/length options.
- Leases: acquire/renew/change/release/break behavior.
- Snapshots and versions: immutable references and operation targeting.
- Soft delete / undelete and retention interactions.
- Metadata vs tags: separate concerns and APIs.
- Access tiers / rehydration behavior and option constraints.
- Copy operations: sync/async copy patterns and polling/status behavior.
Common Pitfalls (avoid)
- Mixing block/blob/page operation constraints.
- Breaking conditional header behavior (If-Match, If-None-Match, etc.).
- Inconsistent treatment of empty payloads and zero-length blobs.
- Changing defaults that affect transfer performance or memory behavior.
- Regressing large-transfer chunking/parallel upload logic without benchmarks/tests.
Implementation Guidance
- Reuse existing upload/download helper logic rather than introducing alternative pathways unless required.
- Keep transfer option parsing and defaults centralized and consistent.
- Maintain compatibility of public models/options and response types.
- Prefer additive changes over replacing established abstractions.
Testing Focus Areas
When touching blob code, ensure tests cover impacted areas:
- Upload/download happy path.
- Conditional request behavior.
- Paging/listing continuation flows.
- Error-path mapping for key service responses.
- Blob-type-specific behavior (where relevant).
- Lease/version/snapshot semantics (if modified).
If behavior changes at protocol level, ensure recording/playback implications are addressed.
API & Compatibility Guardrails
- Avoid renaming or removing public methods/types without approved breaking-change process.
- Keep overload patterns and option structs aligned with existing blob client style.
- Preserve expected exception/error surfaces unless explicitly justified.
Performance & Reliability Expectations
- Be cautious with memory allocations for large transfers.
- Keep retry-friendly behavior for transient failures.
- Avoid introducing extra network calls on hot paths.
- Preserve streaming behavior where expected.
Review Triggers
Explicit human review recommended for:
- Transfer engine/chunking changes
- Lease logic changes
- Copy/polling workflow changes
- Version/snapshot targeting semantics
- Public API additions/changes
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.

