docs/cli/skills.md
Agent Skills let you extend Gemini CLI with specialized expertise, procedural workflows, and task-specific resources. Based on the Agent Skills open standard, a "skill" is a self-contained directory that packages instructions and assets into a discoverable capability.
Unlike general context files (GEMINI.md), which provide persistent workspace-wide background, Skills represent on-demand expertise. This lets Gemini CLI maintain a vast library of specialized capabilities—such as security auditing, cloud deployments, or codebase migrations—without cluttering the model's immediate context window.
The lifecycle of an Agent Skill involves discovery, activation, and conditional resource access.
activate_skill tool.SKILL.md body and folder structure is added to the conversation
history.Gemini CLI discovers skills from several locations, following a specific order of precedence (lowest to highest):
~/.gemini/skills/ or the ~/.agents/skills/
alias..gemini/skills/ or the .agents/skills/
alias. Workspace skills are shared with your team via version control.If multiple skills share the same name, the version from the higher-precedence
location is used. Within the same tier (user or workspace), the
.agents/skills/ alias takes precedence over the .gemini/skills/ directory.
The .agents/skills/ alias provides an interoperable path for managing
agent-specific expertise that remains compatible across different AI tools.
Agent Skills provide several advantages for managing specialized knowledge and complex workflows.
[!NOTE]
/skills disableand/skills enabledefault to theuserscope. Use--scope workspaceto manage workspace-specific settings.
To see all available skills in your current session, use the /skills list
command.
You can manage Agent Skills through interactive session commands or directly from your terminal.
Use the /skills slash command to view and manage available expertise:
/skills list [all] [nodesc]: Shows discovered skills. Use all to include
built-in skills and nodesc to hide descriptions./skills link <path> [--scope user|workspace]: Links skills from a local
directory./skills disable <name>: Prevents a specific skill from being used./skills enable <name>: Re-enables a disabled skill./skills reload (or /skills refresh): Refreshes the list of discovered
skills from all tiers.The gemini skills command provides management utilities:
# List all discovered skills. Use --all to include built-in skills.
gemini skills list --all
# Install a skill from a Git repository or local directory.
# Use --consent to skip the security confirmation prompt.
gemini skills install https://github.com/user/repo.git --consent
# Uninstall a skill.
gemini skills uninstall my-skill --scope workspace
The skill management commands support several global and command-specific options.
--scope: Either user (global, default) or workspace (local to the
project).--path: The sub-directory within a Git repository containing the skill.--consent: Acknowledge security risks and skip the interactive confirmation
during installation.For more details on CLI commands, see the CLI reference.
Explore these resources to refine your skills and understand the framework better.