Skip to content

feiskyer/claude-code-settings / skills/codex-skill

codex-skill

Verified

Leverage OpenAI Codex/GPT models for autonomous code implementation, code review, and plan review. Triggers: "codex", "use gpt", "gpt-5", "let openai", "full-auto", "adversarial review", "second opinion review", "用codex", "让gpt实现", "对抗式审查", "让codex审查计划", "第二意见". Use this skill whenever the user wants to delegate coding tasks to OpenAI models, run code or plan reviews via codex, get a second-opinion review from a different model, or execute tasks in a sandboxed environment.

FileKindSize
SKILL.mdskill md10.7 KB
assets/review-output.schema.jsonconfig1.7 KB
evals/evals.jsonconfig5.9 KB
evals/make-fixture.shexecutablescript2.4 KB
evals/static-checks.shexecutablescript4.4 KB
references/cli-reference.mdmarkdown7.5 KB
references/examples.mdmarkdown2.6 KB
references/prompting-patterns.mdmarkdown9.9 KB
references/review-workflows.mdmarkdown7.5 KB

references/examples.md

View on GitHub
# Codex Usage Scenarios

Worked examples mapping common user requests to `codex exec` commands. See `cli-reference.md` for the full flag reference.

## Code Analysis (Read-Only)

**User**: "Count the lines of code in this project by language"

```bash
codex exec "count the total number of lines of code in this project, broken down by language"
```

## Bug Fixing (Workspace-Write)

**User**: "Fix the authentication bug in the login flow"

```bash
codex exec --full-auto "fix the authentication bug in the login flow"
```

## Feature Implementation (Workspace-Write)

**User**: "Let codex implement dark mode support for the UI"

```bash
codex exec --full-auto "add dark mode support to the UI with theme context and style updates"
```

## Code Review

**User**: "Review my changes before I push"

```bash
codex exec review --uncommitted
```

## Image-Based Implementation

**User**: "Build the UI from this mockup"

```bash
codex exec -i mockup.png --full-auto "implement the UI component matching this design"
```

## Install Dependencies and Integrate API (Danger-Full-Access)

**User**: "Install the new payment SDK and integrate it — use danger-full-access, network is fine"

```bash
codex exec -s danger-full-access "install the payment SDK dependencies and integrate the API"
```

## Multi-Project Work (Custom Directory)

**User**: "Implement the API in the backend project"

```bash
codex exec -C ~/projects/backend --full-auto "implement the REST API endpoints for user management"
```

## Non-Git Project Analysis

**User**: "Analyze this legacy codebase that's not in git"

```bash
codex exec --skip-git-repo-check "analyze the architecture and suggest modernization approach"
```

## Adversarial Review (Structured JSON)

**User**: "让 codex 用最挑剔的眼光审查我这次的改动,重点看并发问题"

Read `review-workflows.md` (Adversarial Review) — size the diff with `git diff --shortstat`, assemble the adversarial prompt, then:

```bash
codex exec -s read-only --output-schema <skill-dir>/assets/review-output.schema.json -o /tmp/codex-review.json "<assembled adversarial prompt>"
```

Present findings by severity, then stop and ask which to fix — never auto-apply.

## Plan Review (Before Implementation)

**User**: "实现之前,先让 codex 审一遍 tasks/todo.md 里的计划"

Read `review-workflows.md` (Plan Review) — the prompt must state the plan is not yet implemented:

```bash
codex exec -s read-only "<plan-review prompt referencing tasks/todo.md>"
```

## Iterative Follow-Up (Resume)

**User**: "不错,让 codex 继续把剩下的测试补完"

```bash
codex exec resume --last "add the remaining unit tests for the module you just fixed"
```
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 467kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 319kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 319kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 319kUpdated Claude CodeCodexVerifiedInstall