AGENTS.md
Root & nested subdirs + AGENTS.override.md
|
OpenAI Codex CLI, Cursor, Windsurf, Cline, Roo Code, OpenCode, Zed, Aider, Gemini CLI, GitHub Copilot
|
Always-on hierarchical merge (Root → CWD)
Standard Markdown only (no YAML frontmatter, no @path auto-expansion; 32 KiB max in Codex CLI)
|
Single source of truth for shared build, test, and architecture rules ( Generate AGENTS.md →)
|
CLAUDE.md
Root, .claude/CLAUDE.md, CLAUDE.local.md
|
Anthropic Claude Code CLI & IDE extensions
|
Always-on + supports @path/to/file.md imports
Also loads .claude/rules/*.md (supports optional paths: YAML frontmatter)
|
Import @AGENTS.md for shared rules + keep personal DB URLs in untracked CLAUDE.local.md ( Audit CLAUDE.md →)
|
.cursor/rules/*.mdc
Replaces deprecated root .cursorrules
|
Cursor IDE & Cursor Agent
|
Scoped by YAML frontmatter (description, globs, alwaysApply)
Attaches automatically when open files match globs or when requested by Cursor Agent
|
File-pattern rules (e.g., React component rules for src/**/*.tsx) ( Split .mdc files →)
|
SKILL.md
.claude/skills/<name>/SKILL.md & .agents/skills/<name>/SKILL.md
|
Claude Code, OpenAI Codex CLI, Antigravity, OpenCode, Gemini CLI
|
Progressive disclosure (~60 tokens at startup)
Requires YAML name & trigger description; loads body, scripts/ & references/ only on demand
|
Specialized workflows (PR security audits, SQL migration checks, release notes) ( Build SKILL.md →)
|
.github/copilot-instructions.md
+ .github/instructions/*.instructions.md
|
GitHub Copilot Chat, Copilot Coding Agent & VS Code
|
Always-on repo instructions + applyTo glob files
Copilot in VS Code also supports reading root AGENTS.md and CLAUDE.md
|
GitHub PR reviews & VS Code Copilot Agent mode
|