Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

codex-advisor

БесплатноБез исполняемых скриптовНе проверен

Get a second opinion from OpenAI Codex CLI for plan reviews, code reviews, architecture decisions, and hard problems. Use when you need external validation…

ckorhonenот ckorhonen★ 35 звёзд на GitHub20 установок в других каталогах

Об этом скилле

Codex Advisor

Overview

Use OpenAI's Codex CLI as a second-opinion advisor when you need external validation on plans, code reviews, or are stuck on hard problems. This skill uses non-interactive mode (codex exec) for scripted/automated usage.

When to Use

  • Reviewing implementation plans before starting work
  • Code review for complex or security-sensitive changes
  • Architecture decisions with significant trade-offs
  • Debugging problems where you've been stuck for >30 minutes
  • Getting alternative approaches to a solution
  • Validating assumptions about unfamiliar codebases

Prerequisites

  • OpenAI API key or ChatGPT Plus/Pro/Business account
  • Codex CLI installed

Installation

# Via npm
npm install -g @openai/codex

# Or via Homebrew
brew install --cask codex

Authentication

# Option 1: API key (required for non-interactive mode in CI)
export OPENAI_API_KEY="your-key"

# Option 2: Codex-specific key for CI environments
export CODEX_API_KEY="your-key"

# Option 3: Interactive login (one-time setup)
codex --login

Model Selection

Choose the right model for your task:

Model Best For Use When
gpt-5.2 General-purpose reasoning Default for plan reviews, architecture questions, non-coding tasks
gpt-5.2-codex Real-world software engineering Code reviews, debugging, coding-specific tasks
gpt-5.1-codex-max Extended multi-step workflows Long-running tasks (>10 min), large migrations, complex refactors
gpt-5.1-codex-mini Budget-conscious projects Simple reviews when cost matters

Recommendation:

  • Start with gpt-5.2 for general questions
  • Use gpt-5.2-codex when the task is specifically about code
  • Use gpt-5.1-codex-max for tasks involving many files or complex multi-step work

Reasoning Effort Levels

Always use xhigh reasoning for thorough analysis:

Level Use Case
xhigh Default - Deep analysis, security review, architecture decisions
high Complex analysis when latency matters
medium Quick responses for simple tasks
low/none Not recommended for advisor use cases

Non-Interactive Mode

All commands use codex exec for non-interactive execution. This is essential for scripted usage and piping.

Key Flags

Flag Purpose
--json Output JSON Lines for machine parsing
-o <path> Save final message to file
-C <path> Set working directory (use -C . for current codebase)
--full-auto Enable file modifications (use with caution)
--sandbox read-only Read-only sandbox (default, safest)
--sandbox workspace-write Allow writes to workspace only

Output Handling

# JSON output for parsing
codex exec -m gpt-5.2 -c model_reasoning_effort="xhigh" \
  --json "Your prompt" 2>/dev/null

# Save to file
codex exec -m gpt-5.2 -c model_reasoning_effort="xhigh" \
  -o output.txt "Your prompt"

# Pipe input and capture output
git diff | codex exec -m gpt-5.2-codex -c model_reasoning_effort="xhigh" \
  "Review this diff" > review.txt 2>/dev/null

Command Reference

Plan Review

Get feedback on an implementation plan:

codex exec -m gpt-5.2 -c model_reasoning_effort="xhigh" \
  "Review this implementation plan. Identify potential issues, missing edge cases, security concerns, or better approaches:

<paste plan here>"

For plans involving the current codebase:

codex exec -m gpt-5.2 -c model_reasoning_effort="xhigh" -C . \
  "Review this implementation plan in the context of this codebase. Identify potential issues, conflicts with existing patterns, or better approaches:

<paste plan here>"

Code Review

Review code changes for bugs, security issues, and improvements:

# Review staged changes
git diff --staged | codex exec -m gpt-5.2-codex -c model_reasoning_effort="xhigh" \
  "Review these changes before commit. Check for:
- Bugs or logic errors
- Security vulnerabilities
- Performance issues
- Missing error handling"

# Review a specific diff
git diff | codex exec -m gpt-5.2-codex -c model_reasoning_effort="xhigh" \
  "Review this diff for bugs, security issues, and improvements"

# Review with codebase context
codex exec -m gpt-5.2-codex -c model_reasoning_effort="xhigh" -C . \
  "Review src/auth/login.ts for bugs, security vulnerabilities, and suggest improvements"

Hard Problem Solving

When stuck on a difficult problem:

codex exec -m gpt-5.2-codex -c model_reasoning_effort="xhigh" -C . \
  "I'm stuck on this problem: <description>

What I've tried:
1. <attempt 1>
2. <attempt 2>

Error/behavior I'm seeing: <details>

Suggest solutions or debugging approaches."

Architecture Decisions

Get input on design trade-offs:

codex exec -m gpt-5.2 -c model_reasoning_effort="xhigh" -C . \
  "I need to decide between these approaches for <feature>:

Option A: <description>
O
Полный SKILL.md на GitHub

Установить codex-advisor в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл codex-advisor?

Get a second opinion from OpenAI Codex CLI for plan reviews, code reviews, architecture decisions, and hard problems. Use when you need external validation, want to compare approaches, or are stuck on a difficult problem.

Как установить скилл codex-advisor?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл codex-advisor запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить codex-advisor с