-
Notifications
You must be signed in to change notification settings - Fork 934
Add AGENTS.md file to align with AGENTS.md standards #25394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,236 @@ | ||||||
# AGENTS.md | ||||||
|
||||||
This file provides guidance for AI agents (e.g., GitHub Copilot, MCP, or LLM-based assistants) interacting with the Azure SDK for Go repository. | ||||||
|
||||||
## Repository Overview | ||||||
|
||||||
### Purpose | ||||||
This repository contains the Azure SDK for Go, providing Go packages for interacting with Azure services. The SDK includes: | ||||||
|
||||||
- **Client modules** (`sdk/`) - For consuming Azure services (e.g., uploading blobs, querying databases) | ||||||
- **Management modules** (`sdk/resourcemanager/`) - For configuring and managing Azure resources | ||||||
- **Historical packages** (`services/`, `profiles/`) - Deprecated track 1 SDKs (no longer actively maintained) | ||||||
|
||||||
### Key Documentation | ||||||
- [Main README](README.md) - Getting started and package information | ||||||
- [Contributing Guide](CONTRIBUTING.md) - Contribution guidelines and PR requirements | ||||||
- [Developer Setup](documentation/developer_setup.md) - Environment setup for SDK development | ||||||
- [Release Documentation](documentation/release.md) - Package release process | ||||||
- [Copilot Instructions](.github/copilot-instructions.md) - Copilot-specific guidance | ||||||
|
||||||
### Go Version Support | ||||||
The SDK is compatible with the two most recent major Go releases, following Go's official [support policy](https://go.dev/doc/devel/release#policy). | ||||||
|
||||||
## Agent Capabilities and Boundaries | ||||||
|
||||||
### Supported Actions | ||||||
|
||||||
AI agents can assist with the following activities: | ||||||
|
||||||
#### Code Development | ||||||
- **Reading and understanding code**: Browse SDK packages, understand APIs, and explain functionality | ||||||
- **Code suggestions**: Propose improvements, bug fixes, or new features following [Azure Go SDK Guidelines](https://azure.github.io/azure-sdk/golang_introduction.html) | ||||||
- **Testing**: Write or update unit tests using `github.com/stretchr/testify/require` | ||||||
- **Examples**: Create example code in `example*_test.go` files following the [Go examples guidelines](.github/instructions/go-examples.instructions.md) | ||||||
|
||||||
#### Documentation | ||||||
- **README updates**: Improve module READMEs and documentation | ||||||
- **Code comments**: Add or improve GoDoc comments following [documentation style](https://azure.github.io/azure-sdk/golang_introduction.html#documentation-style) | ||||||
- **CHANGELOG updates**: Document changes in CHANGELOG.md files | ||||||
|
||||||
#### Issue and PR Management | ||||||
- **Issue triage**: Review issues, suggest labels, identify duplicates | ||||||
- **PR review assistance**: Analyze PRs, suggest improvements, check for guideline compliance | ||||||
- **Question answering**: Help developers with SDK usage questions | ||||||
|
||||||
### Automation Boundaries | ||||||
|
||||||
AI agents should **NOT** perform the following actions without human approval: | ||||||
|
||||||
#### Build and Release | ||||||
- **Triggering releases**: Only humans should use `CheckPackageReleaseReadiness` and `ReleasePackage` MCP tools | ||||||
- **Modifying CI/CD pipelines**: Changes to `ci.yml`, Azure Pipelines configurations, or workflow files require careful review | ||||||
- **Approving releases**: Release stage approvals in pipelines must be done by authorized personnel | ||||||
|
||||||
#### Code Generation | ||||||
- **Regenerating SDK code**: Packages under `services/` are generated from [Azure API specs](https://github.com/Azure/azure-rest-api-specs) and should not be manually modified | ||||||
- **AutoRest/TypeSpec changes**: SDK generation from specifications requires specific tools and workflows (see [code generation docs](documentation/code-generation.md)) | ||||||
|
||||||
#### Security and Compliance | ||||||
- **CODEOWNERS modifications**: Changes require following [CODEOWNERS validation workflow](eng/common/instructions/azsdk-tools/validate-codeowners.instructions.md) | ||||||
|
- **CODEOWNERS modifications**: Changes require following [CODEOWNERS validation workflow](eng/common/instructions/azsdk-tools/validate-codeowners.instructions.md) | |
- **CODEOWNERS modifications**: Changes require following the CODEOWNERS validation workflow (consult a maintainer or see internal documentation) |
Copilot uses AI. Check for mistakes.
Outdated
Copilot
AI
Oct 9, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The referenced file path .github/instructions/tsp-location.instructions.md
should be verified to exist in the repository. If this file doesn't exist, the reference should be updated or removed.
See [TypeSpec location instructions](.github/instructions/tsp-location.instructions.md) for details. | |
<!-- TypeSpec location instructions file not found; reference removed to avoid broken link. --> |
Copilot uses AI. Check for mistakes.
Copilot
AI
Oct 9, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The API Design Guidelines link points to the same URL as the Azure Go SDK Guidelines above (line 217). This should link to a more specific API design section or be updated to reflect the actual API design guidelines URL.
- [API Design Guidelines](https://azure.github.io/azure-sdk/golang_introduction.html) - API design principles | |
- [API Design Guidelines](https://azure.github.io/azure-sdk/general_azure_sdk_api_design.html) - API design principles |
Copilot uses AI. Check for mistakes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot Use absolute link instead. Check here for more information: https://aka.ms/azsdk/guideline/links
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated all relative links to absolute GitHub URLs in commit 3d9f7ad. All internal documentation links now use the format
https://github.com/Azure/azure-sdk-for-go/blob/main/<path>
per the Azure SDK link guidelines.