Skip to content

Installation

Gemini CLI

User skills can live in ~/.gemini/skills or ~/.agents/skills. Workspace skills can live in .gemini/skills or .agents/skills. Gemini CLI lists skill names and descriptions at session start and loads the body only when it activates the skill. GEMINI.md is concatenated into every prompt; do not paste a long procedure there.

Project path .gemini/skills/<name>/SKILL.md

Last verified 2026-11-15

Install on Gemini CLI — macOS

Last verified 2026-11-15 against the Gemini CLI skills document in the google-gemini/gemini-cli repository: https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/skills.md

GEMINI.md is not a skill. The CLI concatenates GEMINI.md files into the prompt. Put durable project facts there, and put procedures in a skill.

Prerequisites

  • Gemini CLI installed and able to start a session.
  • A SKILL.md file with a description that says when the skill should activate.

User skill

Either of these locations is part of the documented user tier:

  • ~/.gemini/skills/<skill-name>/SKILL.md
  • ~/.agents/skills/<skill-name>/SKILL.md

Create it:

mkdir -p ~/.gemini/skills/<skill-name>

Workspace skill

Share it with the repo in either:

  • .gemini/skills/<skill-name>/SKILL.md
  • .agents/skills/<skill-name>/SKILL.md

If two skills share a name, the higher-precedence location wins. Keep one copy.

Reload and verify

  1. Quit the session and start Gemini CLI again from the project directory.
  2. Ask for a task that matches the description. The CLI is documented to discover skills at session start and activate a skill when the task fits, rather than stuffing every body into the prompt.
  3. Confirm SKILL.md is directly inside the named folder.

Troubleshooting

  • The procedure was placed in GEMINI.md and now rides along on every request. Move it to a skill.
  • The session was started in a different directory than the workspace skill.
  • The description is too vague, so the skill is never activated. State the task and the files it applies to.
  • You copied a Copilot .instructions.md file into this folder. Gemini CLI wants the Agent Skills layout: a directory with SKILL.md.

Official reference: https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/skills.md Context files, which are separate: https://geminicli.com/docs/cli/gemini-md

Official reference: github.com/google-gemini/gemini-cli/blob/main/docs/cli/skills.md