agentleFS
Microsoft AzureKnown publisherAzure/azure-sdk-for-cpp/sdk/storage/azure-storage-blobs/AGENTS.md

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:

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
  1. Distinctive:

    Keep API behavior and naming consistent with this hierarchy.

    line 26
  2. Distinctive:

    Keep transfer option parsing and defaults centralized and consistent.

    line 57
  3. Distinctive:

    Prefer additive changes over replacing established abstractions.

    line 59
  4. Distinctive:

    When touching blob code, ensure tests cover impacted areas:

    line 65
  5. Distinctive:

    If behavior changes at protocol level, ensure recording/playback implications are addressed.

    line 74
  6. Distinctive:

    Avoid renaming or removing public methods/types without approved breaking-change process.

    line 80
  7. Distinctive:

    Keep overload patterns and option structs aligned with existing blob client style.

    line 81
  8. Distinctive:

    Keep retry-friendly behavior for transient failures.

    line 89
  9. Distinctive:

    Avoid introducing extra network calls on hot paths.

    line 90

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

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:

  1. Upload/download happy path.
  2. Conditional request behavior.
  3. Paging/listing continuation flows.
  4. Error-path mapping for key service responses.
  5. Blob-type-specific behavior (where relevant).
  6. 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

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.