When looking at information related to AI, you sometimes come across files with the extension ".md".
For example,
README.md CLAUDE.md AGENTS.md
files like this.
When I first saw them, I honestly thought the following:
"What is .md?"
"What is Markdown?"
"Are MD files and Markdown files the same?"
"Why do they often appear in AI-related contexts?"
It might be obvious to engineers.
However, for a beginner, it's not clear what it is just by looking at the file name.
But after looking into it, I found it's not that difficult, and in fact, I felt it's a useful concept to know for anyone using AI.
In this article, I will organize my thoughts as a beginner on the ".md" files often seen with AI.
What you will learn in this article

In this article, I will summarize the following:
What is ".md"
What is a Markdown file
Where is Markdown used
Why is Markdown often used with AI
What are CLAUDE.md and AGENTS.md for
The difference from README.md
Rather than providing a detailed technical explanation, the goal is to first help you "roughly understand the meaning."
".md" refers to Markdown files
First, to give you the conclusion, ".md" is the file extension for Markdown files.
An extension is the characters at the end of a filename.
For example,
sample.txt image.png document.pdf
like this, you see .txt, .png, or .pdf at the end of filenames, right?
It's the same for Markdown files, which have .md at the end.
In other words,
README.md CLAUDE.md AGENTS.md
a file like this is a file written in the Markdown format.
"MD file" and "Markdown file" are often used to mean roughly the same thing.
At first, I wondered if they were different things, but it's easy to understand if you think of MD as an abbreviation for Markdown.
What is Markdown?
In a nutshell, Markdown is a simple way of writing to make text easy to read.
By adding just a few symbols to plain text, you can represent headings, bold text, bullet points, code, and more.
For example, if you write text normally, it looks like this.
タイトル これは大事な説明です。 1つ目 2つ目
In Markdown, you can write it like this.
# タイトル これは 大事な説明 です。 - 1つ目 - 2つ目
When this is displayed, it looks clean as headings, bold text, and bullet points.
In short, Markdown is a format that allows you to organize text using only plain text, without needing a complex editing screen like Word.
As a beginner, I thought of Markdown as "a way of writing to turn simple notes into slightly more readable instructions."
Where are Markdown files used?
Markdown files are often used, especially in engineering projects.
Representative examples include files like the following.
README.md
CONTRIBUTING.md
CHANGELOG.md
explanatory files under docs
CLAUDE.md
AGENTS.md
For example, README.md is often used as a project manual.
When you open a project on GitHub, there is an explanatory text that appears first. That is often written in README.md.
CONTRIBUTING.md is a file that contains the rules for participating in development.
CHANGELOG.md is a file that contains the change history.
And recently, what I often see around AI are CLAUDE.md and AGENTS.md.
These have the role of being manuals or work rules for AI.
Why is Markdown often used with AI?
The reason why Markdown is often used with AI is quite simple.
It is because it is easy for both humans and AI to read.
When you ask an AI to do something, if you write it in a long, plain text, the content tends to get messy.
For example, it looks like this.
このプロジェクトではTypeScriptを使っていてテストはpnpm testで実行してコミット前にはlintもして命名規則はcamelCaseでお願いします
It is not unreadable, but it is a bit difficult to understand, isn't it?
If you organize it with Markdown, it becomes like this.
# 開発ルール 使用技術 - TypeScript - React - pnpm コマンド - テスト: pnpm test - Lint: pnpm lint 命名規則 - 変数名は camelCase - コンポーネント名は PascalCase
This is easier for humans to understand as well.
And for AI as well,
This is for used technologies
This is for commands
This is for naming conventions
It becomes easier to judge such groupings.
When giving instructions to AI, it is easier to convey information by organizing it with headings and bullet points rather than just writing long text.
In that sense, I think Markdown is highly compatible with AI.
What is CLAUDE.md?
CLAUDE.md is a file that acts like an instruction manual for Claude.
It is used when using tools like Claude Code to write down how you want work to be done in that project.
For example, you write content like the following.
# このプロジェクトのルール 使用するコマンド - 開発サーバー: pnpm dev - テスト: pnpm test - Lint: pnpm lint 注意点 - 自動生成されたファイルは編集しない - 既存のコードスタイルに合わせる - 大きな変更をするときは影響範囲を確認する
Having this kind of information makes it easier for the AI to understand 'how it should behave in this project' when working.
Conversely, without these rules, the AI might proceed using general methods.
For example, even if it is a project that should actually use pnpm, the AI might use npm install.
Even if it is a file that should not be edited, the AI might rewrite it.
I think files like CLAUDE.md are used to reduce such discrepancies.
What is AGENTS.md?
AGENTS.md is a file that contains work rules for AI agents.
It is more of an instruction manual for AI agents in general, rather than just for Claude.
Roughly speaking, an AI agent is a mechanism where the AI reads files, writes code, and performs tests on its own.
For that AI agent,
What this project does
What technologies are used
What commands are frequently used
Where it is okay to edit
Where it is not okay to edit
What policies should be followed
—this is what AGENTS.md is for.
Here is an image of what it looks like.
# AGENTS.md プロジェクト概要 このリポジトリは、Webアプリの管理画面です。 使用技術 - Next.js - TypeScript - Tailwind CSS よく使うコマンド - 開発: pnpm dev - テスト: pnpm test - 型チェック: pnpm typecheck 編集してよい場所 - src/components/ - src/app/ - src/lib/ 編集しない場所 - src/generated/ - .env 作業方針 - 既存のコードスタイルに合わせる - 勝手に大きなリファクタリングをしない - テストがある場合は更新する
When an AI sees this, it becomes easier for it to determine, 'I should follow these rules for this project.'
For humans, I thought of it like the work manual you are given when you start a new job.
How is it different from README.md?
What I was a little curious about here is, 'Isn't README.md enough?'
If a README is also an instruction manual, it seems like you should just write everything there.
However, a README is basically for humans.
For example, you often write the following content in a README:
Project overview
How to use
Installation instructions
Screen descriptions
Notes for users
On the other hand, AI needs more task-oriented information.
For example,
Do not edit this folder
Run tests with this command
Do not touch auto-generated files
Follow existing naming conventions
Do not simplify security-related processes on your own
and so on.
If you write all this information in a README, it can become a bit heavy as an explanation for humans.
That is why explanations for humans are written in README.md.
Work rules for AI are written in CLAUDE.md or AGENTS.md.
I understood that roles are separated in this way.
Reasons why I felt Markdown is compatible with AI
After looking into it this time, I felt there are three main reasons why Markdown is compatible with AI.
It is lightweight because it is textMarkdown is basically just text.
It is not a complex format like a Word file.
Therefore, it is easy for AI to read, and it is easy to check differences in tools like Git.
I think being able to easily see "what has changed" is quite important in development.
The structure is easy to understandIn Markdown, you can easily write headings and bullet points.
For example,
# is for headings
- is for bullet points
text is for bold text
command is for code or commands
As shown, you can organize text with just a few symbols.
For AI as well, it should be easier to understand if the text is divided by headings rather than just having a long string of text.
Easy to write code and commandsIn Markdown, it is easy to write code and commands as they are.
For example,
## よく使うコマンド - 開発サーバー: pnpm dev - テスト: pnpm test - Lint: pnpm lint
you can organize explanatory text and commands together, like this.
When having AI perform tasks, it is important to convey commands and file names accurately.
In that respect, I thought Markdown was a very easy-to-use format.
The image of ".md" I understood as a beginner
At first, I was in a state of "What is .md?"
But when I organized it, it wasn't that difficult.
To summarize it in my own way, it is like this.
.md is the extension for Markdown files.
Markdown is a way of writing to organize text so it is easy to read.
README.md is a manual for humans.
CLAUDE.md is a set of working rules for Claude.
AGENTS.md is a set of working rules for AI agents.
Thinking of it this way, it became quite clear.
Especially when using AI, it becomes important to convey not just "what you want the AI to do," but also "what rules you want it to follow while working."
Markdown files are used as a place to write down those rules.
It's useful to know Markdown if you use AI
I felt that it is also a useful thing to know for people who use AI.
For example, when giving instructions to an AI, organizing them in a Markdown-like way makes them easier to convey.
Rather than writing like this normally,
ブログ記事を書いてください。初心者向けで、見出しも入れて、注意点も入れて、最後にまとめも入れてください。
writing it like this is more organized.
# 依頼内容 初心者向けのブログ記事を書いてください。 入れてほしい内容 - 基本の説明 - 具体例 - 注意点 - まとめ 文体 - やさしく - 専門用語は少なめ - 初心者にもわかるように
This way, I can also organize my own intentions better.
It also makes it easier for the AI to judge what is being asked of it.
In other words, I think Markdown is a way of thinking that is useful not only for use as a file, but also when writing instructions for AI.
Summary
This time, I organized the ".md" I often see with AI from a beginner's perspective.
.md is the extension attached to Markdown files.
Markdown is a writing method for organizing text to make it easy to read.
You can express headings, bullet points, bold text, code, etc., with simple symbols.
Markdown is often used around AI because it is easy for both humans and AI to read.
CLAUDE.md and AGENTS.md, in particular, are used to communicate project-specific work rules to AI.
If a README is an instruction manual for humans, then CLAUDE.md and AGENTS.md are like work manuals for AI.
At first, it was just a small question: 'What is .md?'
But after looking into it, I realized it is one of the important mechanisms for using AI effectively.
If you are going to use AI to write text, write code, or help with tasks, it seems useful to know a little bit about the concept of Markdown.
To start, I think it's fine not to overthink it; if you see a .md file, just think of it as 'an instruction manual written in Markdown'.