Share One Set of Skills and Rules Across Claude Code and Codex

Claude Code loads personal skills from ~/.claude/skills, while Codex reads them from ~/.agents/skills, so a single skill directory can be symlinked into both locations. Rules are harder to share because Claude Code reads individual Markdown files whereas Codex reads AGENTS.md. Hooks also need separate handling, since the two agents do not support identical events. The author built agent-shared to link skill directories, write shared rules into each agent's files, and register hooks in each agent's configuration. The article notes that a hook declaration does not guarantee enforcement, and that tests were run only on the filesystem and CLI behavior, not on fresh-session loading or runtime hook execution.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in