fix(codex): Transform Task agent calls to skill references #120
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
Adds comprehensive content transformation to the Codex converter, bridging syntax differences between Claude Code and Codex.
Problem
Claude Code and Codex have different syntax for invoking commands, agents, and referencing other features:
Task agent-name(args)Use $skill to: args/command-name/prompts:command-name@agent-name$skill-name skillThe converter was transforming structure (commands → prompts, agents → skills) but not content references within those files.
Solution
Added
transformContentForCodex()function that handles all content mappings:/prompts:namespace$skillsyntaxApplied to both skill and prompt files during conversion.
Testing
/prompts:workflows-plannow correctly invokes/prompts:deepen-plan(instead of failing with "no such file or directory: /deepen-plan")Before/After
Task calls:
Slash commands:
Agent references:
🤖 Generated with Claude Code