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
[-]Bridge Ecosystems: Import External Plugin Bundles into Gemini CLI (start with Claude Code)[/-][+]Bridge Ecosystems: Import External Plugin Bundles into Gemini CLI (Start with Claude Code)[/+]gigio1023 commentedon Jan 25, 2026
I skimmed related issues (#17426, #17428, #9070). Those lean toward marketplace/feature‑parity or the hooks system itself. This issue is narrower: cross‑ecosystem import + mapping spec (manifest/commands‑tasks/skills/hooks/MCP), with Claude Code as the first reference target. If there’s interest, I can draft the mapping doc and a small conversion example.
gigio1023 commentedon Jan 26, 2026
Closing as duplicate, which re-creates the request to align with the Feature Request template/type.