Back to skills
SKILL.md
Codex Review 3
ASecurityOpenAI Codex CLIを使用してコードレビューを実行する。Claude CodeからCodexにレビューを依頼したい時に使用。トリガー:「Codexにレビュー」「codexでコードレビュー」「差分をCodexでチェック」「Codexにコードを見てもらう」「レビューをCodexに依頼」
- 2 stars
- 0 votes
- 0 copies
- 0 views
- Added September 27, 2026
Works with
Security analysis
92/100- Installs packages at runtime which could introduce malicious dependencies
Pro scans all 2 files and shows the line behind each finding
npx -y skills add David-Li0406/meta-skill-evloving --skill codex-review-3 --agent claude-codeAre you the author of Codex Review 3?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/david-li0406-codex-review-3)---
name: codex-review
description: OpenAI Codex CLIを使用してコードレビューを実行する。Claude CodeからCodexにレビューを依頼したい時に使用。トリガー:「Codexにレビュー」「codexでコードレビュー」「差分をCodexでチェック」「Codexにコードを見てもらう」「レビューをCodexに依頼」
---
# Codex Review
Claude CodeからOpenAI Codex CLIにコードレビューを委譲するスキル。
## 前提条件
- Codex CLIインストール済み: `npm install -g @openai/codex`
- 認証済み: 初回`codex`実行時に認証
## レビューモード選択
| 状況 | モード | コマンド |
|------|--------|----------|
| コミット前チェック | `staged` | `scripts/review.sh staged` |
| 作業中の全変更確認 | `uncommitted` | `scripts/review.sh uncommitted` |
| 特定ファイル精査 | `file` | `scripts/review.sh file <path>` |
| 複数ファイル一括 | `files` | `scripts/review.sh files <path1> <path2>` |
| PR作成前 | `branch` | `scripts/review.sh branch <base> <target>` |
| コミット検証 | `commit` | `scripts/review.sh commit <hash>` |
| PRレビュー | `pr` | `scripts/review.sh pr <base_branch>` |
## 基本ワークフロー
1. レビュー対象を決定(差分/ファイル/ブランチ)
2. 適切なモードで`scripts/review.sh`を実行
3. Codexのフィードバックを確認
4. 指摘事項を修正
## 使用例
```bash
# ステージング済み差分をレビュー
scripts/review.sh staged
# セキュリティ観点でレビュー
scripts/review.sh staged "Focus on security vulnerabilities"
# 特定ファイルをレビュー
scripts/review.sh file src/api/auth.ts
# feature/authブランチをmainと比較してレビュー
scripts/review.sh branch main feature/auth
# PRレビュー(origin/mainとの差分)
scripts/review.sh pr origin/main "Check for breaking API changes"
```
## 直接コマンド実行
スクリプトを使わず直接実行する場合:
```bash
# 差分をプロンプトに含めて渡す
codex exec "Review this code diff. Report issues with severity, file, line range.
$(git diff --staged)"
# ファイル内容を含めて渡す
codex exec "Review this TypeScript file for issues.
$(cat src/main.ts)"
```
## カスタム指示
全モードで最後の引数にカスタム指示を追加可能:
- `"Focus on security"` - セキュリティ脆弱性
- `"Check TypeScript types"` - 型安全性
- `"Review for performance"` - パフォーマンス
- `"Check accessibility"` - アクセシビリティ
- `"Verify error handling"` - エラーハンドリング
## 出力ファイル
レビュー結果は自動的に `.codex-reviews/` に保存される。
**ファイル名形式**: `{mode}_{context}_{timestamp}.md`
```
.codex-reviews/
├── staged_20231230_143052.md
├── branch_main-feature-auth_20231230_150123.md
├── file_src-api-auth-ts_20231230_151234.md
└── commit_abc1234_20231230_152345.md
```
**出力内容**:
- 日時、モード、コンテキスト
- カスタム指示(指定時)
- Codexのレビュー結果
**推奨**: `.gitignore` に `.codex-reviews/` を追加
Files in this skill
- SKILL.md
- scripts/review.sh
Attribution
Comments
Loading comments…