Repository navigation
Description
What would you like to be added?
A way to import plugin bundles from other ecosystems into Gemini CLI by mapping them into Gemini extensions. This could be a CLI command (e.g., gemini extensions import <source>) or a documented conversion flow. I’d like to start with Claude Code plugins as the first reference target, but keep the design generic so other ecosystems can be added later.
Why is this needed?
Even when ecosystems provide the same building blocks (commands, skills, hooks, MCP), you currently have to re‑author everything because the formats and folder structures differ. That slows migration, duplicates work, and limits reuse of community extensions. A minimal mapping layer would reduce that friction and make Gemini CLI a more attractive target for existing plugin authors.
Additional context
Proposed scope
In scope
- Mapping spec + sample conversion for commands, skills, hooks, MCP
- Clear support matrix and explicit non‑goals
Out of scope (initially)
- Full runtime parity across ecosystems
- Ecosystem‑specific features (e.g., LSP/agent‑only capabilities)
Compatibility sketch
| Component | Gemini extensions | Claude plugins | Notes |
|---|---|---|---|
| Manifest | gemini-extension.json |
.claude-plugin/plugin.json |
Field/structure mapping |
| Commands | TOML custom commands | Markdown + frontmatter | Format conversion + naming |
| Skills | skills/<name>/SKILL.md |
skills/<name>/SKILL.md |
Mostly aligned; frontmatter key mapping |
| Hooks | hooks/hooks.json |
hooks/hooks.json or inline in plugin.json |
Event mapping + location differences |
| MCP | mcpServers in manifest |
.mcp.json or plugin.json |
Move/transform config |
Mapping rules (draft)
- Manifest: map required/optional fields and name/version handling
- Commands: convert TOML → Markdown+frontmatter; map naming/namespace rules
- Skills: preserve layout; map frontmatter keys; define conflict strategy
- Hooks: map event names; document unsupported events clearly; account for inline vs file‑based definitions
- MCP: translate
command/args/env/cwd/url/httpUrlinto target format
Hook event mapping (draft)
| Gemini event | Claude event | Notes |
|---|---|---|
SessionStart |
SessionStart |
Direct mapping |
SessionEnd |
SessionEnd |
Direct mapping |
BeforeTool |
PreToolUse |
Direct mapping |
AfterTool |
PostToolUse |
Success path only |
PreCompress |
PreCompact |
Name difference |
Notification |
Notification |
Direct mapping |
BeforeAgent |
UserPromptSubmit (approx) |
Best‑effort mapping |
AfterAgent |
Stop (approx) |
Best‑effort mapping |
BeforeModel |
— | No direct equivalent |
AfterModel |
— | No direct equivalent |
BeforeToolSelection |
— | No direct equivalent |
| — | SubagentStop |
Gemini has no equivalent |
Note: Gemini docs show event names in PascalCase but config examples use snake_case (e.g.,
before_agent). The mapping spec should call out naming conventions explicitly.
Example conversion (draft)
One small Claude plugin (commands + hooks + MCP) converted into a Gemini extension, with a short note on behavior gaps.
Acceptance criteria (draft)
- Published mapping spec (manifest/commands/skills/hooks/MCP)
- One end‑to‑end example conversion
- Explicit support matrix + non‑goals
References:
- https://geminicli.com/docs/extensions/
- https://geminicli.com/docs/hooks/
- https://docs.claude.com/en/docs/claude-code/plugins
- https://docs.claude.com/en/docs/claude-code/hooks
Activity
gigio1023 commentedon Jan 26, 2026
Supersedes #17475 (created via API; re-created to follow the Feature Request template flow so the issue type is set correctly).
liamhelmer commentedon Feb 10, 2026
OK, I built something for this @gigio1023 . It's currently working for me, although I'm certain there are edge cases that are not well handled. Still rough around the edges, but I can, for instance, use superpowers on gemini cli!
https://github.com/epiphytic/ai-plugin-translator
gemini-cli commentedon May 3, 2026
Hello! As part of our effort to keep our backlog manageable and focus on the most active issues, we are tidying up older reports.
It looks like this issue hasn't been active for a while, so we are closing it for now. However, if you are still experiencing this bug on the latest stable build, please feel free to comment on this issue or create a new one with updated details.
Thank you for your contribution!