CLAUDE.md, AGENTS.md, SKILL.md — What's Actually the Difference?

readme, claude, agents, and skill files are all Markdown — the difference is who reads them and what they're for.
The article clarifies a bunch of seemingly complex config files in AI coding projects: readme.md, claude.md, agents.md, skill.md, and the .skills folder are all the same kind of file — Markdown plain text. The difference isn't format but reader and purpose: readme.md is for humans explaining what the project is and how to use it; claude.md and agents.md are project rules for AI — the former for Claude, the latter for Codex, Copilot, Cursor, and other agents, and Claude now also reads agents.md when no claude.md exists; a skill is a step checklist for a single task, loaded on demand so the full contents only expand when the task appears, avoiding missed instructions from cramming everything into one big file. .skills is just a folder holding skills, each containing a skill.md — not a new format, and not Claude-exclusive. The rule of thumb: project-level rules go in claude.md or agents.md; single-task steps become a skill.
AI coding tools are becoming increasingly common, but those oddly named config files in your project — readme.md, claude.md, agents.md, skill.md, and the .skills folder — often leave people scratching their heads. They look like different types of files, but the answer is simple: they're all the same kind of file. The name doesn't change the file's nature — it only determines who reads it and what it's used for.
All These Files Are Markdown
These files use the .md extension, which stands for Markdown — essentially plain text with a few simple symbols. A # is a heading, a - is a list item. It's friendly to humans and even friendlier to AI, since it's extremely cheap to parse. Once you grasp this, everything else falls into place: same format, different roles.
readme.md: The Manual for Humans
readme.md is the earliest and least controversial of the bunch. As explained in the video, it's aimed at human readers, and its core message boils down to one sentence: what this project is and how to use it. It doesn't participate in AI's automatic decision-making, nor does it impose any rules.

claude.md and agents.md: The "House Rules" for AI
Every time an AI tool starts a new session, it begins from scratch — it doesn't remember your preferences or your project conventions unless you write them down. That's exactly why claude.md exists. It's a Markdown file that stores project rules, like "This is the Bright Bakery website. Write in simple English. Don't change prices. Check spelling before finishing." Claude Code automatically reads it every session, so when you ask it to write this week's newsletter, the AI sees not just your instruction but also these rules.

agents.md works exactly the same way — the only difference is the reader: claude.md is for Claude, while agents.md is for any AI agent — Codex, Copilot, Cursor, and others can all read it. According to the video, even without a claude.md, Claude now also reads agents.md. Some tools have their own dedicated files too, such as gemini.md.
Context Window is another key concept for understanding the value of these rule files. It refers to the maximum amount of text an AI model can "see" at once in a single session, usually measured in tokens (one token roughly corresponds to 0.75 words in English). When an AI tool starts a new session, the context window is empty — so the purpose of a rules file is to pre-load a small chunk of long-lived conventions into the window, giving the model a stable foundation for interpreting subsequent instructions. This also explains why rules should be concise: the contents of claude.md and agents.md consume window capacity. If you cram everything in, you squeeze out space for the actual task text and drive up the cost of every request.
AI Agent refers to an AI program capable of autonomously executing multi-step operations and calling tools (reading/writing files, running commands, searching the web) to accomplish goals — distinct from a chatbot that only handles single-turn Q&A. Claude Code, Codex, Copilot, and Cursor all belong to this category. It's precisely because agents actively read project files and act on them that a cross-tool conventions file like agents.md makes sense: the same project rules can be reused by agents from different vendors, without writing a separate one for each tool.
Skills: The Line Between "Rules" and "Steps"
What really causes confusion is Skills. The video uses a fitting analogy: claude.md and agents.md are "house rules," while a skill is a "step-by-step checklist" for completing one specific job.
Take the "monthly report" skill as an example. It says: 1. Open last month's report; 2. Add this month's sales data; 3. Compare the numbers; 4. Write a short summary. It's a repeatable "recipe."

Why Not Cram All the Steps into agents.md
Because rules apply to all tasks, while steps apply to just one. Stuff all your work into one big file, and the file gets long — and the AI starts missing things. The clever part of Skills is on-demand loading: the AI initially reads only each skill's name and brief description, and only opens the full steps when the corresponding task actually comes up. It's like using a cookbook — you don't read every recipe first; you check the table of contents and open only the page you need.
The mechanism behind on-demand loading is usually called Progressive Disclosure: the system first gives the model only each skill's name and one-line description as "metadata," and the model uses that to judge whether the current task matches a skill. Only when it matches does it read the full contents of that file. This aligns with the "less is more" principle in prompt engineering — the more irrelevant information there is, the more diluted the model's attention becomes, and the higher the chance key instructions get missed. On-demand loading essentially splits one big, all-encompassing prompt into several retrievable chunks, which both controls token consumption per request and isolates each skill's maintenance: changing the steps for one job won't affect the rules for other tasks.
The .skills Folder Is Not a New File Type
That folder called .skills is simply where skills are stored — it's not a new file format. Different tools use slightly different names, such as skills or .skills. Inside the folder, each skill has its own directory containing a skill.md. And skills aren't exclusive to Claude — many AI tools can use them.

File Layout of a Real Project
Putting the division of labor together, a well-structured project looks roughly like this: readme.md explains the project to humans; claude.md and agents.md hold the rules AI must follow; the skills folder holds the steps for each job.
One rule of thumb is all you need to remember: if it's a rule for the whole project, put it in claude.md or agents.md; if it's the steps for one specific job, make it a skill. They're all Markdown — what really makes the difference is who reads them and what they're used for.
Related articles

Learn to Make Peppermint Pinwheel Cookies with Dan Pelosi — The Perfect Holiday Treat for Entertaining
Learn to make Peppermint Pinwheel Cookies with Dan Pelosi — a make-ahead holiday slice-and-bake cookie. Full recipe, step-by-step guide, key tips, and FAQ.

How Teams Can Efficiently Share Claude Code: Conventions, Reviews, and Permission Boundaries
How can teams share Claude Code? Drawing on frontline developer demos, this article covers convention files, code review, and permission boundaries, plus tool selection tips for Cursor, TRAE, and Codex.

Claude Code Tutorial: Splitting Project Rules with .claude/rules
Claude Code tutorial: learn to split project rules using the hidden .claude/rules folder—create code-style.md and naming.md, restart the session to verify rules, avoid conflicts, and understand how CLAUDE.md coexists with the rules directory and when to split.