Skip to content

docs: document .agents/skills alias and discovery precedence#19166

Merged
NTaylorMullen merged 1 commit intogoogle-gemini:mainfrom
kevmoo:skills_funz
Feb 16, 2026
Merged

docs: document .agents/skills alias and discovery precedence#19166
NTaylorMullen merged 1 commit intogoogle-gemini:mainfrom
kevmoo:skills_funz

Conversation

@kevmoo
Copy link
Contributor

@kevmoo kevmoo commented Feb 15, 2026

Summary

Document the .agents/skills directory alias and its precedence logic in the agent skills documentation.

Details

This PR updates the agent skills documentation to include information about the .agents/skills directory alias, which was introduced to provide a more generic and intuitive path for managing agent-specific expertise. It also clarifies that .agents/skills takes precedence over .gemini/skills within the same tier (user or workspace).

Changes:

  • Updated docs/cli/skills.md with tier-specific alias information and precedence rules.
  • Updated docs/cli/tutorials/skills-getting-started.md to mention the alias as an alternative.
  • Refined shell command examples to include both .gemini/skills and .agents/skills paths.

Related Issues

Closes #19167

How to Validate

  1. Review the modified documentation files:
    • docs/cli/skills.md
    • docs/cli/tutorials/skills-getting-started.md
  2. Verify that the precedence and alias logic matches the implementation in packages/core/src/skills/skillManager.ts.

Pre-Merge Checklist

  • Updated relevant documentation and README (if needed)
  • Added/updated tests (if needed) - N/A (Docs only)
  • Noted breaking changes (if any)
  • Validated on required platforms/methods:
    • MacOS
      • npm run

Update documentation to reflect the support for the .agents/skills directory alias in both user and workspace tiers.

- Add precedence details (.agents/skills > .gemini/skills).

- Update shell command examples to include both paths.

- Add notes to the 'Getting Started' guide.
@kevmoo kevmoo requested review from a team as code owners February 15, 2026 16:40
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @kevmoo, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request updates the documentation for the Gemini CLI to accurately reflect recent changes in how skills are discovered. It clarifies the introduction of the .agents/skills directory as an alias for skill storage, detailing its usage in both user and workspace contexts, and explicitly defines its precedence over the .gemini/skills directory. The changes ensure that users have up-to-date information on managing and discovering skills, improving clarity and usability.

Highlights

  • Documentation Update for .agents/skills Alias: The documentation now reflects support for the .agents/skills directory alias in both user and workspace skill discovery tiers.
  • Precedence Rules Clarified: New details have been added explaining that within the same tier (user or workspace), the .agents/skills alias takes precedence over the .gemini/skills directory.
  • Updated Examples and Guides: Shell command examples have been updated to include both skill paths, and notes have been added to the 'Getting Started' guide to reflect these changes.
Changelog
  • docs/cli/skills.md
    • Updated skill discovery locations to include the .agents/skills alias for both workspace and user skills.
    • Added a new paragraph explaining the precedence of .agents/skills over .gemini/skills within the same tier.
    • Modified shell command examples for gemini skills link and gemini skills install to mention both .gemini/skills and .agents/skills paths.
  • docs/cli/tutorials/skills-getting-started.md
    • Updated the 'How to verify discovery' section to inform users about the .agents/skills directory as a generic alternative for skill discovery.
Activity
  • No human activity has been recorded on this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the documentation to include the new .agents/skills directory alias for skill discovery, including details on its precedence. The changes are generally clear and align with the feature. The comment regarding ambiguity in docs/cli/skills.md for install and link commands has been retained as it provides valuable feedback for improving documentation precision and user experience, and does not conflict with any provided rules.

Comment on lines +78 to 95
# Discovers skills (SKILL.md or */SKILL.md) and creates symlinks in ~/.gemini/skills
# (or ~/.agents/skills)
gemini skills link /path/to/my-skills-repo

# Link to the workspace scope (.gemini/skills)
# Link to the workspace scope (.gemini/skills or .agents/skills)
gemini skills link /path/to/my-skills-repo --scope workspace

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

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

# Install to the workspace scope (.gemini/skills)
# Install to the workspace scope (.gemini/skills or .agents/skills)
gemini skills install /path/to/skill --scope workspace
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The comments for the link and install commands are ambiguous. Using (or .agents/skills) doesn't clarify which directory is used or when. This could lead to user confusion about where their skills are being installed or linked.

Please specify the exact behavior. For example:

  • Does one path take precedence? (e.g., ...in ~/.agents/skills, falling back to ~/.gemini/skills)
  • Does the command use whichever directory already exists?
  • Is the new .agents/skills path now the default for all new installations/links?

Clarifying this logic will make the documentation much more helpful.

@gemini-cli gemini-cli bot added status/need-issue Pull requests that need to have an associated issue. area/agent Issues related to Core Agent, Tools, Memory, Sub-Agents, Hooks, Agent Quality and removed status/need-issue Pull requests that need to have an associated issue. labels Feb 15, 2026
@NTaylorMullen NTaylorMullen added this pull request to the merge queue Feb 16, 2026
Merged via the queue into google-gemini:main with commit d1ca8c0 Feb 16, 2026
27 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/agent Issues related to Core Agent, Tools, Memory, Sub-Agents, Hooks, Agent Quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Docs] Document .agents/skills directory alias for cross-tool alignment

2 participants