AI for Software Developers · ProLesson 6 of 7 · 10 min
Rules files and skills for coding agents
AGENTS.md, CLAUDE.md and friends: give every coding agent your project's commands and conventions, and package repeatable workflows as skills.
Coding agents start every session knowing nothing about your project. A rules file in the repo tells them what a new teammate would need on day one: how to build and test, the conventions, the architecture, and the things to never do. Agents read it automatically, so you stop repeating yourself and the agent stops guessing.
Which file does which tool read?
- AGENTS.md: an open, shared format read by a long list of agents (for example Codex, Cursor, Copilot's coding agent and others). A good default for anything team-wide.
- CLAUDE.md: read by Claude Code. Claude Code reads AGENTS.md only when there's no CLAUDE.md, so to share one source of truth, put
@AGENTS.mdinside your CLAUDE.md to import it. - .github/copilot-instructions.md: GitHub Copilot's repository instructions, still needed in some editors.
- .cursor/rules/: Cursor's scoped rules, for instructions that apply to certain folders or file types.
- GEMINI.md: Gemini CLI's file (it can also be configured to read AGENTS.md).
Unlock the rest of this lesson with Pro
In this lesson
- Which file does which tool read?
- What to put in it
- Skills for repeatable dev workflows
- Hands-on practice with personal feedback from Arvid
- A quick quiz to check what you learned
Unlock this lesson and every lesson in the Foundations, Advanced and Expert levels and all courses, plus certificates and a monthly allowance of AI practice, for $12/month.
Start free, upgrade anytime
Already have an account? Log in