Skip to article
← All articles

Multi-agent · Implementation guide

How to Share Instructions and Skills Between Claude Code and Codex

Separate project rules from reusable skills, keep a shared source, and verify host discovery and tool compatibility before relying on a workflow.

Reuse the procedure. Check the host-specific details.
AI-generated editorial cover
On this page

A useful setup lets Claude Code and Codex follow the same review procedure without maintaining two drifting copies. Begin by deciding what belongs in project instructions and what belongs in a reusable skill.

The example is a release review: inspect the diff, run existing checks, and report unresolved risks. No deployment permission is implied. The reusable part is the procedure; host-specific configuration is kept small and explicit.

Keep rules, skills and state separate

LayerPut hereAvoid here
Project instructionsBuild commands, code conventions, scoped constraintsA long activity diary
Reusable skillWhen to use it, procedure, required inputs, expected outputAssumed private credentials or universal tool names
Current project stateLatest decision, current blocker, next actionAn instruction that silently changes for every task

This split makes change review easier. A new test command updates the project rules; a better release procedure updates the skill; an incomplete release stays in the task record.

Choose one shared source and thin host adapters

The AGENTS.md format provides a common project-instruction convention. Check the installed host’s current support and loading behavior rather than copying a workaround from an old tutorial. Where a host needs a separate file, point it to the shared instructions using its documented mechanism.

Illustrative layout: shared project rules and review procedure, with separate discovery and tool configuration for each host.
Illustrative layout: shared project rules and review procedure, with separate discovery and tool configuration for each host.

Keep the shared content in version control when it belongs to the repository. Avoid global symlinks as the first experiment: test in one disposable example project so changes do not unexpectedly affect unrelated repositories.

Write a skill with an explicit input and result

The Agent Skills specification describes a skill directory with SKILL.md and optional supporting resources. Keep the description concrete enough for a host to recognize when to use it. Do not assume optional frontmatter or special tool directives behave the same everywhere.

---
name: release-review
description: Review a proposed release using the current diff, project checks and stated release scope.
---

1. Read the project instructions and the release scope.
2. Inspect the diff and identify affected user flows.
3. Run the existing checks relevant to those flows.
4. Report evidence, failures and unresolved risks.
5. Update the release record. Request no deployment unless authorized.

This is a starting example. Add a small checklist or reference file only when it helps the procedure; keep machine-specific paths in host setup, not in the portable body.

Check compatibility in both actual hosts

  1. Confirm where the installed version discovers project and user skills.
  2. Ask each host to identify the loaded review skill and project instructions.
  3. Run the same harmless review fixture and compare the steps and evidence.
  4. Check missing commands, tool names, file access and permissions. Adapt only the host-specific difference.
  5. Change one shared instruction, start a fresh session and verify that both hosts see it.

A file existing on disk proves neither discovery nor execution. If a host cannot load the skill, reference the procedure as a document until its supported installation path is working.

Keep skill changes linked to project decisions

A shared record service such as SaveSlot can hold the current review decision, checklist version and handoff evidence. Skill installation still belongs to the host’s supported mechanism. Store a source link and revision for the shared procedure so an agent can explain what it actually followed.

For host-specific details, use the Claude Code and Codex setup pages. After a procedure change, repeat the narrow compatibility fixture; do not treat one successful host as proof of the other.

Sources & notes

Check the linked official documentation for current product behavior. Illustrations and downloadable examples use fictional data; they do not demonstrate a live account connection or write.

Revision history

  • : Published
  • : Updated content and references

Prepared by Jasper with AI-assisted drafting and illustrations.

Keep exploring

All articlesLast updated