Use Your Claude Skills in Gemini CLI, Codex and Cursor

A SKILL.md that makes one skill folder load in Gemini CLI, Codex, Cursor and Claude Code: one shared location, portable frontmatter, tool-neutral steps and a load check in each agent.

Skill prompt for Gemini CLI and Codex

Prompt

Installs to .agents/skills/use-your-claude-skills-in-gemini-cli-codex-and-cursor/

mkdir -p .agents/skills/use-your-claude-skills-in-gemini-cli-codex-and-cursor && curl -sL "https://prompts-gpt.com/prompts/use-your-claude-skills-in-gemini-cli-codex-and-cursor/raw" -o .agents/skills/use-your-claude-skills-in-gemini-cli-codex-and-cursor/SKILL.md
SKILL.md
Preview
---
name: use-your-claude-skills-in-gemini-cli-codex-and-cursor
description: "A SKILL.md that makes one skill folder load in Gemini CLI, Codex, Cursor and Claude Code: one shared location, portable frontmatter, tool-neutral steps and a load check in each agent."
---

# Use Your Claude Skills in Gemini CLI, Codex and Cursor

A SKILL.md that makes one skill folder load in Gemini CLI, Codex, Cursor and Claude Code: one shared location, portable frontmatter, tool-neutral steps and a load check in each agent.

## Prompt

```
---
name: skill-porter
description: Makes an existing agent skill work in Gemini CLI, Codex, Cursor and Claude Code from one shared folder, by fixing its location, frontmatter and tool-specific wording, then checking each agent can load it. Use when someone asks to "use my Claude skill in Gemini CLI", "share skills across agents", "make this SKILL.md portable" or "why doesn't Codex see my skill".
---

# Skill porter

## Steps

1. Read the skill folder in full: SKILL.md, scripts and reference files. Note which agents the user runs.
2. Location. Move the folder to `.agents/skills/SKILL-NAME/` in the project (or `~/.agents/skills/` for personal skills). Gemini CLI, Codex and Cursor read that path. Claude Code reads `.claude/skills/`, so add a relative symlink there pointing at the shared folder. On Windows, or where symlinks are not allowed, copy it and add a check that the two copies match.
3. Avoid duplicates. Cursor also reads `.claude/skills/`, and Gemini CLI reads `.gemini/skills/`; make sure the same name does not end up loaded twice with different content.
4. Frontmatter. Keep `name` and `description` as the shared core. The name is lowercase letters, digits and hyphens and matches the folder. Keep the description under 1024 characters, with the phrases users type. List agent-specific keys (`allowed-tools`, `disable-model-invocation`, `paths`) and say which agents ignore each one.
5. Body. Replace tool names that exist in one agent only (Bash tool, Task tool, activate_skill, slash commands) with plain actions: "run this command", "read this file". Reference scripts by paths relative to the skill folder. Remove plugin-only variables.
6. Scripts. Use POSIX shell or Node, set the executable bit, and avoid tools that are not installed by default without saying so in the steps.
7. Check each agent:
   - Gemini CLI: `gemini skills list`, then a plain request; approve the activation prompt.
   - Codex: `codex exec` with a plain request, and confirm the skill was used.
   - Cursor: type `/` in the agent and find the skill, then try a plain request.
   - Claude Code: a plain request in a new session.

## Output

The before and after folder tree, a frontmatter diff, a list of wording changes, and a table (agent, listed yes or no, triggered yes or no, notes).

## Stop and ask

- The skill depends on a feature only one agent has (hooks, subagents, MCP tools).
- Moving the folder would break a plugin or a shared repository that links to it.
```

## Usage Notes

Save as .agents/skills/skill-porter/SKILL.md so Gemini CLI, Codex and Cursor see it, and symlink it into .claude/skills/ for Claude Code. Ask: "make our release-notes skill work in Gemini CLI too". Paths checked against each tool's docs in Nov 2026.

Example output

Example for: a release-notes skill written for Claude Code, to be used in Gemini CLI and Codex as well.

Before

.claude/skills/release-notes/SKILL.md
.claude/skills/release-notes/scripts/collect.sh

After

.agents/skills/release-notes/SKILL.md
.agents/skills/release-notes/scripts/collect.sh   (chmod +x)
.claude/skills/release-notes -> ../../.agents/skills/release-notes

Frontmatter diff

-name: Release Notes
+name: release-notes
 description: Writes user-facing release notes from merged pull requests between two tags. Use when asked for release notes or what changed in a version.
-allowed-tools: Bash(git log:*), Bash(gh pr list:*)

allowed-tools moved to a note: Claude Code reads it; the other three agents ignore it, so the steps now say which commands the skill runs.

Wording changes

  • "Use the Bash tool to run collect.sh" became "Run scripts/collect.sh from the skill folder".
  • "Spawn a Task agent per package" became "Handle each package in turn".
  • $CLAUDE_PLUGIN_ROOT/scripts/collect.sh became scripts/collect.sh.

Load check

AgentListedTriggeredNotes
Gemini CLIYesYesAsked for consent on first use
CodexYesYesUsed via codex exec
CursorYesYesAppears once; no duplicate from .claude/skills because the symlink points at the same folder
Claude CodeYesYesThrough the symlink
Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • One shared folder plus a symlink means one copy to update instead of four that drift apart.
  • Rewriting tool-specific verbs as plain actions is what makes the same steps work in agents with different tool names.
  • The per-agent load check catches the silent failure where a skill is in the right place but never triggers.

Save as .agents/skills/skill-porter/SKILL.md so Gemini CLI, Codex and Cursor see it, and symlink it into .claude/skills/ for Claude Code. Ask: "make our release-notes skill work in Gemini CLI too". Paths checked against each tool's docs in Nov 2026.

Common edits

  • For personal skills, use ~/.agents/skills/ and ~/.claude/skills/ instead of the project folders.
  • Drop the Claude Code symlink step if your team uses only Gemini CLI, Codex and Cursor.

Reuse it: Use in a workflowAdapt in the builder

Prompt details

By
Prompts-GPT editors
Published
How prompts are written and checked

Did this prompt work?

More in Gemini

Cursor .mdc Rules to Portable AGENTS.md Converter

Converts your pasted Cursor .mdc rules into a single AGENTS.md that Codex, Copilot and Gemini CLI can read, plus a table of what does not carry over.

Major AI Models

Audit AI Prompts for Universal Compatibility and Portability

Identify vendor-specific jargon and rewrite your prompts into universal instructions that work consistently across ChatGPT, Claude, and Gemini.