Skip to content

Commit d1ca8c0

Browse files
authored
docs: document .agents/skills alias and discovery precedence (#19166)
1 parent 8979fc5 commit d1ca8c0

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

docs/cli/skills.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,22 @@ the full instructions and resources required to complete the task using the
3535

3636
Gemini CLI discovers skills from three primary locations:
3737

38-
1. **Workspace Skills** (`.gemini/skills/`): Workspace-specific skills that are
39-
typically committed to version control and shared with the team.
40-
2. **User Skills** (`~/.gemini/skills/`): Personal skills available across all
41-
your workspaces.
38+
1. **Workspace Skills**: Located in `.gemini/skills/` or the `.agents/skills/`
39+
alias. Workspace skills are typically committed to version control and
40+
shared with the team.
41+
2. **User Skills**: Located in `~/.gemini/skills/` or the `~/.agents/skills/`
42+
alias. These are personal skills available across all your workspaces.
4243
3. **Extension Skills**: Skills bundled within installed
4344
[extensions](../extensions/index.md).
4445

4546
**Precedence:** If multiple skills share the same name, higher-precedence
4647
locations override lower ones: **Workspace > User > Extension**.
4748

49+
Within the same tier (user or workspace), the `.agents/skills/` alias takes
50+
precedence over the `.gemini/skills/` directory. This generic alias provides an
51+
intuitive path for managing agent-specific expertise that remains compatible
52+
across different AI agent tools.
53+
4854
## Managing Skills
4955

5056
### In an Interactive Session
@@ -69,22 +75,23 @@ The `gemini skills` command provides management utilities:
6975
gemini skills list
7076

7177
# Link agent skills from a local directory via symlink
72-
# Discovers skills (SKILL.md or */SKILL.md) and creates symlinks in ~/.gemini/skills (user)
78+
# Discovers skills (SKILL.md or */SKILL.md) and creates symlinks in ~/.gemini/skills
79+
# (or ~/.agents/skills)
7380
gemini skills link /path/to/my-skills-repo
7481

75-
# Link to the workspace scope (.gemini/skills)
82+
# Link to the workspace scope (.gemini/skills or .agents/skills)
7683
gemini skills link /path/to/my-skills-repo --scope workspace
7784

7885
# Install a skill from a Git repository, local directory, or zipped skill file (.skill)
79-
# Uses the user scope by default (~/.gemini/skills)
86+
# Uses the user scope by default (~/.gemini/skills or ~/.agents/skills)
8087
gemini skills install https://github.com/user/repo.git
8188
gemini skills install /path/to/local/skill
8289
gemini skills install /path/to/local/my-expertise.skill
8390

8491
# Install a specific skill from a monorepo or subdirectory using --path
8592
gemini skills install https://github.com/my-org/my-skills.git --path skills/frontend-design
8693

87-
# Install to the workspace scope (.gemini/skills)
94+
# Install to the workspace scope (.gemini/skills or .agents/skills)
8895
gemini skills install /path/to/skill --scope workspace
8996

9097
# Uninstall a skill by name

docs/cli/tutorials/skills-getting-started.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,9 @@ Skills can bundle resources like scripts.
6868
6969
## How to verify discovery
7070
71-
Gemini CLI automatically discovers skills in the `.gemini/skills` directory.
72-
Check that it found your new skill.
71+
Gemini CLI automatically discovers skills in the `.gemini/skills` directory. You
72+
can also use `.agents/skills` as a more generic alternative. Check that it found
73+
your new skill.
7374
7475
**Command:** `/skills list`
7576

0 commit comments

Comments
 (0)