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.
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.
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.
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”
Level 2 · Loaded when relevant
the full SKILL.md body — your instructions
Level 3 · Opened only if needed
extra files: reference.md, templates, scripts…
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.
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 is | Where it lives | |
|---|---|---|
| Gemini CLI skill | A SKILL.md folder the terminal agent loads on demand | ~/.gemini/skills/ or a workspace's .agents/skills/ |
| Antigravity skill | The same SKILL.md format, read by the Antigravity CLI, app, and IDE | .agents/skills/ in a workspace; a global folder per tool |
| Gemini app skill | Reusable instructions in the Gemini app; you can import a SKILL.md on the web or the Mac app | Your Google account |
| Gem | The older no-code custom chatbot at gemini.google.com | Being 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.
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/.
User — follows you
✓ works in every workspace
✗ only on your machine
Workspace — follows the repo
✓ shared with the team via git
✗ only inside this repo
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/.
| Tool | Personal / global | Workspace |
|---|---|---|
| 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/ |
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:
---
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
namelowercase 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/.
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
mkdir -p ~/.gemini/skills/pr-summarymkdir -Force ~\.gemini\skills\pr-summaryOn 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:
> summarize this PR for review
Activate skill?
pr-summary
Summarizes a pull request into a review-ready overview.
~/.gemini/skills/pr-summary
● Allow○ Deny
Intent: moves coupon validation to the server.
Changes: api/coupons.ts, checkout/form.tsx
Check first: expired-coupon handling
>
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. 🎓
Gemini skill not working? Troubleshooting
| Symptom | Likely cause and fix |
|---|---|
Missing from /skills list | Wrong folder, or not rescanned. Check the path against the table above, then run /skills reload. |
| Listed, but never offered | Vague description. Rewrite it with the words people actually type, then try a request that contains them. |
| Was working, now ignored | Disabled. Run /skills enable <name>; /skills disable turns a skill off without deleting it. |
| A different version of the skill runs | Name collision. The higher tier wins — a workspace skill overrides a user skill of the same name. Rename one. |
Works in Gemini CLI, not in agy | Old workspace folder. Antigravity reads .agents/skills/, not .gemini/skills/. Move it. |
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:
gemini skills install https://github.com/owner/repo.gitGemini 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:
npx skills add owner/repo --skill <skill-name> -a gemini-cli -gThis 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.
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.
- 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.
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 usesagy nameis lowercase-with-hyphens and matches the folderdescriptionsays what and when, clearly enough to approve at a glance/skills reloadrun, and the skill shows up in/skills list- Tested with a natural request — and approved when Gemini asked