Guide
Move skills between Claude Code, Codex and OpenCode
Move a SKILL.md between Claude Code, Codex and OpenCode without assuming discovery, automatic invocation or tool permissions transfer with it.
By BringYourSubs5 min read
You can reuse a SKILL.md workflow across Claude Code, Codex and OpenCode, but you must check three things separately: where each client discovers it, how it is invoked, and which actions the host permits. Copying the instruction file does not transfer your subscription, credentials or security settings.
The Agent Skills specification defines a directory containing SKILL.md, with optional scripts, references and assets. That shared package is useful for people switching between subscription-powered agents. It is not a promise that every client interprets every field identically. The details below were checked against current provider documentation on 22 November 2026.
Which parts of an agent skill can you reuse?
Reuse the procedure: inputs to inspect, decisions to make, expected output and evidence needed before completion. Keep tool-specific commands or permissions in separately reviewed host configuration.
The standard requires a name and description in YAML frontmatter. For a portable package, use a short lowercase hyphenated name matching its directory. Include a concrete description of when the skill applies. Supporting files travel with the directory, but the host still needs the programs and services those files require.
CodeMySpec's portability article usefully separates the common instructions from platform-specific features. Check its implementation advice against today's maker docs: OpenCode V2's current documentation explicitly says frontmatter is optional at runtime, the file path determines the skill ID, and name is a display label. The standard's recommended portable shape and a host's permissive loader are different things.
| Host | Documented project discovery | Explicit loading to check | Important distinction |
|---|---|---|---|
| Claude Code | .claude/skills/<name>/SKILL.md |
/skill-name |
Invocation and tool grants have Claude-specific controls |
| Codex | .agents/skills from current directory up to repository root |
$skill-name |
Same-name skills are not merged |
| OpenCode V2 | .opencode/skills, plus .claude/skills and .agents/skills compatibility locations |
Mention @skill-id |
Path-derived ID and later definitions affect what loads |
These are project-scope examples, not every personal, administrator, plugin or cloud location. See the Claude Code, Codex and OpenCode pages before choosing a shared layout.
How do you prove the right file is being discovered?
Start with one small, non-executing procedure rather than a deployment skill. Here is an original package body for a review-only workflow:
---
name: acceptance-note
description: Draft an acceptance note from a supplied task brief and test report. Use when asked to summarize acceptance evidence, not to execute tests or publish changes.
---
Read the supplied brief and test report. Do not run commands.
Return four sections:
1. Requested result
2. Evidence supplied, with its file or URL
3. Unverified requirements
4. Human decision still needed
Do not turn a missing test into a passing result.
Do not change files, contact services or publish anything.
Keep the YAML and instructions together in one SKILL.md. Use an unmistakable temporary sentence in your private test copy, such as “Acceptance note format revision A,” to distinguish it from an older installation. Remove that sentence when the check is finished.
In each client, explicitly load the skill and ask it to identify the file it loaded before using a harmless sample report. Inspect the available skill list and actual response rather than assuming a copy operation succeeded. Then try a matching natural-language request to check automatic discovery separately.
OpenAI documents that same-name skills are not merged. OpenCode documents later source definitions replacing earlier ones for an ID. A duplicate can therefore behave differently across hosts. Prefer one reviewed source per workflow; if you use symlinks, verify the resolved target on every machine rather than assuming the repository checkout preserved them.
This is a suggested acceptance procedure. We have not run the example through authenticated agents or measured whether a model follows it reliably.
Which invocation and permission controls do not travel automatically?
Claude Code's skill documentation describes disable-model-invocation: true for workflows you want to invoke yourself. Codex documents policy.allow_implicit_invocation: false in agents/openai.yaml; explicit invocation still works. OpenCode documents opencode/autoinvoke and separate skill-loading permission rules. Do not copy one host's setting and assume another has enforced it.
Also distinguish loading a skill from authorizing its tools. The standard labels allowed-tools experimental and warns support varies. Claude Code's current explanation says that field grants pre-approval during the invoking turn; it does not restrict all other callable tools. An allowlist-shaped field is not necessarily a deny-by-default policy.
For sensitive work, configure the host's actual restrictions and retain human approval for external effects. The example's instruction not to publish is useful guidance, not a technical security boundary.
What should you inspect before copying scripts and references?
Read every bundled script before allowing execution. Check dependencies, file paths, network calls and assumed accounts. A “review” skill can still contain a helper that uploads a diff or writes a file. Record those effects explicitly before reusing it.
Host-specific substitution is another migration trap. Claude Code documents shell-command injection into skill content. Do not assume that syntax will run, or remain inert, in every other loader. Prefer plain instructions for the shared example and add executable adapters only after reviewing the receiving host's behavior.
For a first transfer, leave scripts out. Supply a small text report with one passing check and one unverified requirement. The expected acceptance note should retain both states. That checks the workflow's output contract without spending inference on a real deployment or making an external change.
Does moving a skill move your plan or your task history?
No. OpenAI's authentication documentation separates ChatGPT sign-in from API-key access. A skill directory is not either credential. Nor does copying it establish which runtime, session history or tool connections the receiving app uses.
If you switch through a workspace such as T3 Code, confirm the selected agent before checking its skill locations. For a different host such as OpenCode, check that host's discovery and funding route independently. Browse the Claude app hub and ChatGPT/Codex hub for app options, not as a guarantee that every wrapper synchronizes skills.
Our context-recovery guide covers carrying task state between sessions. Keep that handoff separate from the reusable procedure: the skill tells an agent how to do a job; the handoff records where this particular job stopped. Confirm both before continuing real work.
Questions people ask
- Can Claude Code and Codex use the same SKILL.md?
- They can share a common instruction package, but use different discovery locations and host-specific controls. Confirm the exact loaded file and permissions in each client instead of assuming an identical filename gives identical behavior.
- Where does Codex find project skills?
- Current OpenAI documentation says Codex scans .agents/skills from the working directory up to the repository root. It also supports other scopes and symlinked skill folders. Check duplicate names because Codex does not merge them.
- Does allowed-tools make a portable skill read-only?
- No. The Agent Skills specification calls allowed-tools experimental and host-dependent. Claude Code documents it as a pre-approval grant, not a restriction on every available tool. Configure actual tool restrictions in the host.
- Does a skill move my Claude or ChatGPT subscription?
- No. A skill is instructions and optional resources. The runtime, account connection and funding configuration decide which service performs inference and pays for it. A skill can describe an API workflow without supplying API access.
Sources
- Agent Skills specification, Agent Skills, 2026-11-22
- Extend Claude with skills, Anthropic, 2026-11-22
- Agent skills, OpenAI, 2026-11-22
- Skills, Anomaly, 2026-11-22
- Cross-Platform Agent Skills: Claude Code, OpenCode, Codex, CodeMySpec, 2026-11-22
- Authentication, OpenAI, 2026-11-22