Skill Parity
Keep skills aligned across Claude Code, Codex, Gemini CLI, and the shared Agent Skills layout. Treat Claude as canon only when the user has made that explicit or recent audit context shows Claude is the cleaned source of truth.
Canonical source: the agent-skills repo (symlink-based, Claude side)
The single source of truth for hand-authored skills is the public repo jerseycheese/agent-skills (cloned at ~/Projects/shared/agent-skills). It's also registered as a Claude Code plugin marketplace (jerseycheese-skills -> plugin workflow-skills), but that plugin is deliberately disabled on this machine — plugin skills always need a /plugin-name:skill-name prefix to invoke (no bare-name resolution, even when unambiguous), and that prefix drifted unpredictably (a shifting git-SHA namespace, since the plugin has no pinned version). Bare /skill-name invocation only works for standalone skills, so:
- Edit a skill once in the repo.
git push (keeps the public marketplace listing current for other users/machines).
- On this machine, Claude Code loads it via a real symlink at
~/.claude/skills/<name> -> ~/Projects/shared/agent-skills/skills/<name> — edits are live immediately, no copy or plugin-update step needed. This is canon now, not a fallback; do not remove these symlinks or re-enable the workflow-skills plugin (it would double-register the same skill names).
- Codex and Gemini hydrate
~/.agents/skills/ from the same repo via the copy/symlink paths below (or the find-skills installer).
New skills added to the repo need a matching symlink created in ~/.claude/skills/ (ln -s ../../Projects/shared/agent-skills/skills/<name> ~/.claude/skills/<name>) — this doesn't happen automatically. The manual copy/prune/hash steps below still apply when working outside the repo or syncing a one-off.
Research-first rule
Before adding, editing, pruning, or syncing Codex/Gemini skills, verify current official guidance. Do this even if this skill contains advice that seems current.
Primary docs to check:
- Codex Agent Skills:
https://developers.openai.com/codex/skills
- OpenAI skill-creator guidance:
https://github.com/openai/skills/blob/main/skills/.system/skill-creator/SKILL.md
- Gemini CLI Agent Skills:
https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/skills.md
- Gemini creating skills:
https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/creating-skills.md
- Gemini skill best practices:
https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/skills-best-practices.md
If the docs conflict with this skill, follow the docs and update this skill as part of the same work. If network access is unavailable, say so and avoid changing provider-specific best-practice claims.
Source and scope
- Identify the source skill name and scope: user, workspace, admin, system, or extension/plugin.
- Identify whether the source is canonical, provider-specific, or stale.
- If the user recently audited one provider, treat that provider as canon for pruning and hydration unless they say otherwise.
- Do not silently merge divergent skills with the same name. Confirm intentional provider-specific behavior before preserving divergence.
Provider paths
Shared Agent Skills layout
Prefer these paths for skills intended to work in both Codex and Gemini CLI:
- User:
$HOME/.agents/skills/<skill-name>/SKILL.md
- Workspace:
$REPO_ROOT/.agents/skills/<skill-name>/SKILL.md
Use .agents/skills as the shared mirror for Codex/Gemini whenever practical. Do not prune unrelated .agents/skills entries unless the user explicitly asks; other tools may own them.
Claude Code
- User:
~/.claude/skills/<skill-name>/SKILL.md
- Workspace:
.claude/skills/<skill-name>/SKILL.md
Codex
Current docs center the shared Agent Skills layout:
- User:
$HOME/.agents/skills/<skill-name>/SKILL.md
- Workspace:
.agents/skills/<skill-name>/SKILL.md
- Admin:
/etc/codex/skills/<skill-name>/SKILL.md only if requested
Do not mirror to ~/.codex/skills/ — Codex loads both that path and ~/.agents/skills/ simultaneously, which produces duplicates in the loaded prompt. The one exception is ~/.codex/skills/.system/, which holds Codex's bundled defaults — never touch it.
Gemini CLI
- User:
~/.agents/skills/<skill-name>/SKILL.md (preferred), or ~/.gemini/skills/<skill-name>/SKILL.md only if it already exists
- Workspace:
.agents/skills/<skill-name>/SKILL.md (preferred), or .gemini/skills/<skill-name>/SKILL.md only if it already exists
Gemini uses .agents/skills as an interoperable alias. Within the same tier, .agents/skills takes precedence over .gemini/skills. Default new skills to .agents/skills; only touch .gemini/skills when an existing install already lives there.
File and metadata rules
- Entry file is exactly
SKILL.md; wrong casing can break discovery.
- YAML frontmatter includes
name and description.
name is a stable, hyphenated identifier and should match the directory name.
description is the trigger surface. Front-load likely user words, define when to use the skill, and add boundaries so it does not overlap unrelated skills.
- Keep
description concise enough to survive truncation in skill lists.
- Keep
SKILL.md focused on the core procedure. Move detailed reference material, schemas, and long examples into references/.
- Use
scripts/ for deterministic or fragile repeated operations. Script output should be concise and LLM-readable.
- Use
assets/ for templates and non-executable resources.
- Avoid hardcoded secrets in instructions, scripts, examples, and assets.
Platform-specific enhancements
Codex
- Add or update
agents/openai.yaml when the skill benefits from Codex UI metadata, invocation policy, or tool dependencies.
- On updates, validate
agents/openai.yaml still matches SKILL.md.
- Include
display_name, short_description, or default_prompt when they can be derived from the skill.
- Include optional fields such as icons and brand color only when explicitly provided or already established.
- Use
policy.allow_implicit_invocation: false only for explicit-only skills.
- Declare required MCP tools under
dependencies.tools when a skill needs them.
Gemini CLI
- Prefer
.agents/skills for new skills. Only write to .gemini/skills if an existing install already uses it.
- Validate with
/skills reload or gemini skills list when available.
- If Gemini's creation or validation scripts are available in the local CLI checkout, use them for new skills.
- Remember that Gemini asks for consent before activating a skill and grants access to the whole skill directory after approval.
Sync workflow
- Research current official Codex/Gemini guidance first.
- Normalize the source skill: exact
SKILL.md, valid frontmatter, focused trigger description, and clean resource folders.
- Copy the full skill directory, including
scripts/, references/, assets/, and provider metadata.
- Write shared Codex/Gemini copies to
.agents/skills — this is the canonical mirror for both providers.
- Do not mirror to
.codex/skills (causes duplicate skill loads in Codex). Only touch .gemini/skills if an existing install already uses it.
- Prune stale provider mirrors only when the source canon and ownership are clear.
- Preserve intentional provider-specific deviations only after confirming the reason.
- Verify inventory and content parity with hashes across every target scope.
- Tell the user which scopes changed and whether a restart or
/skills reload is needed.
Verification checklist
1---2name: skill-parity3description: Keeps skills in sync across Claude Code, Codex, Gemini CLI, and shared .agents/skills paths. Handles copying, updating, pruning, and verifying parity across all provider locations. Trigger on: "sync my skills", "hydrate codex with skills", "copy skill to gemini", "add this skill to codex", "update skills across providers", "skill parity check", "push skills to all providers", "are my skills in sync", "propagate skill changes".4---56# Skill Parity78Keep skills aligned across Claude Code, Codex, Gemini CLI, and the shared Agent Skills layout. Treat Claude as canon only when the user has made that explicit or recent audit context shows Claude is the cleaned source of truth.910## Canonical source: the agent-skills repo (symlink-based, Claude side)1112The single source of truth for hand-authored skills is the public repo `jerseycheese/agent-skills` (cloned at `~/Projects/shared/agent-skills`). It's also registered as a Claude Code plugin marketplace (`jerseycheese-skills` -> plugin `workflow-skills`), but that plugin is deliberately **disabled** on this machine — plugin skills always need a `/plugin-name:skill-name` prefix to invoke (no bare-name resolution, even when unambiguous), and that prefix drifted unpredictably (a shifting git-SHA namespace, since the plugin has no pinned `version`). Bare `/skill-name` invocation only works for standalone skills, so:13141. Edit a skill once in the repo.152. `git push` (keeps the public marketplace listing current for other users/machines).163. On this machine, Claude Code loads it via a real symlink at `~/.claude/skills/<name>` -> `~/Projects/shared/agent-skills/skills/<name>` — edits are live immediately, no copy or plugin-update step needed. This is canon now, not a fallback; do not remove these symlinks or re-enable the `workflow-skills` plugin (it would double-register the same skill names).174. Codex and Gemini hydrate `~/.agents/skills/` from the same repo via the copy/symlink paths below (or the `find-skills` installer).1819New skills added to the repo need a matching symlink created in `~/.claude/skills/` (`ln -s ../../Projects/shared/agent-skills/skills/<name> ~/.claude/skills/<name>`) — this doesn't happen automatically. The manual copy/prune/hash steps below still apply when working outside the repo or syncing a one-off.2021## Research-first rule2223Before adding, editing, pruning, or syncing Codex/Gemini skills, verify current official guidance. Do this even if this skill contains advice that seems current.2425Primary docs to check:26- Codex Agent Skills: `https://developers.openai.com/codex/skills`27- OpenAI skill-creator guidance: `https://github.com/openai/skills/blob/main/skills/.system/skill-creator/SKILL.md`28- Gemini CLI Agent Skills: `https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/skills.md`29- Gemini creating skills: `https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/creating-skills.md`30- Gemini skill best practices: `https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/skills-best-practices.md`3132If the docs conflict with this skill, follow the docs and update this skill as part of the same work. If network access is unavailable, say so and avoid changing provider-specific best-practice claims.3334## Source and scope35361. Identify the source skill name and scope: user, workspace, admin, system, or extension/plugin.372. Identify whether the source is canonical, provider-specific, or stale.383. If the user recently audited one provider, treat that provider as canon for pruning and hydration unless they say otherwise.394. Do not silently merge divergent skills with the same name. Confirm intentional provider-specific behavior before preserving divergence.4041## Provider paths4243### Shared Agent Skills layout4445Prefer these paths for skills intended to work in both Codex and Gemini CLI:46- User: `$HOME/.agents/skills/<skill-name>/SKILL.md`47- Workspace: `$REPO_ROOT/.agents/skills/<skill-name>/SKILL.md`4849Use `.agents/skills` as the shared mirror for Codex/Gemini whenever practical. Do not prune unrelated `.agents/skills` entries unless the user explicitly asks; other tools may own them.5051### Claude Code5253- User: `~/.claude/skills/<skill-name>/SKILL.md`54- Workspace: `.claude/skills/<skill-name>/SKILL.md`5556### Codex5758Current docs center the shared Agent Skills layout:59- User: `$HOME/.agents/skills/<skill-name>/SKILL.md`60- Workspace: `.agents/skills/<skill-name>/SKILL.md`61- Admin: `/etc/codex/skills/<skill-name>/SKILL.md` only if requested6263Do not mirror to `~/.codex/skills/` — Codex loads both that path and `~/.agents/skills/` simultaneously, which produces duplicates in the loaded prompt. The one exception is `~/.codex/skills/.system/`, which holds Codex's bundled defaults — never touch it.6465### Gemini CLI6667- User: `~/.agents/skills/<skill-name>/SKILL.md` (preferred), or `~/.gemini/skills/<skill-name>/SKILL.md` only if it already exists68- Workspace: `.agents/skills/<skill-name>/SKILL.md` (preferred), or `.gemini/skills/<skill-name>/SKILL.md` only if it already exists6970Gemini uses `.agents/skills` as an interoperable alias. Within the same tier, `.agents/skills` takes precedence over `.gemini/skills`. Default new skills to `.agents/skills`; only touch `.gemini/skills` when an existing install already lives there.7172## File and metadata rules7374- Entry file is exactly `SKILL.md`; wrong casing can break discovery.75- YAML frontmatter includes `name` and `description`.76- `name` is a stable, hyphenated identifier and should match the directory name.77- `description` is the trigger surface. Front-load likely user words, define when to use the skill, and add boundaries so it does not overlap unrelated skills.78- Keep `description` concise enough to survive truncation in skill lists.79- Keep `SKILL.md` focused on the core procedure. Move detailed reference material, schemas, and long examples into `references/`.80- Use `scripts/` for deterministic or fragile repeated operations. Script output should be concise and LLM-readable.81- Use `assets/` for templates and non-executable resources.82- Avoid hardcoded secrets in instructions, scripts, examples, and assets.8384## Platform-specific enhancements8586### Codex8788- Add or update `agents/openai.yaml` when the skill benefits from Codex UI metadata, invocation policy, or tool dependencies.89- On updates, validate `agents/openai.yaml` still matches `SKILL.md`.90- Include `display_name`, `short_description`, or `default_prompt` when they can be derived from the skill.91- Include optional fields such as icons and brand color only when explicitly provided or already established.92- Use `policy.allow_implicit_invocation: false` only for explicit-only skills.93- Declare required MCP tools under `dependencies.tools` when a skill needs them.9495### Gemini CLI9697- Prefer `.agents/skills` for new skills. Only write to `.gemini/skills` if an existing install already uses it.98- Validate with `/skills reload` or `gemini skills list` when available.99- If Gemini's creation or validation scripts are available in the local CLI checkout, use them for new skills.100- Remember that Gemini asks for consent before activating a skill and grants access to the whole skill directory after approval.101102## Sync workflow1031041. Research current official Codex/Gemini guidance first.1052. Normalize the source skill: exact `SKILL.md`, valid frontmatter, focused trigger description, and clean resource folders.1063. Copy the full skill directory, including `scripts/`, `references/`, `assets/`, and provider metadata.1074. Write shared Codex/Gemini copies to `.agents/skills` — this is the canonical mirror for both providers.1085. Do not mirror to `.codex/skills` (causes duplicate skill loads in Codex). Only touch `.gemini/skills` if an existing install already uses it.1096. Prune stale provider mirrors only when the source canon and ownership are clear.1107. Preserve intentional provider-specific deviations only after confirming the reason.1118. Verify inventory and content parity with hashes across every target scope.1129. Tell the user which scopes changed and whether a restart or `/skills reload` is needed.113114## Verification checklist115116- [ ] Official Codex/Gemini docs checked, or unavailable status reported.117- [ ] Exact `SKILL.md` casing everywhere.118- [ ] `name` and directory name align.119- [ ] `description` has clear triggers and boundaries.120- [ ] Long reference content is moved out of `SKILL.md`.121- [ ] Scripts are deterministic, scoped, and do not expose secrets.122- [ ] Shared `.agents/skills` copy exists when interoperability is intended.123- [ ] No copies written to `~/.codex/skills/` (Codex's `.system/` dir is left untouched).124- [ ] Hash parity verified for all intended mirrors.