Skill

Codex CLI スキル

Codex CLI を使って、別のAIエージェントの視点を得る。

From core
Install
1
Run in your terminal
$
npx claudepluginhub kentanakae/claude-code-plugins --plugin core
Tool Access

This skill uses the workspace's default tool permissions.

Skill Content

Codex CLI スキル

Codex CLI を使って、別のAIエージェントの視点を得る。

前提条件

  • Codex CLI がインストールされている必要がある
  • OpenAI の API キーが設定されている必要がある

手順

Step 1: コマンドの存在確認

codex コマンドが利用可能か確認する。

which codex

コマンドが見つからない場合は、ユーザーにインストールを促して終了する。

Codex CLI がインストールされていません。以下を参考にインストールしてください: https://github.com/openai/codex

Step 2: 引数を確認

$ARGUMENTS を解析して実行モードを決定:

引数パターンモード
reviewコードレビュー(プロンプト不要)
exec <prompt>タスク実行(プロンプト必須)
引数なしユーザーに確認

Step 3: コマンド実行

review モード(コードレビュー)

codex review

現在のリポジトリのコードレビューを実行する。プロンプト不要。

exec モード(タスク実行)

codex exec -s read-only "<prompt>"

読み取り専用モードで安全にタスクを実行する。

書き込みが必要な場合:

codex exec -s workspace-write "<prompt>"

注意: workspace-write サンドボックスでは .agents/.codex/ 等の隠しディレクトリへの書き込みがブロックされる場合がある。これらのディレクトリへの書き込みが必要な場合は --add-dir で追加する:

codex exec -s workspace-write --add-dir .agents --add-dir .codex "<prompt>"

Step 4: 結果を報告

実行結果をユーザーに報告する。

主なオプション

オプション説明
-m, --model <MODEL>使用するモデル
-s, --sandbox <MODE>サンドボックスポリシー(read-only, workspace-write, danger-full-access)
--add-dir <DIR>追加の書き込み許可ディレクトリ(workspace-write時に隠しディレクトリ等へ書き込む場合)
-C, --cd <DIR>作業ディレクトリを指定
--full-auto低フリクションで自動実行

使用例

# レビューを依頼
codex review

# 読み取り専用で分析
codex exec -s read-only "このコードベースの構造を分析して"

# タスクを実行(書き込み付き)
codex exec -s workspace-write "このコードのパフォーマンスを改善して"

# 隠しディレクトリへの書き込みも許可
codex exec -s workspace-write --add-dir .agents --add-dir .codex "ルールファイルを修正して"
Similar Skills
cache-components

Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). **PROACTIVE ACTIVATION**: Use this skill automatically when working in Next.js projects that have `cacheComponents: true` in their next.config.ts/next.config.js. When this config is detected, proactively apply Cache Components patterns and best practices to all React Server Component implementations. **DETECTION**: At the start of a session in a Next.js project, check for `cacheComponents: true` in next.config. If enabled, this skill's patterns should guide all component authoring, data fetching, and caching decisions. **USE CASES**: Implementing 'use cache' directive, configuring cache lifetimes with cacheLife(), tagging cached data with cacheTag(), invalidating caches with updateTag()/revalidateTag(), optimizing static vs dynamic content boundaries, debugging cache issues, and reviewing Cache Component implementations.

138.5k
Stats
Parent Repo Stars0
Parent Repo Forks0
Last CommitMar 3, 2026