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

Add Skill to Gemin CLI like Claude Code

Open hx-0001 opened this issue 1 year ago • 7 comments

What would you like to be added?

https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills

Why is this needed?

Ecological compatibility

Additional context

No response

hx-0001 avatar Oct 20 '25 13:10 hx-0001

I'm using this feature to get somewhat similar behavior.

It's meant more as supporting multiple agents in the same folder, however, there are many similarities. And because GEMINI.md (and with this feature/PR, other .md files) can reference other files using @ syntax, you get something very similar to skil

jk-kashe avatar Oct 20 '25 17:10 jk-kashe

This would be really helpful, as it would manage the context better than dumping everything into each project GEMINI.md file. it could be done reasonalbly well by just modifying how the gemini-extensions are loaded into the context, ie using the same hierarchical pattern that claude uses

StoyanD avatar Oct 27 '25 19:10 StoyanD

Agreed! Skills can extend the knowledge boundaries of an LLM while remaining token-efficient. They are particularly valuable for private knowledge, since every organization and company maintains a large variety of internal documents and information.

SunHuawei avatar Oct 29 '25 01:10 SunHuawei

I made a tool and GitHub Action that does something similar, automatically compiling the skills and adding them to AGENTS.md, for use by any agent: https://github.com/dave1010/skills-to-agents

skills-to-agents is effective, even if it's not the optimal solution of having first class support for Skills in Gemini.

More info: https://dave.engineer/blog/2025/11/skills-to-agents/

dave1010 avatar Nov 01 '25 11:11 dave1010

+1

marcfong avatar Nov 04 '25 03:11 marcfong

I'm building a POC to create a universal agent rule system that allows various agents (e.g., Codex, Claude Code) to automatically discover /rules and /skills under the .agents folder.

https://github.com/leochiu-a/universal-agents

The reference layout is inspired by Claude Code’s “skills” and Cursor’s “rules”:

.agents/
  skills/
    code-review/
      SKILL.md
  rules/
    api-guideline.md
    react-components-guideline.md
AGENTS.md

The AGENTS.md file defines the execution protocol, for example:

1. **Always read this file** before starting a task to understand which skills or rules to load from `.agents/`.
2. **Skills**:
   - Load a skill only if its trigger condition matches the task. For example, code-review tasks must load `skills/code-review/SKILL.md`.
   - Once loaded, follow the process and output format defined in the skill file so that the final response remains consistent.
3. **Rules**:
   - Rules are long-lived constraints (API guidelines, React component practices, etc.). Whenever a task touches those domains, read the corresponding file under `.agents/rules/`.
   - Treat these rules as required context: preload them before drafting any response and ensure all recommendations comply with them.
4. **Response contract**:
   - Explicitly state which skills and rules are in effect.
   - Provide findings, recommendations, or code while enforcing all loaded constraints. If any conflicts arise, ask for clarification before diverging.

This way, both Codex and Claude Code can understand and operate using the same skills and rules framework.

leochiu-a avatar Nov 14 '25 08:11 leochiu-a

Nice, putting this under the same .agents/ folder. Any change that this could be standardized along with AGENTS.md? They founded https://aaif.io/ recently, where I think this would fit well

Fannon avatar Dec 13 '25 04:12 Fannon

+1 to this, would be great to have a standard here, similar to https://agents.md/ standard.

0xRaduan avatar Dec 18 '25 10:12 0xRaduan

+1

Skills are now an open standard.

Codex got the feature a few days ago as well.

https://agentskills.io/home

syn-ack-ai avatar Dec 19 '25 15:12 syn-ack-ai

+1000 to having gemini cli support the agent skills standard!

epicwhale avatar Dec 19 '25 23:12 epicwhale

Gemini CLI extensions are similar to skills, but for the sake of uniformity in the field, we need extensions to become skills.

nvictor avatar Dec 20 '25 23:12 nvictor

try papert-code its a qwen-code forked project, its support skills and external api support for typescript soon in python just like a claude code.

azharlabs avatar Dec 21 '25 07:12 azharlabs

+1 ... let's get it done. :)

randybias avatar Dec 21 '25 12:12 randybias

Need it ... Yesterday!

hrstoyanov avatar Dec 21 '25 18:12 hrstoyanov

+1 Agent skills should be an essential capability for Gemini CLI!

tuhailong avatar Dec 23 '25 13:12 tuhailong

+1... Need it! Not sure if this will be the scope of Gemini CLI Extensions. Looking forward to see it!

zesonzhang avatar Dec 24 '25 05:12 zesonzhang

+1

ghj1976 avatar Dec 26 '25 06:12 ghj1976

+1

PlaneInABottle avatar Dec 28 '25 09:12 PlaneInABottle

+1

merip avatar Dec 28 '25 15:12 merip

+1

xuezhaojun avatar Dec 29 '25 03:12 xuezhaojun