π Introduction
AI Coding Agents now need their own Documentation. Not READMEs for Humans, but Configuration Files that tells LLMs how to work with your Code
Four (βοΈβοΈ) key files have emerged in this space, each solving a different problem
This blog breaks down what each file does, why it matters, and which one you should use
π What Are These Files?
All Four Files share one Objective : giving AI Agents the Context and Instructions they need to work effectively. But each one approaches this from a different angle ( π )
1. π Instructions.md / CLAUDE.md / .cursorrules
π― What :
A project level Markdown file providing persistent Instructions to an AI Agent
- In Claude Code, this is called CLAUDE.md
- In Cursor this is called .cursorrules
- Other tools use Instructions.md or equivalent names.
β Why :
AI Agents start every session with zero memory
They donβt remember your :
- Code Style
- Build Commands
- Or Project Style
- etc.,
Without a persistent Instruction file, you repeat yourself again and again
CLAUDE.md fixes this by loading your preferences into Context automatically
βοΈ How :
Claude Code reads the CLAUDE.md file from your Project root at launch
The contents become part of the System Prompt, available throughout the session
It follows :
- β‘οΈ project
CLAUDE.md - β‘οΈ global
~/.claude/CLAUDE.md
Subdirectory CLAUDE.md files load on demand when Claude works in those Directories
You can generate a starter file using the /init command
π How Effective :
Very effective, with a critical constraint
The recommendation is Anthropicβs docs suggest targeting under 200 lines, and Community prefer generally ranges from under 200 to under 300 lines
π₯ Impact :
Eliminates repetitive Prompting, enforces consistent Code Style across Sessions, and gives Agents immediate Project Orientation
β οΈ **Key Limitation: ** CLAUDE.md is Claude Code specific. It does not work with Cursor, Codex, or other AI Coding Tools
2. π§© SKILL.md (Agent Skills)
π― What :
A reusable package of Procedural Knowledge, structured as a folder with a SKILL.md file at its center, optionally bundled with Scripts, Templates, and Reference Materials
β Why :
Instruction files tell an Agent your Projectβs general Rules
Skills Teach an Agent how to perform a Specific Task
- If CLAUDE.md is your Employee Handbook
- Skills are the detailed Training Manuals for specialized jobs like Reviewing Code to a specific standard or generating a PowerPoint
βοΈ How :
Skills use a three level Progressive Disclosure system :
- π Level 1 (Discovery) : Agent loads only the Name and Description of each Skill (~100 tokens per Skill)
- π Level 2 (Activation) : When a Task matches a Skillβs Description, the full
SKILL.mdbody loads into context - π Level 3 (Resources) : Referenced Files, Scripts, and Templates load only when needed
Token cost at idle : effectively zero. You can install many Skills without bloating Context
π How Effective :
Effectiveness depends heavily on the Description in the YAML Frontmatter
If a Skill doesnβt trigger, the problem is often(almost) the Description, not the Instructions inside
Agent Skills are an Open Standard supported across Claude Code, GitHub Copilot, VS Code, OpenAI Codex, and others, making them Portable across Platforms!
π₯ Impact :
Skills bridge the gap between βcapableβ and βcompetentβ
They add Domain Specific Knowledge that tells Agents how to use their Tools well
π‘ Key Strength: Write once, use everywhere. Skills work across Multiple Agent products
3. π΅οΈ Agent.md (Sub Agent Definitions)
π― What :
A Configuration File that defines a specialized Sub Agentβs Persona, Capabilities, and Scope
Not a single standardized format(In Claude Code, these live inside .claude/agents/)
β Why :
Complex Projects benefit from specialized AI Personas rather than one General Purpose Agent
- A Code Reviewer Agent focuses entirely on bugs and style violations
- A Security Auditor Agent focuses on vulnerabilities
Agent.md files define these Roles
βοΈ How :
You Create Definition files like .claude/agents/code-reviewer.md
The Sub Agent Operates with isolated context focused on its defined Role, preventing cross contamination from unrelated tasks
You invoke Sub Agents when you need a distinct phase of work like βuse a sub agent to perform a Security Review of that Codeβ
π How Effective :
Highly Dependent on Project complexity
- For simpler Projects, a single Agent with a good CLAUDE.md is sufficient
- For large monorepos with distinct phases (Implementation β‘οΈ Review β‘οΈ Security Audit β‘οΈ Documentation), specialized Agents produce better results through focused, isolated Context
π₯ Impact :
Enables parallel AI workflows
One Agent Implements a feature while another Reviews the Code, each with isolated Context that keeps concerns separated
β οΈ Key Limitation: Tool specific and niche. Not a broadly adopted Standard
4. π AGENTS.md (The Open Standard)
π― What :
An Open Standard Markdown File providing AI Coding Agents with project specific Instructions and Context
Adopted by many repositories on GitHub and supported across multiple Tools
β Why :
Before AGENTS.md, every AI tool had its own proprietary Configuration Format
AGENTS.md emerged from collaboration between OpenAI Codex, Google Jules, Cursor, Amp, and Factory to create a single, Standard
It is now managed by the Agentic AI Foundation under the Linux Foundation
- Think of it as a README for AI Agents π€
- README.md tells Humans how to work with your Project
- AGENTS.md tells Machines.
βοΈ How :
Plain Markdown with no required fields
Place it at your Repository Root
Agents read it before planning any change
You can also place additional AGENTS.md files in sub directories, and the closest file to the Edited Code takes precedence
Typical contents include Build/Test Commands, Architecture Overviews, Security guidelines, Git Workflows, and Coding Conventions
π How Effective :
The key advantage is consistent availability :
- AGENTS.md content is loaded at the start of each Session and remains Available throughout
- Skills load Asynchronously and only when Invoked, Creating Sequencing issues
π₯ Impact :
Rapidly becoming the standard cross Tool Standard
Your investment in AGENTS.md benefits the team regardless of which AI Coding Tool individual Developers choose
π‘ Key Strength: One file works across Codex, Cursor, Copilot, Jules, Zed, and many more
βοΈ Quick Comparison
| Dimension | π Instructions.md | π§© SKILL.md | π΅οΈ Agent.md | π AGENTS.md |
|---|---|---|---|---|
| Scope | Project wide Context | Task specific expertise | Role specific sub-agent | Project wide cross Tool |
| Portability | Specific only | Multi-platform β | Tool-specific | Multi-platform β |
| Loading | Always at session start | On demand (progressive) | On Invocation | Always at Session Start |
| Best For | Build Commands, Code Style | Specialized Workflows | Isolating concerns | Cross Tool Collaboration |
| Adoption | Specific Ecosystem | Growing (Open Standard) | Niche | Widely adopted |
π― When to Use What?
π Use Instructions.md (CLAUDE.md) when you work primarily in Claude Code and want persistent Project Context for every session
π§© Use SKILL.md when you have Repeatable, Specialized Workflows to package once and reuse across Projects
π΅οΈ Use Agent.md when your Project needs specialized Sub Agents with isolated context for distinct phases of work
π Use AGENTS.md when your team uses multiple AI Tools, or you maintain an Open Source Project where contributors use different AI Assistants
π Use them together for the best results. A lean AGENTS.md for cross Tool compatibility + a CLAUDE.md for Claude specific guidance + Skills for specialized on demand tasks
π The Bigger Picture
These files represent a shift from ad-hoc prompting to systematic Context Engineering
The core insight is simple : AI Agents perform dramatically better with structured, persistent Context than with one instruction
The future points toward convergence
AGENTS.md and Agent Skills are both Open Standards gaining broad adoption
As the Ecosystem matures, expect AGENTS.md to handle always on Project Context while Skills handle on demand specialized Expertise
The Developers investing in these files today are building a compounding advantage with every session. β‘
Thanks for Reading!