About call-codex
A skill that checks whether codex is installed and, if available, submits a task through `codex exec`. It is for delegating tasks to codex from an agent workflow.
Key features
- 01Check for codex installation
- 02Submit tasks with `codex exec`
- 03Pass task descriptions through standard input
Use cases
- 01Delegate a task to codex
- 02Skip codex steps when it is not installed
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ dotneet/ claude-code-marketplace --skill call-codexAfter installing, type/call-codexin Claude Code to confirm it loaded.
Details
From the project READMECall codex to perform a task
Call codex to perform a task.
Checking for the Existence of codex
# Check if codex is installed. Exit code 0 means success, 1 means failure.
# If not installed, skip the subsequent steps of the skill.
which codex
if [ $? -ne 0 ]; then
echo "codex is not installed"
fi
Requesting a Task to codex
This task may take a long time. If the timeout value of the Bash tool can be set, please specify the maximum timeout value.
codex exec --sandbox danger-full-access <<EOT
{task_description}
EOT
Comments
Markdown supported