Repository navigation
Support Codex as well as Claude Code - #4
Merged
Merged
Conversation
- Add a Codex plugin manifest (.codex-plugin/plugin.json) pointing at the shared skills/ folder; Codex installs from the existing marketplace file - Add agents/openai.yaml so Codex shows the skill as "Learn" - Make SKILL.md agent-neutral: /learn or $learn, no Claude-only paths, and a fallback when a sandbox cannot open a browser - Keep the Codex manifest version in sync via the bump script and tests - Document Codex install and usage in the README Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Makes the plugin installable and usable from OpenAI Codex, with one shared skill for both agents.
.codex-plugin/plugin.json: Codex plugin manifest ("skills": "./skills/", display metadata). Codex 0.149 reads this path; it ignores a rootplugin.json(tested)..claude-plugin/marketplace.json, so one marketplace serves both agents.skills/learn/agents/openai.yaml: Codex display name and default prompt for the skill. Claude Code ignores it.SKILL.mdmade agent-neutral: mentions/learn(Claude Code) and$learn(Codex), replaces the Claude-only<skill-base-dir>and scratchpad references, and says what to do when a sandbox blocks opening a browser.npm run bumpand the version test now include the Codex manifest. A new test checks the Codex manifest points at the shared skill.codex plugin marketplace add talayash/learn,codex plugin add learn@learn),$learnusage, manual install to~/.agents/skills, and neutral wording.Claude Code behaviour is unchanged.
Testing
npm test: 18 pass.CODEX_HOME(real config untouched):codex plugin marketplace add .thencodex plugin add learn@learninstalls at version 0.1.0.skills/listreturnslearn:learnwith display name "Learn", so the skill and itsopenai.yamlare discovered.codex sandbox -P :workspace -- node render.mjs …writes the lesson page,history.jsonandindex.htmlinside Codex's sandbox.$learnrun with a model, and the GitHub-basedcodex plugin marketplace add talayash/learn(needs this merged first).🤖 Generated with Claude Code