gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

[Feature Request] "Skills" support enabling: tool gating, progressive disclosure, context loading

Open kitaekatt opened this issue 2 months ago • 2 comments

I love gemini and would like to use your CLI more but I currently find it is limited by a lack of hooks and skills. My understanding is hooks are under development, so I'd like to focus on the capabilities that a skill system offers users to disambiguate this term.

Agent Invocation Like a tool, a skill has a description that is context efficient, and it can be invoked to access the skill.

  • This enables the agent to recognize when a skill is relevant and load it
  • This allows delaying adding the skill to context until the skill is leaded, reducing token costs

Progressive-Disclosure

  • When a skill is loaded, it can add minimal context to the agent associated with that skill
  • That context can include additional context module descriptions that can be loaded
  • That context can include additional skill references with contextual information on when they should be loaded

This creates the progressive disclosure pattern, where the LLM is able to from a brief description progressively load additional context when it invokes that skill, or when the user asks it to invoke that skill.

Pre-Tool-Use Validation With a functional hook system, whether or not a skill is loaded can be used to gate access to tools in their entirety or conditionally based on tool parameters. This allows an uninformed tool call to be blocked, with a response that empowers the agent to unblock themselves by invoking the skill.

Notes regarding documentation and hooks I believe it would also be valuable for hook to be able to gate tool access based on whether an artifact has been loaded into a context. A skill is just an example of an artifact. I'm mentioning this for completeness.

Thanks for all your hard work on Gemini-CLI!

kitaekatt avatar Nov 11 '25 18:11 kitaekatt

thank you for your feedback offline about this and filing the issue, we will consider it!

LyalinDotCom avatar Nov 12 '25 02:11 LyalinDotCom

codex supports skills (experimental) since version 0.66.0 https://github.com/openai/codex/blob/main/docs/skills.md, could it be the next thing like AGENTS.md that will be de facto standard

missedone avatar Dec 12 '25 16:12 missedone