Consolidate agent instructions into AGENTS.md#7984
Open
amcaplan wants to merge 1 commit into
Open
Conversation
Cursor is no longer widely used, so .cursor/rules/base.mdc and docs.mdc duplicated content that should live in a single standard AGENTS.md (https://agents.md/). CLAUDE.md and the Cursor rule now just point to AGENTS.md instead of duplicating its content. Assisted-By: devx/952e932f-652c-498f-8052-b2f61ce56cf7
Contributor
There was a problem hiding this comment.
Pull request overview
This PR consolidates agent/AI-assistant guidance into a single canonical AGENTS.md, replacing duplicated instructions previously kept in Cursor-specific rule files, and updates other tooling entrypoints to point at AGENTS.md.
Changes:
- Expanded
AGENTS.mdto include general coding guidelines and “Further reading” links in addition to the existing changesets policy. - Updated
.claude/CLAUDE.mdand.cursor/rules/base.mdcto become thin pointers toAGENTS.md. - Removed
.cursor/rules/docs.mdcand folded its link content intoAGENTS.md.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| AGENTS.md | Becomes the canonical, expanded agent-instructions document (guidelines + further reading + changesets). |
| .cursor/rules/docs.mdc | Removed; its content is moved into AGENTS.md. |
| .cursor/rules/base.mdc | Reduced to a pointer to AGENTS.md while keeping required frontmatter. |
| .claude/CLAUDE.md | Simplified to reference AGENTS.md only. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| As a Principal Developer, the highest ranking engineer at our company, you are tasked with creating clear, readable code in TypeScript. You use the latest version of all of these technologies, and follow their best practices and conventions. | ||
|
|
||
| When responding to questions, follow the Chain of Thought method. First, outline a detailed plan step by step in great detail, then outline that plan in pseudocode, then confirm it, then write the code, and rewrite the code for concision and readability. |
isaacroldan
approved these changes
Jul 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
Related to https://github.com/shop/issues-develop/issues/22870
Consolidates our agent/AI-assistant instructions into a single standard
AGENTS.md(https://agents.md/) instead of duplicating them across Cursor-specific rule files.Why?
We were maintaining the same guidance in two places:
AGENTS.md(changesets policy only).cursor/rules/base.mdc(full coding guidelines + changesets policy, duplicated).cursor/rules/docs.mdc(links to docs)Cursor isn't widely used on the team anymore, but Claude Code, and other agent tooling already looks for
AGENTS.md. Keeping the full instructions there and pointing everything else at it avoids drift.Changes
AGENTS.md: now the canonical source — merged in the coding guidelines and doc links that used to live only in the Cursor rules..claude/CLAUDE.md: now just points toAGENTS.md..cursor/rules/base.mdc: now a thin pointer toAGENTS.md(kept required frontmatter)..cursor/rules/docs.mdc: removed, content folded intoAGENTS.md.No user-facing behavior change, so no changeset.