Back to skills
extension
Category: Development & EngineeringNo API key required

codex-review-file

Review files outside of Git management with the codex CLI. Used when you want to 'review this file with codex' or 'review configuration files'.

personAuthor: jakexiaohubgithub

Codex CLIによるファイルレビュー(Git管理外)

codex execコマンドを使って、Git管理外のファイルをレビューします。

使用方法

特定ファイルをレビュー

codex exec -C <directory> --skip-git-repo-check "<file>をレビューしてください"

カスタム指示付きレビュー

codex exec -C <directory> --skip-git-repo-check "<file>をセキュリティの観点からレビューしてください"

引数

$ARGUMENTS

  • <file-path>: レビュー対象のファイルパス
  • [review-instructions]: レビューの観点や指示(オプション)

実行例

# 設定ファイルのレビュー
codex exec -C ~/.claude --skip-git-repo-check "settings.jsonをJSON構文、セキュリティ、ベストプラクティスの観点からレビューしてください"

# 任意のファイルのレビュー
codex exec -C /path/to/dir --skip-git-repo-check "config.yamlの設定内容を確認してください"

注意事項

  • --skip-git-repo-checkフラグでGitリポジトリ外でも実行可能
  • -Cオプションで作業ディレクトリを指定
  • ファイルの内容はCodexが自動的に読み取ります