ProfessorGPTProfessorGPT
Platform guide

Gemini CLI Skills: How to Create a Gemini Agent Skill (SKILL.md)

Gemini CLI reads agent skills in the open SKILL.md format — and so does Antigravity, where Google moved its free and consumer users in June 2026. This guide shows how to write one, where each tool looks for it, how activation works, and where Gems fit in.

8 min read Updated Oct 15, 2026 Beginner Needs Gemini CLI or Antigravity
§1First principles

Does Gemini support SKILL.md? Gemini CLI and Antigravity

Yes. Gemini CLI reads agent skills in the open Agent Skills format, so the same SKILL.md you write for Claude or Codex runs in Gemini too. A skill is a folder with a SKILL.md file: a short frontmatter that says what it does and when to use it, then the instructions Gemini follows.

Fig. 1 — A Gemini skill in one picture: folder → SKILL.md → Gemini CLI → new capability. Gemini asks before it loads one.

There's one tooling change to know about. On June 18, 2026, Google moved free-tier and Google AI Pro/Ultra users from Gemini CLI to the Antigravity CLI (agy). Gemini CLI itself carries on for paid Gemini API keys and Gemini Code Assist Standard or Enterprise licenses. Skills carried over to Antigravity unchanged — only the folders differ, as you'll see below.

Which one do I have?

If you run gemini, you're on Gemini CLI. If you run agy, you're on Antigravity CLI. Everything about the SKILL.md file itself is identical in both; this guide flags the few places where paths or commands differ.

§2The clever part

How Gemini decides to use a skill

At the start of a session Gemini CLI puts only the name and description of every enabled skill into its system prompt. When your request matches a description, it calls its activate_skill tool — and asks for your permission first, showing the skill's name, purpose, and folder. Once you approve, the full SKILL.md body and the skill's folder structure join the conversation.

Level 1 · Always loaded

name + description — the “book spine”

~100 tokens / skill
your request matches the description

Level 2 · Loaded when relevant

the full SKILL.md body — your instructions

< 5k tokens
the skill points to more detail

Level 3 · Opened only if needed

extra files: reference.md, templates, scripts…

only when used
Fig. 2 — Progressive disclosure, as defined by the open standard: only the spine is always loaded. Token figures are the standard's guidance.

So the description does two jobs in Gemini: it's how the model finds your skill, and it's what you read in the approval prompt. Make it specific enough that a "yes" is an easy call.

§3Know your tools

Gemini CLI skills vs Gemini Gems vs Antigravity

Google uses the word "skills" in more than one product now, and Gems are on their way out:

What it isWhere it lives
Gemini CLI skillA SKILL.md folder the terminal agent loads on demand~/.gemini/skills/ or a workspace's .agents/skills/
Antigravity skillThe same SKILL.md format, read by the Antigravity CLI, app, and IDE.agents/skills/ in a workspace; a global folder per tool
Gemini app skillReusable instructions in the Gemini app; you can import a SKILL.md on the web or the Mac appYour Google account
GemThe older no-code custom chatbot at gemini.google.comBeing converted into skills, from November 2026 for personal accounts

The short version: if you're writing a SKILL.md, it works in all three skill flavors. A Gem was never a SKILL.md, and Google is migrating Gems into skills automatically.

§4The #1 point of confusion

Where Gemini CLI / Antigravity skills live

Gemini CLI checks four tiers and lets the most specific one win when two skills share a name:

  • Workspace skills — .gemini/skills/ in your project, or the .agents/skills/ alias. Highest precedence.
  • User skills — ~/.gemini/skills/ in your home directory, or the ~/.agents/skills/ alias.
  • Extension skills — bundled with installed extensions.
  • Built-in skills — shipped with Gemini CLI. Lowest precedence.

Within one tier, the .agents/skills/ alias beats .gemini/skills/.

Fig. 3 — Two homes for a Gemini skill. A workspace can hold GEMINI.md and skills side by side — one is always-on context, the other loads on demand.

The Antigravity CLI reads workspace skills from .agents/skills/ only, and global skills from ~/.gemini/antigravity-cli/skills/. The Antigravity app keeps its global skills in ~/.gemini/config/skills/.

Use .agents/skills in your repos

A repo's .agents/skills/ folder is read by Gemini CLI, the Antigravity CLI, and Codex alike. Moving from Gemini CLI to agy? Rename .gemini/skills/ to .agents/skills/ in your repos — Antigravity's migration guide calls this step out — and make sure your personal skills sit in ~/.gemini/antigravity-cli/skills/.

ToolPersonal / globalWorkspace
Gemini CLI~/.gemini/skills/ (or ~/.agents/skills/).gemini/skills/ (or .agents/skills/)
Antigravity CLI (agy)~/.gemini/antigravity-cli/skills/.agents/skills/
Antigravity app~/.gemini/config/skills/.agents/skills/
§5The file itself

A complete Gemini SKILL.md you can copy

The frontmatter needs two fields: a name that matches the folder, and a description — Gemini's docs call it the field that decides when the skill is used. Everything after the closing --- is the instructions:

SKILL.md
---
name: pr-summary
description: Summarizes a pull request into a short, review-ready overview. Use when the user asks to summarize a PR, a diff, or a branch before review.
---

# PR summary

1. Read the diff and the PR description.
2. State the intent in one or two sentences.
3. List the notable changes, grouped by area.
4. Call out anything risky a reviewer should check first.

Common mistakes

  • The file must be named exactly SKILL.md, inside a folder named like the skill: pr-summary/SKILL.md.
  • Keep name lowercase with hyphens, and identical to the folder name.
  • Don't leave a skill in .gemini/skills/ if you use the Antigravity CLI — it reads .agents/skills/.
§6Hands on — 5 steps

How to create a Gemini CLI skill step by step

We'll build pr-summary as a user skill, so it works in every workspace.

1. Create the folder

macOS / Linux
mkdir -p ~/.gemini/skills/pr-summary
Windows (PowerShell)
mkdir -Force ~\.gemini\skills\pr-summary

On the Antigravity CLI, use ~/.gemini/antigravity-cli/skills/pr-summary instead.

2. Write SKILL.md

Save the example above as SKILL.md in that folder. Rather not write it yourself? Gemini CLI has a built-in skill-creator: just ask, "Create a new skill called pr-summary that summarizes pull requests for review," and it scaffolds the folder, the SKILL.md, and the standard resource folders.

3. Reload the list

Run /skills reload so Gemini CLI rescans every tier and picks up the new folder.

4. Trigger it and approve

Ask the way you normally would. When Gemini wants the skill, it asks first — approve it and the instructions load:

Fig. 4 — Gemini CLI asks before activating a skill, showing its name, purpose, and folder. Simplified — the exact prompt varies by version.

5. Check the list

Run /skills list to see every skill Gemini discovered. If pr-summary is there, you've shipped your first Gemini skill. 🎓

§7Office hours

Gemini skill not working? Troubleshooting

SymptomLikely cause and fix
Missing from /skills listWrong folder, or not rescanned. Check the path against the table above, then run /skills reload.
Listed, but never offeredVague description. Rewrite it with the words people actually type, then try a request that contains them.
Was working, now ignoredDisabled. Run /skills enable <name>; /skills disable turns a skill off without deleting it.
A different version of the skill runsName collision. The higher tier wins — a workspace skill overrides a user skill of the same name. Rename one.
Works in Gemini CLI, not in agyOld workspace folder. Antigravity reads .agents/skills/, not .gemini/skills/. Move it.
§8Shortcuts

How to install a ready-made Gemini skill

You don't have to write every skill yourself:

1. From a Git repo or a local folder (Gemini CLI). The skills subcommand installs one directly:

bash
gemini skills install https://github.com/owner/repo.git

Gemini asks you to confirm before it installs; --consent skips that prompt, so use it only for sources you trust. To use a folder you already have, run /skills link <path> inside a session.

2. The skills CLI (community tool). -a gemini-cli installs into .agents/skills/; add -g for ~/.gemini/skills/. Use -a antigravity-cli for the Antigravity CLI:

bash
npx skills add owner/repo --skill <skill-name> -a gemini-cli -g

This is the third-party skills.sh CLI, not a Google command.

3. Manual. Copy any skill folder — the one with SKILL.md — into a skills folder from the table above.

Or grab one from the ProfessorGPT catalog, or start from the curated best Gemini CLI skills.

§9Portability

One SKILL.md, every agent: portability

The same file works in Gemini CLI, Antigravity, Claude Code, and Codex — only the folder changes. For a team that mixes agents, .agents/skills/ in the repo is the closest thing to a shared address: Gemini CLI, Antigravity, and Codex all read it, and you copy the skill into .claude/skills/ for Claude Code.

SKILL.mdone file
  • Claude Code~/.claude/skills/<name>/
  • Codex~/.agents/skills/<name>/
  • Gemini CLI~/.gemini/skills/<name>/

…and other agents that read the open standard, such as GitHub Copilot, Cursor, and VS Code.

Fig. 5 — One SKILL.md, many agents. Personal folders shown; each agent also reads a project folder.
§10No YAML at all

Build a Gemini skill without hand-writing YAML

Use the free Skill Builder to generate a standard SKILL.md that installs into Gemini, Claude, and Codex, or browse ready-made skills and adapt one.

Before you ship a Gemini skill

  • It sits in <folder>/<skill-name>/SKILL.md — and in .agents/skills/ if your team uses agy
  • name is lowercase-with-hyphens and matches the folder
  • description says what and when, clearly enough to approve at a glance
  • /skills reload run, and the skill shows up in /skills list
  • Tested with a natural request — and approved when Gemini asked

Frequently asked questions

Does Gemini support SKILL.md skills?+
Yes. Gemini CLI supports the open Agent Skills SKILL.md format, and so does the Antigravity CLI that replaced Gemini CLI for free and Google AI Pro/Ultra users on June 18, 2026. Skill files carry over between them unchanged; only the folders differ.
Where does Gemini store skills?+
Gemini CLI reads user skills from ~/.gemini/skills/ (or the ~/.agents/skills/ alias) and workspace skills from .gemini/skills/ (or .agents/skills/). The Antigravity CLI reads ~/.gemini/antigravity-cli/skills/ and the workspace's .agents/skills/.
Are Gemini Gems the same as agent skills?+
No. Gems are the older no-code custom chatbots at gemini.google.com, never SKILL.md files. Google is converting Gems into skills — from November 2026 for personal accounts — and the Gemini app can now import a SKILL.md on the web and the Mac app.
Why does Gemini ask before using my skill?+
Gemini CLI activates skills through its activate_skill tool and asks for confirmation first, showing the skill's name, purpose, and folder. Only after you approve does the full SKILL.md load into the conversation.
How do I install a skill from GitHub in Gemini CLI?+
Run gemini skills install <git-url> — it installs from a Git repository or a local folder after a confirmation prompt. To use a folder you already have, run /skills link <path> inside a session.
Can I use the same skill in Claude and Codex?+
Yes — SKILL.md is an open standard. The same file works in Claude Code (~/.claude/skills) and Codex (~/.agents/skills); only the install folder differs. A repo's .agents/skills/ folder is shared by Gemini CLI, Antigravity, and Codex.

Build your skill now

Generate a standard SKILL.md in seconds — no YAML by hand.