codex

Invoke Codex CLI to analyze, refactor, and edit codebases.

1.4k|108|Updated Oct 21, 2025
One-click install
npx skills add https://github.com/skills-directory/skill-codex --skill codex-skills-directory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codex
Source: https://github.com/skills-directory/skill-codex/tree/main/plugins/skill-codex/skills/codex
Command: npx skills add https://github.com/skills-directory/skill-codex --skill codex-skills-directory

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables you to invoke the Codex CLI (codex exec, codex resume) from Claude Code to automate code analysis, refactoring, and editing tasks, reducing manual CLI overhead and context switching.

Core Features & Use Cases

  • Direct Codex integration: choose model (e.g., gpt-5.3-codex or gpt-5.2), set reasoning effort, and select sandbox mode.
  • Session management: resume previously started Codex sessions with a safe resume flow.
  • Controlled execution: automatically append 2>/dev/null to suppress thinking tokens by default, with explicit opt-in to view them.
  • Use Case: analyze a repository for architectural improvements, perform automated code edits, or refactor code in bulk with reproducible commands.

Quick Start

Ask me to analyze your codebase with Codex by selecting a model and reasoning level, then I will run codex exec with the appropriate flags and summarize results.

Frequently Asked Questions about codex

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

FAQPage Schema
How do I automate codebase refactoring with the Codex CLI?

Automated codebase refactoring uses the Codex CLI to invoke codex exec, applying bulk edits and architectural improvements directly to your software project with reproducible commands.

Can I resume a previous Codex session for code analysis?

Yes, you can resume previous Codex sessions using the codex resume command, which provides a safe workflow to continue automated code analysis and editing tasks.

What models and reasoning levels can I specify for automated code analysis?

Automated code analysis allows you to specify models like gpt-5.3-codex or gpt-5.2, set reasoning effort, and select sandbox mode using flags such as -m/--model and --config.

Do I need to install the Codex CLI before using this Skill for code edits?

Yes, the Codex CLI must be installed and configured in your environment before you can use this Skill to invoke codex exec for automated code analysis and editing.

How do I suppress thinking tokens when running Codex commands?

The Skill automatically appends 2>/dev/null to Codex commands to suppress thinking tokens by default, requiring an explicit opt-in if you want to view them.

Can I run Codex in full-auto mode without a git repository?

Yes, you can use the --full-auto flag for controlled execution and the --skip-git-repo-check flag to run Codex outside of a git repository.