codex

Run reproducible Codex CLI sessions for code analysis, refactoring, or automated editing.

Updated Aug 17, 2023
One-click install
npx skills add https://github.com/kuroRy/dotfiles --skill codex-kurory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codex
Source: https://github.com/kuroRy/dotfiles/tree/main/config/claude/skills/codex
Command: npx skills add https://github.com/kuroRy/dotfiles --skill codex-kurory

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Codex automation for running Codex CLI tasks (codex exec, codex resume) to analyze, refactor, or edit code without manual, repetitive commands.

Core Features & Use Cases

  • Controlled sessions: select model and reasoning effort, set sandbox mode, and resume past sessions with a single command.
  • Safe, reproducible runs: enforce --skip-git-repo-check and redirect error output to reduce token leakage during debug.
  • Use cases: code analysis, automated refactoring, and iterative editing workflows across development tasks.

Quick Start

Specify the Codex model and reasoning effort, then run codex exec with the appropriate flags and resume options.

Frequently Asked Questions about codex

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

FAQPage Schema
How do I automate code analysis and refactoring with the Codex CLI?

Automate code analysis and refactoring by coordinating Codex CLI sessions. You can run codex exec with selected models, reasoning efforts, and sandbox modes to perform iterative code edits without manual repetitive commands.

Can I resume a previous Codex CLI session for iterative code editing?

Yes, you can resume past Codex CLI sessions using codex resume. This capability allows you to continue iterative code editing and refactoring workflows exactly where you left off in a controlled session.

How do I suppress thinking tokens and reduce noise when running Codex commands?

Suppress thinking tokens and reduce debug noise by redirecting standard error output to /dev/null. Enforce this 2>/dev/null redirection alongside --skip-git-repo-check to ensure safe and reproducible runs.

What is the best way to enforce sandbox mode during automated code refactoring?

Enforce sandbox mode during automated code refactoring by applying the --sandbox flag in your Codex CLI command construction. This ensures safe, controlled, and reproducible execution of code edits.

How do I control model reasoning effort for Codex automation tasks?

Control model reasoning effort for Codex automation tasks by specifying the --config model_reasoning_effort flag. This allows you to adjust the computational depth applied to code analysis and refactoring sessions.

Does Codex automation work without a git repository for code analysis?

Yes, Codex automation works outside git repositories by enforcing the --skip-git-repo-check flag. This bypasses the repository validation requirement, allowing you to run code analysis on standalone project directories.