How to write one SKILL.md that Codex, Copilot and Antigravity read

Day 2, 25 minutes · beginner

Goal of this lessonWrite a SKILL.md in .agents/skills, check that all three agents load it, and run it by name in each.

Why it matters

A skill only pays off if every agent you use can find it and read it. Codex, GitHub Copilot and Antigravity each look in a few folders of their own, and they treat the header of SKILL.md a little differently. Put the file in the wrong place, or give it a name one tool does not accept, and the skill silently does nothing in that tool.

There is one project folder that all three read: .agents/skills in your repository. If you write the header the strict way the open standard asks for, one file works everywhere.

Today you write Elske's first skill, product-sheet-check, as instructions only, with no script yet. You check that each agent loads it, and you run it by name. At the end the same folder, untouched, gives the same report in every agent you use.

Where each agent looks in a project

Agent Project folders it reads for skills
Codex .agents/skills in the folder where you start it and in every parent folder up to the repository root
GitHub Copilot .github/skills, .claude/skills or .agents/skills in the repository
Antigravity .agents/skills in the project and in each parent folder up to the repository root (it still accepts the older .agent/skills)

So the shared spot is .agents/skills/<skill-name>/SKILL.md. Each skill gets its own folder.

The header: write it for the strictest reader

The agentskills.io specification requires name and description. The tools differ a little:

  • Codex requires both fields.
  • Copilot requires both and asks for a lower case name with hyphens. Its docs say the name typically matches the folder name.
  • Antigravity requires only description. Without a name, it uses the folder name.

The specification is the strictest: name is at most 64 characters, only a-z, 0-9 and single hyphens, no hyphen at the start or end, and it must match the folder name. Follow that and all three accept the file. Keep extra header fields for later; tool-specific fields are the subject of day five.

Elske's first skill

The description below is too short on purpose. Tomorrow you make it trigger on its own. Today you call the skill by name, so the description matters less.

---
name: product-sheet-check
description: Checks a product sheet for Mosswick Candles.
---

# Product sheet check

Check the product sheet the user names. If they name none, use products.csv in the project root. Never change the sheet.

## Rules
1. Line 1 is exactly: sku,name,price_eur,burn_hours
2. Every row has a sku, and no sku appears twice.
3. price_eur has two decimals, for example 18.50.
4. burn_hours is a whole number.

## Report
List each problem as: line number, sku, what is wrong. Count lines as a text editor does, with the header as line 1. End with "Sheet OK" when there are no problems, or "N problems found".

The fixed last line, "Sheet OK" or "N problems found", is useful later: when you see it, you know the skill ran.

The steps

  1. Create the folder .agents/skills/product-sheet-check/ inside mosswick-candles. Mind the dot at the start of .agents; on macOS and Linux it hides the folder from a normal listing.
  2. Create SKILL.md in that folder with the text above, in your own editor. The file name must be exactly SKILL.md, in capitals. Do not ask an agent to write it: Codex, for one, keeps .agents read-only in its default sandbox.
  3. Commit the folder, so the skill travels with the project: git add -A and git commit -m "Add product-sheet-check skill".
  4. Check that each agent loads it, then run it by name with the same request: check products.csv.
  5. Compare the answers. Every agent should find the same three problems: the price on line 3, the empty burn time on line 4 and the duplicate sku on line 5, and end with "3 problems found".

Pick your tool below and follow the steps.

How you call a skill by name

Agent Call it by name
Codex type $ and pick the skill, or open /skills
GitHub Copilot put /product-sheet-check in your prompt
Antigravity mention the skill by name; the CLI also turns every skill into a slash command

Common mistakes

  • A folder name that does not match name. It may still work in one tool and fail validation elsewhere. Keep them identical.
  • skill.md in lower case. Copilot says plainly that the file must be named SKILL.md.
  • One folder too deep. .agents/skills/shop/product-sheet-check/SKILL.md is not found by a plain scan. Antigravity, for example, looks one level deep.
  • Adding the skill while an agent runs. Copilot and the Antigravity CLI need /skills reload or a new session to refresh their skill lists. Codex detects changes, but restart it if the skill does not appear.

Today's actions

Ticks are not saved without an account

Do it in your tool

OpenAI Codex

  1. In your editor, create .agents/skills/product-sheet-check/SKILL.md in the practice folder with this text and save it.
    ---
    name: product-sheet-check
    description: Checks a product sheet for Mosswick Candles.
    ---
    
    # Product sheet check
    
    Check the product sheet the user names. If they name none, use products.csv in the project root. Never change the sheet.
    
    ## Rules
    1. Line 1 is exactly: sku,name,price_eur,burn_hours
    2. Every row has a sku, and no sku appears twice.
    3. price_eur has two decimals, for example 18.50.
    4. burn_hours is a whole number.
    
    ## Report
    List each problem as: line number, sku, what is wrong. Count lines as a text editor does, with the header as line 1. End with "Sheet OK" when there are no problems, or "N problems found".
  2. Start Codex in the practice folder.
    cd mosswick-candles
    codex
  3. Type /skills and check that product-sheet-check is in the list. If it is missing, check the path and file name, then restart Codex.
  4. Call the skill by name: type $ and pick it, or paste this prompt.
    $product-sheet-check Check products.csv.
  5. Read the answer. It should name lines 3, 4 and 5 and end with 3 problems found.
  6. Type /exit to close the session.

Note: Codex reads .agents/skills in the folder where you start it and in every parent folder up to the repository root. Create skill files yourself: in the default sandbox Codex keeps .agents read-only.

Paid planOpenAI lists the Codex CLI for ChatGPT Plus, Pro, Business, Edu and Enterprise. Free and Go list Codex in the desktop app only, subject to rollout. An API key also works.

Checked on 4 December 2026 · Source: Codex docs: Build skills (opens in a new tab)

Create a free account to save your progress. Sign in or sign up