Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计未展示

oracle-codexOracle Codex 搜索

Agent Skill

oracle-codex 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

216

周安装

9

GitHub Stars

公开资料未说明

下载量

72
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:oracle-codex(Oracle Codex 搜索)
来源仓库:https://github.com/paulrberg/dot-claude
仓库路径:skills/oracle-codex
安装命令:
npx skills add paulrberg/dot-claude --skill "oracle-codex"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add paulrberg/dot-claude --skill "oracle-codex"

简介

用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 适用于研究检索类任务,支持多宿主环境集成,可结合来源仓库进一步核验具体用法。
  • 通过 npx skills add paulrberg/dot-claude --skill "oracle-codex" 命令安装。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Codex Oracle

Use OpenAI Codex CLI as a planning oracle and code reviewer. Codex provides analysis and recommendations; Claude synthesizes and presents to the user.

Critical: This skill is for planning and review ONLY. Never use Codex to implement changes.

Prerequisites

Before invoking Codex, validate availability:

~/.claude/skills/oracle-codex/scripts/check-codex.sh

If the script exits non-zero, display the error message and stop. Do not proceed without Codex CLI.

Configuration Defaults

SettingDefaultUser Override
Modelgpt-5.2-codex"use model X" or "with gpt-5.2-codex"
ReasoningDynamic (based on complexity)"use medium reasoning" or "with xhigh effort"
Sandboxread-onlyNot overridable (safety constraint)
Timeout5 minutes minimumEstimate based on task complexity
Profilequiet (notify=[])User opts into another profile or notifications

Timeout Guidelines

When invoking codex exec via the Bash tool, always set an appropriate timeout:

  • Minimum: 5 minutes (300000ms) for any Codex operation
  • Simple queries (single file review, focused question): 5 minutes (300000ms)
  • Moderate complexity (multi-file review, feature planning): 10 minutes (600000ms)
  • High complexity (high reasoning): 15 minutes minimum (900000ms)
  • Maximum complexity (xhigh reasoning): 20 minutes (1200000ms)

Reasoning Effort Guidelines

Select reasoning effort based on task complexity:

ComplexityEffortExamples
SimplelowSingle file review, syntax check, quick question
ModeratemediumMulti-file review, focused feature planning, bug analysis
ComplexhighArchitecture analysis, cross-cutting concerns, security audit
MaximumxhighLarge codebase planning, comprehensive design, deep reasoning

Selection heuristics:

  • low: Task involves <3 files, simple question, or quick validation
  • medium: Task involves 3-10 files or requires moderate analysis
  • high: Task spans multiple modules or requires architectural thinking
  • xhigh: Task requires comprehensive codebase understanding or critical decisions

For available models and reasoning levels, consult references/codex-flags.md.

Workflow

1. Validate Prerequisites

Run the check script. On failure, report the installation instructions and abort.

2. Determine Mode

  • Planning mode: User wants architecture, implementation approach, or design decisions
  • Review mode: User wants code analysis, bug detection, or improvement suggestions

3. Construct Prompt

Build a focused prompt for Codex based on mode:

Planning prompt template:

Analyze this codebase and provide a detailed implementation plan for: [user request]

Focus on:
- Architecture decisions and trade-offs
- Files to create or modify
- Implementation sequence
- Potential risks or blockers

Do NOT implement anything. Provide analysis and recommendations only.

Review prompt template:

Review the following code for:
- Bugs and logic errors
- Security vulnerabilities
- Performance issues
- Code quality and maintainability
- Adherence to best practices

[code or file paths]

Provide specific, actionable feedback with file locations and line references.

4. Assess Complexity and Execute Codex

Before executing, assess task complexity to select appropriate reasoning effort:

  1. Count files involved in the query
  2. Evaluate scope (single module vs cross-cutting)
  3. Consider depth (surface review vs architectural analysis)

Use HEREDOC syntax for safe prompt handling. Always use the Bash tool's timeout parameter (minimum 300000ms / 5 minutes).

Redirect output to a temp file to avoid context bloat and race conditions.

Step 1: Generate a unique temp file path using $RANDOM for randomness:

CODEX_OUTPUT="/tmp/codex-${RANDOM}${RANDOM}.txt"

Step 2: Execute Codex and redirect output to the temp file:

# Select EFFORT based on complexity assessment (low/medium/high/xhigh)
# Bash tool timeout: 5-20 minutes based on complexity
codex exec \
  -m "${MODEL:-gpt-5.2-codex}" \
  -c "model_reasoning_effort=${EFFORT}" \
  --profile "${CODEX_PROFILE:-quiet}" \
  -s read-only \
  --skip-git-repo-check \
  2>/dev/null <<'EOF' > "$CODEX_OUTPUT"
[constructed prompt]
EOF

Important flags:

  • -m: Model selection
  • -c model_reasoning_effort=: Reasoning depth (low/medium/high/xhigh) — select based on Reasoning Effort Guidelines
  • --profile quiet: Default for this skill (suppresses notify hooks); change only if the user explicitly wants another profile/notifications
  • -s read-only: Prevents any file modifications (non-negotiable)
  • --skip-git-repo-check: Works outside git repositories
  • 2>/dev/null: Suppresses thinking tokens from output

Bash tool timeout: Estimate based on task complexity (see Timeout Guidelines above). Never use the default 2-minute timeout for Codex operations.

5. Present Codex Output

Step 3: Read the analysis from the temp file and display to the user:

cat "$CODEX_OUTPUT"

Format the output with clear attribution:

## Codex Analysis

[Codex output from the temp file]

---
Model: gpt-5.2-codex | Reasoning: [selected effort level]

For very large outputs (>5000 lines), summarize key sections rather than displaying everything.

6. Synthesize and Plan

After presenting Codex output:

  1. Synthesize key insights from Codex analysis
  2. Identify actionable items and critical decisions
  3. If Codex's analysis presents multiple viable approaches or significant trade-offs, consider using AskUserQuestion to clarify user preferences before finalizing the plan
  4. Write a structured plan to ~/.claude/plans/[plan-name].md
  5. Call ExitPlanMode to present the plan for user approval

When to use AskUserQuestion:

  • Codex proposes multiple architectures with different trade-offs
  • Technology or library choices need user input
  • Scope decisions (minimal vs comprehensive) are ambiguous

Skip clarification when:

  • Codex's recommendations are clear and unambiguous
  • User's original request already specified preferences
  • Only one viable approach exists

Error Handling

ErrorResponse
Codex not installedShow installation instructions from check script
Codex timeoutInform user, suggest simpler query or lower reasoning
API rate limitWait and retry, or inform user of limit
Empty responseRetry once, then report failure

Usage Examples

Planning Request

User: "Ask Codex to plan how to add authentication to this app"

  1. Validate Codex CLI available
  2. Gather relevant codebase context
  3. Assess complexity → auth spans multiple modules → high reasoning
  4. Construct planning prompt with auth requirements
  5. Execute Codex with gpt-5.2-codex and high
  6. Present Codex's architecture recommendations
  7. Synthesize into Claude plan format
  8. Write to ~/.claude/plans/ and call ExitPlanMode

Code Review Request

User: "Have Codex review the changes in src/auth/"

  1. Validate Codex CLI available
  2. Read files in src/auth/ directory
  3. Assess complexity → single directory, focused review → medium reasoning
  4. Construct review prompt with file contents
  5. Execute Codex review with medium
  6. Present findings with file/line references
  7. Summarize critical issues and recommendations

Additional Resources

Reference Files

  • references/codex-flags.md - Complete model and flag documentation

Scripts

  • scripts/check-codex.sh - Prerequisite validation (run before any Codex command)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

trae

63.13%
按下载量换算45

Claude Code

27.6%
按下载量换算20

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills