How to sync agent skills across Claude Code, Codex, Cursor, OpenCode, DeepSeek and Pi
Every coding agent reads skills from its own directory and adds its own twist for invocation policy, subagents and plugins. Here is the exact layout for all six harnesses and how one Library keeps them in sync.
The six-folder layout across coding agents
Most modern coding agents now read the Agent Skills convention — a folder containing SKILL.md with YAML frontmatter for name and description plus optional supporting files. Even when the markdown format matches, every agent puts user skills and project skills in a different place.
| Agent | User skills folder | Project skills folder | Config env |
|---|---|---|---|
| Claude Code | ~/.claude/skills/kitling/ | .claude/skills/<slug>/ | CLAUDE_CONFIG_DIR |
| Codex | ~/.agents/skills/ | .agents/skills/<slug>/ | CODEX_HOME |
| Cursor | ~/.cursor/skills/ | .cursor/skills/<slug>/ | None |
| OpenCode | ~/.config/opencode/skills/ | .opencode/skills/<slug>/ | OPENCODE_CONFIG_DIR |
| DeepSeek | ~/.dsh/skills/ | .dsh/skills/<slug>/ | DSH_HOME |
| Pi | ~/.pi/agent/skills/ | .pi/skills/<slug>/ | PI_CODING_AGENT_DIR |
Several harnesses also read shared directories. Cursor reads ~/.agents, ~/.claude and ~/.codex in addition to ~/.cursor. DeepSeek and Pi read ~/.agents/skills alongside their own config roots. When two tools point at the same folder, naive copy scripts either create duplicate listings or fight over frontmatter keys.
Where symlinks and dotfiles break down
A shell script full of symlinks feels tempting on day one, when you only have three plain Markdown skills. Four practical limits show up as soon as your setup grows:
- Invocation policy differs by harness: Claude Code, Cursor, DeepSeek and Pi read disable-model-invocation: true in SKILL.md frontmatter; OpenCode reads autoinvoke: false; Codex writes policy.allow_implicit_invocation: false in a separate agents/openai.yaml file.
- Subagents and commands are not the same format: Claude Code subagents are Markdown with frontmatter under agents/<slug>.md, while Codex subagents are TOML files under agents/<slug>.toml. DeepSeek and Pi have no subagent surface at all.
- Plugin delivery in Claude Code: Claude Code can load a local plugin directly from ~/.claude/skills/kitling/ with no manual install step, exposing skills as /kitling:<slug> while leaving claude.ai's skills/synced/ folder untouched.
- Trust and third-party scripts: symlinking an untrusted repository's skills folder into every agent can expose executable scripts or tool-permission fields like allowed-tools without review.
How one local Library delivers native files cleanly
Kitling keeps one canonical copy of every skill, subagent, slash command and global instruction in the Library on your Mac. When it delivers to an active harness, it renders native files for that harness's own loader so the model invokes a Kitling skill identically to one you wrote by hand.
Every resource carries an explicit compatibility label per target — exact, mapped, lossy, or unsupported — so you always see what translates cleanly and what does not. For example, a standard SKILL.md delivers exact across all six harnesses, a Codex subagent maps from canonical instructions into TOML, and a subagent targeting Pi is marked unsupported rather than silently dropped.
kitling status
# Shows every active harness, delivered resources, and any copies waiting on reviewPlugins you already installed inside Claude Code or Codex stay installed in their native harness (which keeps their hooks and MCP servers). Kitling brings their skills, agents and commands into your Library and delivers them only to your other harnesses — never installing a duplicate copy beside the original.
Sharing skills across a team with ordinary Git repositories
You do not need a new hosting platform to share skills with teammates. Kitling reads committed project files and team plugin marketplaces in Claude Code (.claude-plugin/), Codex (.agents/plugins/) and Cursor (.cursor-plugin/) formats, and writes a compatible bundle layout — including Pi's package.json — into your local clone when you choose Share → Add to a marketplace. You review the diff, commit and push.