Skill-codex enables Claude Code to delegate prompts to Codex CLI. Operations teams benefit from automated code execution and session management. Integrates with Codex CLI for direct command execution and session handling.
git clone https://github.com/skills-directory/skill-codex.githttps://github.com/skills-directory/skill-codex
[{"step":"Install and configure Codex CLI. Run `codex-cli setup` to authenticate and set up environment variables (e.g., `CODEX_API_KEY`).","tip":"Use `codex-cli --version` to verify installation. Ensure your Codex CLI is linked to the correct workspace."},{"step":"In your prompt, specify the command to execute using skill-codex. Include placeholders for dynamic inputs like `--env=[ENVIRONMENT]` or `--input=[FILE_PATH]`.","tip":"For complex commands, break them into smaller chunks or use a script file (e.g., `./scripts/deploy.sh`)."},{"step":"Execute the command via skill-codex. Monitor the session ID and status for real-time feedback. Redirect output to a log file if needed (e.g., `skill-codex --execute \"[COMMAND]\" > output.log`).","tip":"Use `codex-cli sessions list` to track active sessions and `codex-cli sessions logs --id=[SESSION_ID]` to review past executions."},{"step":"Review the output and errors. If the command fails, use the session logs to debug. For persistent issues, re-run with `--debug` flag.","tip":"Automate error handling by piping the output to a monitoring tool (e.g., Slack notification on failure)."},{"step":"Terminate the session explicitly if needed (e.g., `skill-codex --terminate --id=[SESSION_ID]`).","tip":"Always terminate sessions to free up resources, especially in CI/CD pipelines."}]
Analyze a code repository and suggest improvements for better performance.
Refactor existing code to enhance readability and maintainability.
Automate the process of generating documentation based on code structure.
Identify and fix potential bugs in the codebase using Codex's analysis.
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/skills-directory/skill-codexCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Use skill-codex to execute the following command in Codex CLI: '[COMMAND]'. Ensure the session is properly initialized and terminated. Capture the output and errors for review. If the command requires user input, handle it via [INPUT_METHOD].
``` Command Executed: skill-codex --execute "npm run build -- --env=production" Session ID: ses_7f3a9b2c Status: Completed Duration: 2m 15s Exit Code: 0 Output: > my-app@1.0.0 build > react-scripts build --env=production Compiled successfully in 2m 10s. Warnings: - Deprecated API used in component Footer.jsx Errors: - None Session Terminated: ses_7f3a9b2c ``` **Recommendation**: The build completed successfully, but the deprecated API warning should be addressed in the next sprint. The session logs have been saved to `/logs/build_20231115.log` for audit purposes.
AI assistant built for thoughtful, nuanced conversation
Metagenomic analysis for microbiome research
Cloud ETL platform for non-technical data integration
Get more done every day with Microsoft Teams – powered by AI
Customer feedback management made simple
Enterprise workflow automation and service management platform
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan