OpenParable
Skip to content
← Back to skills

Codex AI

Testing & Quality
codex-ai

Codex AI is an Agent Skill for testing & quality published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

通过 Codex CLI 进行代码审查、算法设计、架构分析和性能优化。适用于复杂技术任务、系统级设计、性能瓶颈分析。触发词:代码审查、review、算法设计、架构分析、性能优化。

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/development/codex-ai-junjiangao-ccode/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/codex-ai, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Codex-AI 协作技能

通过 Bash 直接调用 Codex CLI,处理复杂技术任务。

何时使用

触发此技能当用户提到:

  • 代码审查、review、code review
  • 算法设计、复杂逻辑
  • 架构分析、架构评审
  • 性能优化、瓶颈分析

快速开始

代码审查

codex review --uncommitted -m gpt-5.1-codex-max -c 'model_reasoning_effort="xhigh"'

算法设计和架构分析

# 简单任务
codex exec -m gpt-5.1-codex-max -c 'model_reasoning_effort="high"' "<任务描述>"

# 复杂任务(多约束、系统级设计)
codex exec -m gpt-5.2 -c 'model_reasoning_effort="xhigh"' "<任务描述>"

模型选择

简单任务 → gpt-5.1-codex-max:代码审查、简单重构、文档生成

复杂任务 → gpt-5.2:复杂算法、架构评审、性能优化、多约束问题

判断标准:

  • 单一目标、局部修改 → 简单
  • 多约束、系统级设计 → 复杂

工作流程

代码审查工作流

  1. 确定审查范围:

    • 未提交变更:--uncommitted
    • PR 分支:--base main
    • 特定提交:--commit <SHA>
  2. 选择模型:

    • 常规审查 → gpt-5.1-codex-max
    • 深度分析(安全、性能)→ gpt-5.2
  3. 执行审查:

    codex review --uncommitted -m gpt-5.1-codex-max -c 'model_reasoning_effort="xhigh"'
    
  4. 审查输出并采取行动

算法设计工作流

  1. 明确需求:

    • 列出所有约束条件
    • 定义性能目标
    • 说明边界情况
  2. 选择模型:

    • 单一目标 → gpt-5.1-codex-max
    • 多约束 → gpt-5.2
  3. 执行设计:

    codex exec -m gpt-5.2 -c 'model_reasoning_effort="xhigh"' "设计任务描述"
    
  4. 验证建议:

    • 理解设计原理
    • 评估可行性
    • 测试验证
  5. 逐步实施

常用参数

参数说明
-m <MODEL>模型选择
-c 'model_reasoning_effort="xhigh"'推理强度(推荐)
-C <DIR>工作目录
-o <FILE>输出到文件
--uncommitted审查未提交变更
--base <BRANCH>对比基准分支

详细文档