Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Oct 9, 2025

  • Review existing .github/copilot-instructions.md to understand current agent guidance
  • Review README.md, CONTRIBUTING.md, and repository structure
  • Create an AGENTS.md file at the root following canonical structure
  • Include repository purpose and scope
  • Define key workflows and commands for agents
  • Describe supported contribution actions (PR triage, issue management)
  • Add guidance for safe interaction with CI/CD, SDK tests, and documentation
  • Cross-reference with .github/copilot-instructions.md
  • Include SDK-specific automation workflows (codegen, API review, test matrix)
  • Add cross-references in README.md
  • Validate the created file and all references
  • Convert relative links to absolute links (per Azure SDK guidelines)
  • Reduce duplication by referencing README.md and CONTRIBUTING.md

Summary

Created a comprehensive AGENTS.md file (220 lines) that provides guidance for AI agents interacting with the Azure SDK for Go repository.

Recent Changes (commit 2)

  • Converted all relative links to absolute GitHub URLs following Azure SDK link guidelines
  • Reduced duplication by referencing existing documentation:
    • Removed duplicated repository purpose section, now references README.md
    • Added reference to CONTRIBUTING.md for detailed contribution guidelines
    • Simplified PR Review Checklist with reference to CONTRIBUTING.md for full requirements
  • All internal links now use format: https://github.com/Azure/azure-sdk-for-go/blob/main/<path>

Key Sections

  • Repository Overview: References README.md for comprehensive overview
  • Agent Capabilities and Boundaries: Clearly defines what agents can and cannot do
  • Key Workflows: Development, TypeSpec/code generation, and contribution workflows with references to detailed guides
  • SDK-Specific Automation: Module structure, test conventions, Go module standards
  • Communication Channels: How to get help and find code owners
  • Safety and Best Practices: Guidelines for agents, code reviews, and testing
  • Additional Resources: Links to Azure SDK guidelines, documentation, and tools

Cross-References

  • Added reference to AGENTS.md in .github/copilot-instructions.md as the first bullet point
  • Added reference to AGENTS.md in README.md Contribute section
  • All internal links use absolute URLs per Azure SDK guidelines
  • References to README.md and CONTRIBUTING.md to avoid duplication
Original prompt

This section details on the original issue you should resolve

<issue_title>Add AGENTS.md file</issue_title>
<issue_description># 🧩 Add AGENTS.md file to align with AGENTS.md standards

📄 Description

This repository currently includes a .github/copilot-instructions.md file, but it does not yet have an AGENTS.md file to describe how AI agents (e.g., Copilot, MCP, or LLM-based assistants) should interact with this repository.

To align with emerging AGENTS.md standards and ensure consistent developer experiences across Azure SDK repositories, we should add a top-level AGENTS.md file that defines:

  • Repository purpose and scope
  • Key workflows, commands, and automation boundaries for agents
  • Supported contribution actions (e.g., PR triage, labeling, issue summarization)
  • Guidance for safe and effective agent interactions with CI/CD pipelines, SDK tests, and documentation

✅ Proposed Tasks

  • Review existing .github/copilot-instructions.md and identify relevant guidance to merge or reference in AGENTS.md.
  • Create an AGENTS.md file at the root of the repository following the canonical structure defined at AGENTS.md.
  • Cross-link between .github/copilot-instructions.md and AGENTS.md for discoverability.
  • (Optional) Add repository metadata in AGENTS.md to describe SDK-specific automation workflows (e.g., codegen, API review, test matrix).

📘 Example References

🧭 Context

This issue is part of a broader initiative to introduce AGENTS.md across all Azure SDK repositories (see the Azure SDK org overview) to standardize AI agent documentation and improve consistency in automation and Copilot-based contributions.
</issue_description>

Comments on the Issue (you are @copilot in this section)

Fixes #25393


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: ronniegeraghty <28957151+ronniegeraghty@users.noreply.github.com>
@Copilot Copilot AI changed the title [WIP] Add AGENTS.md file to repository Add AGENTS.md file to align with AGENTS.md standards Oct 9, 2025
@Copilot Copilot AI requested a review from ronniegeraghty October 9, 2025 18:40
Copilot finished work on behalf of ronniegeraghty October 9, 2025 18:40
@RickWinter RickWinter marked this pull request as ready for review October 9, 2025 22:01
@Copilot Copilot AI review requested due to automatic review settings October 9, 2025 22:01
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a comprehensive AGENTS.md file to align with emerging AGENTS.md standards and provide guidance for AI agents interacting with the Azure SDK for Go repository. The file establishes clear boundaries for AI agent interactions and provides detailed workflow guidance.

Key changes:

  • Creates a comprehensive 236-line AGENTS.md file with repository overview, agent boundaries, workflows, and best practices
  • Adds cross-references in both the main README.md and .github/copilot-instructions.md for better discoverability
  • Establishes clear automation boundaries, particularly around sensitive operations like releases and security

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
AGENTS.md New comprehensive guide for AI agents with repository overview, supported actions, automation boundaries, workflows, and best practices
README.md Adds reference to AGENTS.md in the Contribute section for AI agents and automated tools
.github/copilot-instructions.md Adds prominent reference to AGENTS.md as the first bullet point for comprehensive agent guidance


### Azure SDK Guidelines
- [Azure Go SDK Guidelines](https://azure.github.io/azure-sdk/golang_introduction.html) - Primary reference for SDK development
- [API Design Guidelines](https://azure.github.io/azure-sdk/golang_introduction.html) - API design principles
Copy link

Copilot AI Oct 9, 2025

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.

Suggested change
- [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.

AGENTS.md Outdated
- **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)
Copy link

Copilot AI Oct 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The referenced file path eng/common/instructions/azsdk-tools/validate-codeowners.instructions.md should be verified to exist in the repository. If this is an external reference or the path is incorrect, it should be updated or removed.

Suggested change
- **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.

AGENTS.md Outdated
go generate
```

See [TypeSpec location instructions](.github/instructions/tsp-location.instructions.md) for details.
Copy link

Copilot AI Oct 9, 2025

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.

Suggested change
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.

Copy link
Member

@RickWinter RickWinter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot Avoid duplicating code in the Agents.md file. Where possible reference the content in README.MD and CONTRIBUTING.MD

AGENTS.md Outdated
Comment on lines 15 to 19
- [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
Copy link
Member

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

Copy link
Contributor Author

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.

Co-authored-by: RickWinter <4430337+RickWinter@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Oct 9, 2025

@copilot Avoid duplicating code in the Agents.md file. Where possible reference the content in README.MD and CONTRIBUTING.MD

Reduced duplication in commit 3d9f7ad by:

  • Replacing the Purpose section with a direct reference to README.md for comprehensive repository overview
  • Adding reference to CONTRIBUTING.md for detailed contribution guidelines
  • Simplifying the PR Review Checklist with a reference to the Pull Requests section in CONTRIBUTING.md
  • The AGENTS.md now focuses on agent-specific guidance while referencing existing documentation for detailed information

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • aka.ms
    • Triggering command: curl -s REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot finished work on behalf of RickWinter October 9, 2025 22:14
@Copilot Copilot AI requested a review from RickWinter October 9, 2025 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add AGENTS.md file

3 participants