AGENTS.md vs skills vs MCP: what belongs where?

Route repository rules, repeatable procedures, and live capabilities to the right interface, with minimal examples and a versioned update workflow.

AIAgentsMCP

Sources are linked in the guide. Read our editorial policy.

On this page 6 sections

Use AGENTS.md for durable repository instructions, Agent Skills for task-specific procedures, and MCP for exposing tools, resources, and prompts to an application. These interfaces can work together. They are not three interchangeable plugin formats, and none makes an instruction an enforced permission.

The distinction matters when “keep my agent up to date” turns into another copied prompt. An indexed X post about a PR-writing skill suggests adding an AGENTS.md instruction to load it every time. That is a useful design question: does every task need this procedure, or only PR-writing tasks? Full X access was unavailable; the reference is an indexed excerpt, not a verified thread or product assessment.

This guide adds an artifact ownership and update contract to the usual comparison: know which file owns each instruction, where it came from, and how to replace it when the underlying practice changes.

Route the task, not the buzzword

Requirement Primary home Why / boundary
Identify maintained source and generated directories AGENTS.md Stable project knowledge relevant across tasks
Explain the repository’s actual build and test entry points AGENTS.md Durable local instructions; keep commands synchronized with the project
Review release notes against a checklist Skill A repeatable procedure activated for a particular job
Explain how to handle a breaking dependency update Skill plus versioned references Procedure and authoritative version-specific guidance
Read the current incident or issue status Existing API/CLI, or MCP resource/tool Live state should come from an authorized source, not a copied paragraph
Let a user select a server-provided workflow template MCP prompt MCP prompts are user-controlled templates
Create an external ticket Authorized tool, possibly through MCP The server executes an operation; the skill can describe when to request it
Prohibit production deletion Executor permissions and policy Markdown instructions are not an access-control boundary

MCP is not compulsory whenever data is live. If your host already has an appropriate API or CLI integration, use it. Choose MCP when its standardized interface and available client/server support solve an integration problem, not simply to wrap every local command.

Minimal AGENTS.md: facts about this repository

The official AGENTS.md format is ordinary Markdown with no required fields. It describes nested files for subprojects and nearest-file precedence. Check your host’s loading and precedence behavior rather than assuming every coding product implements identical discovery.

A small illustrative AGENTS.md could contain:

## Repository boundaries
- Edit maintained source in src/.
- generated/ contains generated output; change its source instead.

## Verification
- Use the scripts declared in package.json for this checkout.
- Report which checks ran and which did not.

## Dependency changes
- Record compatibility changes in the pull request.

Those directory names describe a fictional project; replace them with real boundaries. Include concrete commands when the repository has stable ones. Do not paste a framework’s newest command into every project without checking its installed version.

A rule saying not to edit a directory is still guidance. If modification must be impossible, restrict writes through the actual filesystem or executor policy.

Minimal skill: a procedure with an activation condition

The Agent Skills specification requires a directory containing SKILL.md, with YAML name and description followed by Markdown. The name must match the directory. Scripts, references, and assets are optional.

For an illustrative release-review/SKILL.md:

---
name: release-review
description: Review release notes against the candidate diff. Use when preparing a release or checking a changelog.
metadata:
  owner: release-team
  version: "1.0"
---

## Procedure
1. Establish the candidate revision and previous release.
2. Compare the diff with the proposed release notes.
3. Identify missing user-visible changes and migration instructions.
4. Return findings with file references; do not publish the release.

owner and version are illustrative keys inside the spec’s optional string-valued metadata map, not standardized lifecycle controls. The host determines installation locations, discovery, invocation, and execution support.

The specification describes progressive disclosure: metadata first, full instructions when activated, additional resources as needed. That is not a guarantee that a particular model will select your skill for every relevant request. Give it a precise activation description and evaluate both a matching and a nonmatching task.

Also, allowed-tools is experimental in the open specification. Do not assume it is a portable sandbox or that another host will interpret the same permission syntax.

MCP: an interface, not another instruction file

The MCP server overview separates model-controlled tools, application-controlled resources, and user-controlled prompts. An MCP connection therefore is not merely “a skill that calls an API.” It is a protocol relationship between an application and a server exposing capabilities.

For example, a release-review skill can describe checking unresolved release blockers. A tracker tool supplies current issues under a scoped identity. The repository instructions identify the release-notes location. Keep each fact in its owning interface rather than duplicating the tracker’s live state in both files.

The tools specification defines tool names and input schemas; it does not prescribe a universal client configuration file. Connection paths, authentication, protocol revisions, supported capabilities, and approval UX remain compatibility questions. A client supporting MCP tools does not automatically support every resource, prompt, or authentication workflow.

Maintain a provenance and update contract

For each artifact, record the following in your existing review process or inventory; this is a proposed maintenance worksheet, not a new file standard.

Field Example evidence to retain
Owner Team responsible for correctness and removal
Origin Official documentation URL, upstream repository, or internal policy
Exact revision Repository commit, skill package revision, server deployment version
Applicability Framework version, repository subtree, supported host versions
Review trigger Dependency upgrade, upstream change, policy change, failed evaluation
Last review outcome What changed, evidence inspected, accepted compatibility limits

Then update in this order:

  1. Identify the changed authority. A framework upgrade should point to that version’s primary docs, not an undated social tip.
  2. Edit the owning artifact. A procedure change belongs in its skill; a repository-wide command change belongs in AGENTS.md. Remove contradictory copies.
  3. Review the whole package. Inspect skill scripts and referenced downloads, or server code and credentials as appropriate. A readable description is not a safety endorsement.
  4. Exercise selection and boundaries. Confirm the intended host loads the right instructions and chooses the relevant procedure. Separately confirm permissions reject prohibited actions.
  5. Promote a recorded revision. Keep a rollback target; do not silently follow mutable upstream content in a consequential workflow.

This keeps “latest practices” tied to the project’s actual versions rather than whichever advice appeared most recently. For failures involving missing information rather than artifact placement, use the context diagnostic guide. For writes through live tools, add a per-action approval lifecycle; for choosing the runtime that hosts these pieces, see when to use an agent SDK.

Sources and discussion

Connected by shared topics