Agent Skills: The SKILL.md Format, and Where Claude, ChatGPT, Gemini and Codex Keep Them
An agent skill is a folder with a file called SKILL.md inside: a name, a one-paragraph description of when to use it, and instructions. The AI reads only the name and description up front, and loads the rest when a task matches. Claude, ChatGPT, Gemini, Codex, GitHub Copilot and Cursor all read the same format, so a skill written once can be installed in each of them, within a few limits that differ by app.
Anthropic built the format, published it as an open standard in December 2025, and in October 2026 handed it to the Linux Foundation's Agentic AI Foundation, saying more than 70 agent platforms had adopted it by then.
What's inside a SKILL.md
The file is YAML front matter followed by plain Markdown. The specification at agentskills.io requires two fields:
name: 1 to 64 characters, lowercase letters, digits and hyphens, no hyphen at either end and no double hyphen. It must match the folder's name.description: up to 1,024 characters, saying both what the skill does and when to use it. This is the only part the AI sees before deciding to load the skill, so it carries the trigger words.
Four optional fields exist: license, compatibility (up to 500 characters, for things like "needs Python 3"), metadata (any key-value pairs) and an experimental allowed-tools. The body below the front matter has no required format.
A skill can also carry three optional folders: scripts/ for code it runs, references/ for longer documents and assets/ for templates or images. A complete one looks like this:
weekly-status-report/
├── SKILL.md
├── references/
│ └── team-glossary.md
└── assets/
└── report-template.md---
name: weekly-status-report
description: Use when the user pastes task updates, commit notes or meeting notes and asks for a weekly status report, a progress update or a summary for their manager.
---
# Weekly status report
1. Group the input into: done this week, in progress, blocked, next week.
2. Fill assets/report-template.md with those groups. Keep each line under 20 words.
3. Write team terms as defined in references/team-glossary.md.
4. If an item has no owner, write "owner: ?". Don't guess.
5. End with one line naming the biggest risk, or "No new risks."Why skills don't fill up the context window
The spec calls the loading pattern progressive disclosure, and it has three steps. At startup the AI loads only each skill's name and description, about 100 tokens per skill. When a request matches, it reads the full body, which the spec recommends keeping under 5,000 tokens and 500 lines. Files in the subfolders load only if the instructions point to them, and in Claude a script's code never enters the context at all, only its output does.
That's what makes fifty installed skills affordable: you pay roughly a paragraph each until one is used.
Skill, prompt, project, MCP server or subagent?
| Thing | What it does | When it loads | Use it for |
|---|---|---|---|
| Prompt | Conversation-level instructions for one-off tasks | When you paste it | A job you do once |
| Custom instructions | Apply broadly to all your conversations | Every chat | Your role, language, preferred format |
| Project | Static background knowledge for chats inside it | Every chat in that project | One client, course or codebase |
| Skill | A procedure, with files and scripts if needed | Only when a task matches | A job you repeat across subjects |
| MCP server | Connects the AI to external services | Its tools are listed each session | Reading your calendar, a database, an API |
| Subagent | An isolated worker with its own context window | When the main agent hands off a task | Long side jobs that would clutter the chat |
Anthropic's Claude Code docs sum it up in one line: skills handle on-demand knowledge and workflows, MCP handles external connections, subagents handle isolation. They combine: a skill can tell the AI how to use an MCP server's tools well. Inside Claude, the difference between a skill and a project is worked through in what Claude skills are.
Where each app keeps skills
Chat apps on the web, desktop and phone take an upload; coding tools read folders on disk. As of November 2026:
| App | Where skills go | How it's called | Who gets it |
|---|---|---|---|
| Claude (web, desktop, mobile) | Upload a ZIP of the folder under Customize > Skills, with code execution turned on | Automatically | All plans, Free included, per the help center |
| Claude Code | ~/.claude/skills/ for you, .claude/skills/ for one repo | Automatically, or /skill-name | Any Claude Code user |
| Claude API | Uploaded through /v1/skills, attached in container.skills; up to 20 per request | By the request | API accounts |
| ChatGPT | Plugins > Skills: create with chat, with the editor, or upload | Automatically, or @ | Business, Enterprise, Healthcare and Edu |
| Codex (CLI, IDE, app) | .agents/skills from the working folder up to the repo root, or ~/.agents/skills | $skill-name or /skills | Codex users |
| Gemini app | Customize > Skills: upload a SKILL.md, folder or .zip (web and Mac) | / (moving to @), or automatically | Personal accounts, 18+ |
| Gemini CLI | .gemini/skills or .agents/skills, and the same under ~/ | Automatically, after you consent | Gemini CLI users |
| VS Code with Copilot | .github/skills, .claude/skills or .agents/skills | Automatically, or / | Copilot users |
| Cursor | .agents/skills or .cursor/skills, and it also reads Claude's and Codex's folders | Automatically, or / in Agent chat | Cursor users |
Anthropic's developer docs list custom skills on claude.ai for paid plans only, while its help center includes Free, so a free account may not see the upload button. And ChatGPT's help page names only the business and education plans; if you're on Plus and don't see a Skills tab, that's why. In Gemini, skills are replacing Gems on personal accounts; what that means for an existing Gem is in saving and rebuilding your Gems.
One skill that installs everywhere
No single folder is read by every coding tool. .agents/skills covers Codex, Gemini CLI, VS Code and Cursor, but Claude Code's docs list only .claude/skills; and .claude/skills isn't on Codex's or Gemini CLI's list. A repo that should work for everyone keeps the skill in both folders.
The file itself travels if you stay inside the shared rules:
- Use only the six spec fields. Claude Code adds extras such as
disable-model-invocationandcontext: fork, and an upload to claude.ai or the API fails with a hard error on a field it doesn't know. - Keep the description under 200 characters. The spec allows 1,024, but Claude's help center caps it at 200.
- Leave "claude" and "anthropic" out of the name. The Claude API rejects both as reserved words.
- Don't make scripts depend on the internet. The Claude API runs skills with no network access, and the Gemini app blocks scripts that call out. Gemini also refuses some script types, TypeScript and Ruby among them, so Python is the safe choice.
- Test it in each app. GitHub's own guide to shipping one skill to several agents warns that clients can differ in their available models, tools, credentials, and permissions.
Uploaded skills don't sync between apps either. Anthropic says custom skills do not sync even between claude.ai, the API and Claude Code, so each copy gets updated by hand.
When a skill is the wrong tool
Google's skill-writing advice says not every task requires a skill, and lists the cases: a one-off job, something the AI already does well without help, and a process that keeps changing.
A good first candidate is a job you've explained to the AI three times, with the same corrections each time.
Draft a skill from a job you already do
Paste this into Claude, ChatGPT or Gemini, then describe the job in your own words underneath. It produces a SKILL.md that stays inside the portable rules above.
I want you to act as an author of agent skills in the open SKILL.md format.
I'll describe a task I repeat. Write one complete SKILL.md for it:
- Front matter with only "name" and "description".
- name: lowercase words joined by hyphens, starting with a verb, no "claude" or "anthropic".
- description: under 200 characters, starting with "Use when", listing the phrases I'd actually type to ask for this task.
- Body: numbered steps, an example of a good result, a "Common mistakes" list, and a rule for what to do when information is missing (ask, never invent).
- Keep the body under 60 lines.
Before writing, ask me up to three questions if the task is unclear.
My task: [describe the job, the input you start from, and what a finished result looks like]For skills other people already wrote and tested, browse our catalog of 60+ Claude skills and check each against the five rules above before installing it elsewhere. Building one by hand, with scripts and test prompts, is covered step by step in how to create a Claude skill; Anthropic's skill-creator interviews you and writes the file. For coding, Addy Osmani's agent-skills pack bundles 25 engineering skills, and our pick of Claude skills to install first covers the rest.
Sources
- Agent Skills, Specification, accessed November 2026
- Anthropic, Agent Skills overview, Claude Code skills and Creating custom skills, accessed November 2026
- Anthropic, Donating Agent Skills to the Agentic AI Foundation, October 2026
- OpenAI, Skills in ChatGPT and Build skills (Codex), accessed November 2026
- Google, Create & manage skills and Gemini CLI skills, accessed November 2026
- Microsoft, Use Agent Skills in VS Code; Cursor, Agent Skills, accessed November 2026