Every AI agent session starts with amnesia. The agent does not know your build command, your style rules, or the twelve steps in your deploy checklist — until you explain them, again. AI agent skills and instruction files fix that: they store the know-how in your repository and home directory, where every agent can load it automatically. This article explains the two layers that have emerged as standards — project instruction files such as AGENTS.md, and the portable SKILL.md skill format — and shows you how to write both. This article covers AI Agent Skills Explained in detail.
The Problem AI Agent Skills Solve – AI Agent Skills Explained
Prompts are ephemeral; projects are not. Teams quickly discovered that the difference between a frustrating agent and a productive one is rarely the model — it is whether the agent knows the project’s commands, conventions, and constraints, plus the procedures your team repeats: how releases are cut, how logs are triaged, how a pull request gets reviewed. Instruction files carry the project layer. AI agent skills carry the procedure layer. Together they turn one-off prompting into a reusable system, and — crucially — they are plain Markdown files that work across tools.
Think of the split this way: AGENTS.md says “here is how this project works”. A skill says “here is how this task is done, on any project”. The first changes when the project changes; the second travels with you from job to job.
Layer 1: Project Instruction Files — AGENTS.md and Friends – AI Agent Skills Explained
AGENTS.md is an open format — documented at agents.md — that lives in your repository root and is read by a growing list of coding agents. It is deliberately just Markdown: an overview, the build and test commands, code style, and the constraints the agent must never violate. Many tools generate a starter version for you (Codex’s /init is one example), and nested files in subdirectories let large monorepos give folder-specific instructions.
Some tools use their own filename for the same idea: GEMINI.md for Gemini CLI, .github/copilot-instructions.md for GitHub Copilot, rules files for Cursor, .clinerules for Cline. The pragmatic pattern most teams adopt is to keep the canonical content in AGENTS.md and let tool-specific files reference or mirror it. Keep it short and factual — an instruction file is a briefing, not a wiki — and update it whenever the agent makes a mistake a line of text would have prevented.
# AGENTS.md
## Build and test
- API: cd api && make test (needs Postgres running)
- Web: cd web && npm test
## Constraints
- Never edit committed migration files
- All endpoints require authentication

Layer 2: SKILL.md — Portable, Reusable Agent Skills
Agent Skills began as an Anthropic format in late 2025 and were released as an open standard, specified at agentskills.io, in December 2025. A skill is a folder whose only required file is SKILL.md: YAML frontmatter with a name and a description, followed by Markdown instructions, with optional scripts/, references/, and assets/ folders for supporting material.
---
name: log-triage
description: Triage Linux server logs for errors. Use when asked to
investigate log files, journalctl output, or "why did this fail".
---
# Log Triage
1. Collect the failing window: journalctl --since "-2h" -p warning
2. Group errors by unit and message; ignore known noise (list below)
3. Report: top 3 root causes, evidence lines, suggested fix
The clever part is progressive disclosure. At startup the agent only sees each skill’s name and description — a few dozen tokens — so you can install dozens of skills at almost no context cost. When a task matches a description, the agent loads the full instructions, and only the relevant ones. The format has spread quickly: it is supported by dozens of tools, including Claude Code, OpenAI Codex, Cursor, GitHub Copilot in VS Code, Gemini CLI, Cline, Goose, and OpenCode, so a skill you write once is genuinely portable. Personal skills live in per-tool folders such as ~/.claude/skills/ or ~/.agents/skills/; project skills live in the repo (for example .claude/skills/, .agents/skills/, or .github/skills/) and are shared with everyone who clones it.
Skills vs MCP: Know-How vs Access
Skills are often confused with MCP, the Model Context Protocol, but they solve different problems. MCP connects an agent to systems — a database, a ticketing API, a monitoring stack — as our guide to setting up an MCP server explains. A skill connects an agent to a procedure: it can even tell the agent which MCP tools to call, in which order, with which safety checks. Serious setups use both: MCP for reach, skills for judgment. And if your skills still read like vague advice, our prompt engineering guide for sysadmins will sharpen the writing itself.
Writing Good Skills — and Staying Safe
Write the description first and make it trigger-shaped: what the skill does and when to use it, because that sentence alone decides whether the skill loads. Keep the body a checklist an expert would follow, push deterministic work into bundled scripts instead of prose, and keep each skill about one concern. Then treat third-party skills with the same suspicion as third-party code — because that is what they are. A skill can bundle scripts that run with your credentials; read before you install, prefer skills you can audit, and version your own in git like everything else on this site.
Conclusion
AI agent skills, SKILL.md files, and project instruction files are how agent know-how becomes infrastructure: written once, versioned, and loaded automatically by whichever tool you pick up next. Start with one AGENTS.md in your busiest repository and one skill for your most repeated procedure. The open specification and the list of supporting tools live at agentskills.io.