-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Agent Skills: Implement Core Skill Infrastructure & Tiered Discovery #15698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Summary of ChangesHello @NTaylorMullen, 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 establishes the foundational infrastructure for Agent Skills in the Gemini CLI. It introduces a new Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe 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
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 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
|
4f4ae18 to
d707f3d
Compare
There was a problem hiding this 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 introduces the foundational infrastructure for Agent Skills, including a new "SkillManager" service for discovering and managing skills from "SKILL.md" files, supporting tiered discovery from user and project directories with necessary configuration gates. However, the implementation introduces a critical insecure deserialization vulnerability by using the unsafe "yaml.load()" function on user-controllable "SKILL.md" files, which could allow arbitrary code execution. Additionally, a refactoring of the "SkillManager" is suggested to improve maintainability and correctness by removing redundant logic.
|
Size Change: +112 kB (+0.51%) Total Size: 22.2 MB
ℹ️ View Unchanged
|
abhipatel12
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it! Have a few questions, lmk what you think!
- Refactor SkillManager to handle tiered discovery internally for explicit precedence - Cache full skill content (including body) during discovery to avoid redundant parsing - Hide experimental skill settings from the dialog - Use debugLogger.log instead of .error for discovery issues to keep CLI footer clean - Centralize and unify frontmatter parsing logic Part of #15327
abhipatel12
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
- Simplify skillsCommand structure and subcommand routing - Add autocomplete for skill names in enable/disable subcommands - Gate /skills command on experimental.skills setting - Add snapshot tests for SkillsList component - Refactor subcommand actions into helper functions - Rename getSkillContent to getSkill and use it in skillsCommand Part of #15698
abhipatel12
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
Summary
This PR implements the foundational infrastructure for Agent Skills in
Gemini CLI. It introduces the core discovery engine, the
SkillManagerservice,and the initial configuration gates required to support specialized expertise
based on the Agent Skills open standard.
Details
@google/gemini-cli-corethat handles the discovery, parsing, and lifecyclemanagement of skills.
SKILL.mdfiles in~/.gemini/skills(User) and.gemini/skills(Project).override user-tier skills of the same name.
experimental.skillssetting (defaultfalse) and theskills.disabledarray for granular control. Renamedinternal flag to
skillsSupportfor clarity.SKILL.mdformat using YAMLfrontmatter for skill
nameanddescription.debugLogger.debugfor discovery tracing toensure a clean UI unless explicit debug mode is enabled.
Related Issues
Part of #15327, Fixes #15686
How to Validate
settings.json(accessible via/settingsor by editing~/.gemini/settings.json):{ "experimental": { "skills": true } }.gemini/skills/text-expert/SKILL.md:npm run buildnpm run start -- --debug(oruse the VSCode "CLI (Interactive)" launch task with
DEBUG=true).F12ininteractive mode to open the debug drawer). You should see logs confirming
the
SkillManageractivity:Discovering skills in: /path/to/project/.gemini/skillsFound 1 potential skill files in ...Discovered skill: test-expert at ...Pre-Merge Checklist