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

azure-sdk-for-cpp / storage

AGENTS.md206 starsChanged 8 months agoMITView on GitHub

This file provides guidance for AI agents working in sdk/storage of the Azure SDK for C++ repository. This AGENTS file applies to: This file supplements the repository-root guidance in /AGENTS.md. Agents working in sdk/storage must follow both files: apply root repository-wide policies first, then apply storage-specific guidance from this file. For service-specific guidance, prefer the local AGENTS files: If guidance conflicts, the most local AGENTS file takes precedence. Azure Storage packages in this repo generally follow this layering: 1. azure-core…

The file

Show its rules and text

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

18 rules. About 1 is common, 17 are distinctive, and 0 are very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈17

    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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    If guidance conflicts, the most local AGENTS file takes precedence.

    line 21
  2. Distinctive:

    When making changes, prioritize:

    line 56
  3. Distinctive:

    Follow existing patterns in neighboring storage packages before introducing new abstractions.

    line 70
  4. Distinctive:

    Keep error handling aligned with azure-core and existing storage behavior.

    line 72
  5. Distinctive:

    Add or update tests for every functional change.

    line 74
  6. Distinctive:

    Keep generated code and hand-written code boundaries intact.

    line 75
  7. Distinctive:

    Don't introduce breaking public API changes without explicit review.

    line 79
  8. Distinctive:

    Don't duplicate common logic that belongs in storage common.

    line 80
  9. Common:

    Don't hardcode secrets, account keys, SAS tokens, or connection strings.

    line 81
  10. Distinctive:

    Don't manually edit generated assets when source-generation workflow is expected.

    line 82
  11. Distinctive:

    Don't broaden scope into unrelated storage services in one change.

    line 83
  12. Distinctive:

    Run targeted tests for the modified package.

    line 104
  13. Distinctive:

    If request/response wire behavior changes, ensure playback/recording compatibility strategy is considered.

    line 105
  14. Distinctive:

    Prefer narrowly scoped tests over broad suite expansion unless needed.

    line 106
  15. Distinctive:

    Use PLAYBACK mode for fast validation where applicable, and only require LIVE/RECORD updates when behavior actually changed.

    line 108
  16. Distinctive:

    Ensure samples/docs remain accurate.

    line 117
  17. Distinctive:

    Keep includes, namespaces, and public headers aligned with package conventions.

    line 118
  18. Distinctive:

    Test proxy / recording sanitization policy adjustments.

    line 132

≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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

This file provides guidance for AI agents working in sdk/storage of the Azure SDK for C++ repository.

Scope

This AGENTS file applies to:

  • sdk/storage/**
  • Cross-cutting storage concepts shared across blobs, file shares, datalake, queues, and storage common.

This file supplements the repository-root guidance in /AGENTS.md.
Agents working in sdk/storage must follow both files: apply root repository-wide policies first, then apply storage-specific guidance from this file.

For service-specific guidance, prefer the local AGENTS files:

  • sdk/storage/azure-storage-blobs/AGENTS.md
  • sdk/storage/azure-storage-files-datalake/AGENTS.md
  • sdk/storage/azure-storage-files-shares/AGENTS.md

If guidance conflicts, the most local AGENTS file takes precedence.


Storage Architecture Basics (C++ SDK)

Azure Storage packages in this repo generally follow this layering:

  1. azure-core
    HTTP pipeline, credentials, retries, diagnostics, policies, transport abstractions.
  2. azure-storage-common
    Shared storage primitives (SAS helpers, shared key auth policy integrations, common request/response helpers, shared models).
  3. Service libraries
    • azure-storage-blobs
    • azure-storage-files-datalake
    • azure-storage-files-shares
    • azure-storage-queues

Typical client structure

Storage libraries commonly expose:

  • Service clients (account/service-level operations)
  • Container/share/filesystem clients (scope-level operations)
  • Item clients (blob/file/path/message operations)
  • Options/Models for API inputs and outputs

Maintain consistency with existing naming, API style, and option-object patterns.


Agent Priorities

When making changes, prioritize:

  1. API consistency with surrounding storage clients.
  2. Minimal diff and surgical edits.
  3. Backward compatibility for public APIs.
  4. Tests first/with changes (unit + live/recording updates as needed).
  5. Documentation and changelog updates where required.

Do / Don't

Do

  • Follow existing patterns in neighboring storage packages before introducing new abstractions.
  • Reuse shared helpers in azure-storage-common when appropriate.
  • Keep error handling aligned with azure-core and existing storage behavior.
  • Preserve ABI/API compatibility unless explicitly requested and reviewed.
  • Add or update tests for every functional change.
  • Keep generated code and hand-written code boundaries intact.

Don't

  • Don't introduce breaking public API changes without explicit review.
  • Don't duplicate common logic that belongs in storage common.
  • Don't hardcode secrets, account keys, SAS tokens, or connection strings.
  • Don't manually edit generated assets when source-generation workflow is expected.
  • Don't broaden scope into unrelated storage services in one change.

Key Concepts Agents Should Understand

  • Authentication modes: Shared Key, SAS, TokenCredential (Microsoft Entra ID via azure-identity).
  • SAS types: account SAS, service SAS, user delegation SAS.
  • Conditional requests: ETag / match conditions.
  • Data integrity: transactional hashes/validation where supported.
  • Paging: continuation tokens and pageable responses.
  • Retries/timeouts: pipeline retry policies and per-call options.
  • Service-version-sensitive behavior: preserve compatibility and existing defaults.

Testing Guidance

Before finalizing changes:

  1. Build impacted storage package(s).
  2. Run targeted tests for the modified package.
  3. If request/response wire behavior changes, ensure playback/recording compatibility strategy is considered.
  4. Prefer narrowly scoped tests over broad suite expansion unless needed.

Use PLAYBACK mode for fast validation where applicable, and only require LIVE/RECORD updates when behavior actually changed.


Expected Change Hygiene

For non-trivial changes:

  • Update package CHANGELOG.md.
  • Ensure samples/docs remain accurate.
  • Keep includes, namespaces, and public headers aligned with package conventions.
  • Validate CMake updates are minimal and correctly scoped to the package.

Escalation / Human Review Triggers

Flag for maintainer review if change involves:

  • Public API shape changes.
  • Authentication/signing logic.
  • Retry/pipeline policy semantics.
  • Cross-package refactors in multiple storage libraries.
  • Service-version default changes.
  • Test proxy / recording sanitization policy adjustments.

Quick Checklist for Agents

  • Scope confirmed to correct storage package.
  • Followed nearest existing code pattern.
  • Added/updated tests.
  • No secrets introduced.
  • No unintended public API break.
  • Changelog/docs updated (if applicable).
  • Build and targeted tests pass locally/CI.

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.