Skip to content
5 min read

Share One ~/.agents/skills Folder Across Claude Code, Codex, and Antigravity

Each AI coding agent looks in a different default folder for global skills. Learn how the folders map together and how to unify them without breaking app-managed files.

Claude CodeCodexAntigravityMulti-Agent

If you use more than one AI coding agent on the same machine, your skills quickly scatter across separate directories. You install a package into one agent, edit a SKILL.md in another, and end up with agents following different versions of the same instructions.

Understanding the exact global and project paths each agent reads makes it straightforward to consolidate into one library.

Where each agent looks for skills

The open-source skills CLI (npx skills) established ~/.agents/skills as the shared store for global skills. Some agents read it directly; others look only in their own directory:

Agent Global skill folder(s) Project folder Reads ~/.agents/skills natively? App-managed entries to preserve
Codex ~/.agents/skills, ~/.codex/skills (or $CODEX_HOME/skills) .agents/skills Yes .system/ inside ~/.codex/skills
Claude Code ~/.claude/skills (or $CLAUDE_CONFIG_DIR/skills) .claude/skills No synced/ (from Claude desktop app)
Antigravity ~/.gemini/config/skills .agents/skills No None
Universal / other (Amp, Cline, Pi, Warp, Zed) ~/.agents/skills, $XDG_CONFIG_HOME/agents/skills .agents/skills Yes None

Other agents such as Cursor (~/.cursor/skills), Gemini CLI (~/.gemini/skills), GitHub Copilot (~/.copilot/skills), OpenCode (~/.config/opencode/skills), and Windsurf (~/.codeium/windsurf/skills) also keep separate global directories.

Why naive symlinking goes wrong

Many developers try to unify folders with a quick ln -s ~/.agents/skills ~/.claude/skills. That works on a brand-new machine, but three common edge cases break it:

  1. Overwriting app-managed folders: If you use the Claude desktop app, ~/.claude/skills/synced/ holds skills synced from claude.ai and gets rewritten by the app. Replacing the entire ~/.claude/skills folder with a symlink discards or conflicts with synced/.
  2. Name clashes: If both ~/.claude/skills/react and ~/.agents/skills/react already exist as real directories, you need to compare them and pick one before consolidating—moving blindly overwrites one copy.
  3. Half-switched states: Even after folders are linked, setting disable-model-invocation: true in SKILL.md puts a skill on call in Claude Code while leaving it automatic in Codex (which checks agents/openai.yaml) and Antigravity (which has no on-call switch).

Two clean layouts for one shared library

When an agent folder holds no app-managed entries—such as ~/.gemini/config/skills for Antigravity, or ~/.claude/skills without synced/—point the folder itself to ~/.agents/skills:

  1. Move any unique skills from the agent’s folder into ~/.agents/skills (after resolving name clashes).
  2. Move the empty agent folder aside (or to Trash).
  3. Symlink the agent’s folder path to ~/.agents/skills.

Every new skill installed into ~/.agents/skills appears automatically in all linked agents.

When ~/.claude/skills/synced/ exists—or when you want to expose only a subset of skills to a specific agent—keep ~/.claude/skills as a real directory and create per-skill symlinks (~/.claude/skills/<skill> → ~/.agents/skills/<skill>) for each shared skill.

Auditing and linking safely with Skillroom

You can inspect what each installed agent currently reads without changing anything using the Skillroom CLI:

skillroom agents

This lists every detected agent, whether each path is a real folder, a symlink (with target), or missing, and how many deduplicated skill roots exist.

To unify agents safely, preview the link plan first:

# Preview every move, quarantine, and symlink without touching disk
skillroom link-agents

Skillroom checks for name clashes first and stops with a clear warning if both folders contain a skill of the same name. If an agent folder has app-managed entries like Claude’s synced/, Skillroom leaves that folder intact and links each shared skill individually instead of replacing the directory.

When the plan looks right, apply it—and remember that every step is recorded in the journal:

skillroom link-agents --yes

# Reverse the entire operation if you ever want the previous layout back
skillroom undo

Detecting drift after linking

Sharing one folder solves missing skills, but agents can still disagree on state. Run:

skillroom list --state mixed

or open Needs attention in Skillroom to see any skill that is Manual in one agent and Automatic in another, and align them in one step.

Once your agents share one library, the next problem is keeping your edits safe during updates—read how to keep local SKILL.md edits when npx skills updates.

More guides