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

azure-sdk-for-java

AGENTS.md2.6k starsChanged 21 months agoMITView on GitHub

This file provides guidance for AI agents (e.g., GitHub Copilot, Model Context Protocol servers, or other LLM-based assistants) interacting with the Azure SDK for Java repository. The Azure SDK for Java provides developers with libraries for accessing Azure services. The SDK is organized into client libraries, with each library corresponding to an Azure service. The repository follows a specific structure: AI agents interacting with this repository can assist with: Agents should NOT: Most client libraries are generated from TypeSpec specifications…

Trending

Quiet this year.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the Azure/azure-sdk-for-java repository that our weekly crawl found: only 12 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about Azure/azure-sdk-for-java

The biggest 5 of 12 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 12

Talked about on GitHub (12 times).

On GitHub · 12

7 more on GitHub

The file

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

10 rules. About 1 is common, 7 are distinctive, and 2 are very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    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. Very specific:

    Follow semantic versioning: major.minor.patch[-beta.N]

    line 113
  2. Very specific:

    Use the update_versions.py script for version updates

    line 114
  3. Distinctive:

    All contributions must follow the Azure SDK Design Guidelines for Java.

    line 130
  4. Distinctive:

    Idiomatic: Use natural Java patterns (try-with-resources, Streams, Optional)

    line 134
  5. Distinctive:

    Consistent: Follow consistent naming and design patterns across all libraries

    line 135
  6. Distinctive:

    Dependable: Ensure reliability through robust error handling and retries

    line 138
  7. Distinctive:

    Best Practices: Use modern Java features where appropriate

    line 153
  8. Common:

    Never commit secrets or credentials

    line 165
  9. Distinctive:

    Use Azure Identity for authentication in samples

    line 166
  10. Distinctive:

    Follow secure coding practices

    line 167

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

This file provides guidance for AI agents (e.g., GitHub Copilot, Model Context Protocol servers, or other LLM-based assistants) interacting with the Azure SDK for Java repository.

Repository Purpose

The Azure SDK for Java provides developers with libraries for accessing Azure services. The SDK is organized into client libraries, with each library corresponding to an Azure service. The repository follows a specific structure:

  • Client Libraries: Located in /sdk directory, containing individual service clients
  • Data plane Libraries: Libraries with Maven group com.azure
  • Management Libraries: Libraries with Maven group com.azure.resourcemanager
  • Spring Libraries: Libraries with Maven group com.azure.spring

Repository Structure

/sdk/                    # Individual service client libraries
/eng/                    # Engineering system files and automation
/doc/                    # Documentation
/samples/                # Sample code and tutorials
/.github/                # GitHub-specific configuration
  /copilot-instructions.md  # Detailed Copilot-specific instructions

Agent Capabilities

Supported Actions

AI agents interacting with this repository can assist with:

  1. Code Generation and Modification
    • Creating new client libraries following Azure SDK design guidelines
    • Adding features to existing libraries
    • Writing unit and integration tests
    • Refactoring code while maintaining backward compatibility
  2. Documentation
    • Writing and updating README files
    • Creating JavaDoc comments for public APIs
    • Updating CHANGELOG files
    • Creating code samples and snippets
  3. Issue Triage and PR Review
    • Analyzing and categorizing issues
    • Suggesting labels and assignees
    • Reviewing pull requests for adherence to guidelines
    • Identifying potential breaking changes
  4. Build and Test Automation
    • Running Maven builds
    • Executing unit tests
    • Analyzing test failures
    • Checking code style with Checkstyle and SpotBugs
  5. SDK Release Support
    • Checking package release readiness
    • Updating version numbers following semantic versioning
    • Verifying API review status

Boundaries and Limitations

Agents should NOT:

  • Disable or modify Checkstyle or SpotBugs rules to resolve linting issues
  • Re-record tests as a fix to failing tests
  • Make breaking changes to GA'd APIs without explicit approval
  • Turn off security checks or introduce security vulnerabilities
  • Suggest third-party alternatives to Azure SDK packages in official samples

Key Workflows

Building the SDK

# Build all modules
mvn clean install -DskipTests

# Build a specific module
mvn -f sdk/{service}/pom.xml clean install -DskipTests

# Run tests for a specific module
mvn -f sdk/{service}/pom.xml test

Running Code Quality Checks

# Run Checkstyle
mvn checkstyle:check

# Run SpotBugs
mvn spotbugs:check

# Run both style checks
mvn checkstyle:check spotbugs:check

Testing

# Run unit tests for a specific module (playback by default)
mvn -f sdk/{service}/pom.xml test

# Run live tests for a specific module (requires Azure resources and environment variables)
AZURE_TEST_MODE=LIVE mvn -f sdk/{service}/pom.xml -Dmaven.wagon.http.pool=false --batch-mode --fail-at-end test

# See eng/common/TestResources/New-TestResources.ps1 for setting up test resources

Versioning

  • Version files are located in /eng/versioning/
  • Follow semantic versioning: major.minor.patch[-beta.N]
  • Use the update_versions.py script for version updates
  • See CONTRIBUTING.md for detailed versioning guidelines

SDK Generation

Most client libraries are generated from TypeSpec specifications using tsp-client. To re-generate a library after spec changes, run the following from the module directory (sdk/<service>/<module>/):

# Re-generate SDK from the configured TypeSpec source
tsp-client update

See TypeSpec Quickstart for details.

Design Guidelines

All contributions must follow the Azure SDK Design Guidelines for Java.

Core Principles

  • Idiomatic: Use natural Java patterns (try-with-resources, Streams, Optional)
  • Consistent: Follow consistent naming and design patterns across all libraries
  • Approachable: Provide clear documentation and intuitive APIs
  • Diagnosable: Include comprehensive logging and telemetry
  • Dependable: Ensure reliability through robust error handling and retries

API Design Requirements

  • Service client classes with "Client" suffix
  • Fluent builder patterns for client instantiation
  • Synchronous and asynchronous clients (async suffixed with "AsyncClient")
  • Options bags for additional parameters (e.g., <MethodName>Options)
  • Standard verbs: create, upsert, set, get, list, delete
  • Comprehensive JavaDoc for all public APIs

Java Compatibility

  • Baseline: Java 8
  • Testing: Up to latest Java LTS (currently Java 21)
  • Best Practices: Use modern Java features where appropriate

CI/CD Pipeline

The repository uses Azure Pipelines for continuous integration:

  • Each service has a ci.yml file defining its build pipeline
  • PRs must pass all CI checks before merging
  • Daily builds publish to the dev feed at Azure Artifacts

Security and Compliance

  • Never commit secrets or credentials
  • Use Azure Identity for authentication in samples
  • Follow secure coding practices
  • Report security issues to secure@microsoft.com
  • See SECURITY.md for more information

Contributing

See CONTRIBUTING.md for detailed contribution guidelines, including:

  • Pull request requirements
  • Code review process
  • Testing requirements
  • Documentation standards
  • Version management

Agent-Specific Instructions

For detailed GitHub Copilot-specific instructions, including behavior guidelines, data sources, and SDK-specific patterns, see .github/copilot-instructions.md.

Resources

Documentation

Repository Links

External References

Feedback and Questions


This file aligns with the AGENTS.md standard and provides a comprehensive guide for AI agents interacting with the Azure SDK for Java repository.

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.