codex-skill

Execute and resume OpenAI Codex CLI commands with configurable models and sandboxes.

1|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/tkstang/open-agent-toolkit --skill codex-skill-tkstang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codex-skill
Source: https://github.com/tkstang/open-agent-toolkit/tree/main/.agents/skills/codex-skill
Command: npx skills add https://github.com/tkstang/open-agent-toolkit --skill codex-skill-tkstang

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the execution of OpenAI Codex CLI commands, enabling automated code analysis, refactoring, and editing tasks directly within your workflow.

Core Features & Use Cases

  • Codex Command Execution: Run codex exec and codex resume for various tasks.
  • Configurable Execution: Specify models, reasoning effort, and sandbox modes.
  • Use Case: Automatically refactor a Python function using Codex with high reasoning effort in a read-only sandbox, then resume the session later for further modifications.

Quick Start

Ask the user which model and reasoning effort to use, then run codex exec with the appropriate flags.

Frequently Asked Questions about codex-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run OpenAI Codex CLI commands for automated code refactoring?

Run OpenAI Codex CLI commands for automated code refactoring by executing `codex exec` with specific flags for model selection and reasoning effort. The Skill manages sandbox environments and integrates user prompts to define interactive code analysis and editing tasks directly within your workflow.

Can I resume a previous Codex CLI session to continue code editing tasks?

Yes, you can resume a previous Codex CLI session to continue code editing tasks by using the `codex resume` command. This allows you to pick up interactive task definitions and continue modifying code with your previously selected model and reasoning effort settings.

What sandbox modes are available for Codex code generation and analysis?

The sandbox modes available for Codex code generation and analysis are read-only, workspace-write, and full-access. These sandbox environments manage the level of file modification permitted during automated editing, ensuring safe execution of refactoring tasks according to your access requirements.

How do I configure reasoning effort and model selection in Codex CLI?

Configure reasoning effort and model selection in Codex CLI by specifying the appropriate flags when running `codex exec`. You can set high reasoning effort for complex refactoring tasks or choose different models to balance processing speed and code analysis depth.

Does Codex CLI support automated code analysis in a read-only sandbox?

Yes, Codex CLI supports automated code analysis in a read-only sandbox. You can execute `codex exec` with a read-only sandbox configuration to safely analyze and review code without risking unintended modifications to your workspace files.

What are the limitations when using Codex CLI for automated editing tasks?

Limitations when using Codex CLI for automated editing tasks include dependency on available sandbox environments and reasoning effort configurations. Full-access sandbox modes carry higher risk of unintended file modifications, requiring careful prompt definition for complex code refactoring operations.