Token导航 LogoToken导航

Agent Skill · 研究检索

codex(Codex 编程助手)

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

codex 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证为 MIT,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 62,001。

总安装 343周安装 14GitHub Stars 公开资料未说明下载 110核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add zpankz/mcp-skillset --skill "codex"

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于查找、检索和筛选相关信息,帮助 Agent 快速定位候选结果。适合在需要根据关键词或任务场景进行信息筛选时使用。可结合来源仓库和 README 继续核验具体用法。安装前建议确认权限范围、维护状态及是否触发联网或文件读写。安装方式:github;适用宿主:Codex、Claude、Cursor、Gemini CLI。

来源仓库内路径:skills/codex

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add zpankz/mcp-skillset --skill "codex";命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

codex 怎么安装?

在终端执行 npx skills add zpankz/mcp-skillset --skill "codex"。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

codex 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

codex 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

codex 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

codex 用的人多吗?

公开数据是累计安装 343 次,近一周安装 14 次,下载 110 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

codex 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
codex

Codex 编程助手 · 本页

343—调用外部服务MIT未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
codex
description
|
tools
disallowedTools
context
fork
model
opus
agent
codex-agent

Codex Skill Guide

When to Use This Skill

Primary Use Cases:

  1. User explicitly requests codex CLI execution (Mode 1: Direct CLI)
  2. Complex debugging requiring GPT second opinion (Mode 2: GPT Delegation)
  3. Deep research on unfamiliar technologies (Mode 2: GPT Delegation)
  4. Algorithm optimization validation (Mode 2: GPT Delegation)

Do NOT use for:

  • Simple code explanations
  • Routine file operations
  • Standard debugging that Claude can handle directly

Execution Modes

Mode 1: Direct CLI Execution

When: User explicitly asks to run codex CLI (codex exec, codex resume)

Workflow:

  1. Utilise AskUserQuestion to evaluate and extend the users query, providing at least 5 questions, each with multi-select options to determine the best model and reasoning effort. Let the first question include options for the following combinations:
  1. Execute:

codex exec --skip-git-repo-check -m <MODEL> --config model_reasoning_effort="<EFFORT>" --sandbox <MODE> --full-auto 2>/dev/null

  1. Inform user: "You can resume with 'codex resume' anytime"

Resuming: echo "new prompt" | codex exec --skip-git-repo-check resume --last 2>/dev/null

Mode 2: GPT Delegation for Analysis

When: Complex problem needs second opinion (async race conditions, architecture decisions, algorithm validation)

Workflow:

  1. Analyze context and identify what GPT analysis would help
  2. Formulate comprehensive query with all relevant context:

- Problem statement - Current findings - Code snippets (if applicable) - Error messages - Attempted solutions - Specific questions

  1. Keep context concise but complete (<10K tokens preferred)
  2. Execute: codex -p "<DETAILED CONTEXT>"
  3. Synthesize GPT response into actionable insights
  4. Report findings with:

- Clear summary of GPT's analysis - Specific recommendations or solutions - Additional considerations or caveats - Next steps if applicable

Error Handling

  • Verify codex binary exists before execution: which codex
  • Stop immediately on non-zero exit codes and report to user
  • Request direction before retrying failed commands
  • See 'High-Impact Flags Confirmation' in AskUserQuestion Tool Usage section

before using: - --full-auto - --sandbox danger-full-access - --skip-git-repo-check (default, but mention to user)

Context Management

  • Prioritize most relevant information when building queries
  • Summarize background information if context is large
  • Break complex problems into specific, answerable questions
  • Avoid passing entire codebases - extract relevant snippets

AskUserQuestion Tool Usage

This skill uses the AskUserQuestion tool for all user interactions. Here are the standard invocation patterns:

Initial Configuration (Mode 1, Step 1)

At the start of Mode 1 execution, gather model, reasoning effort, and sandbox mode with a single question:

Invoke the tool like this:

Use AskUserQuestion with:
- Question: "Select codex configuration (model, reasoning effort, and sandbox)"
- Options:
  1. "gpt-5.2-codex / high / read-only (Recommended)" - Balanced, analysis only
  2. "gpt-5.2-codex / xhigh / read-only" - Max quality, analysis only
  3. "gpt-5.2-codex / high / workspace-write" - Balanced, can edit files
  4. "gpt-5.2-codex / xhigh / workspace-write" - Max quality, can edit files
  5. "gpt-5.2 / medium / read-only" - Faster, general purpose
  6. "gpt-5.2-codex / high / danger-full-access" - Network/broad access
  7. "Custom" - User will specify model, effort, and sandbox separately

High-Impact Flags Confirmation

Before executing with --full-auto or dangerous flags:

Invoke the tool like this:

Use AskUserQuestion with:
- Question: "Ready to execute with these flags: [LIST FLAGS]. Proceed?"
- Show complete command preview
- Options:
  1. "Execute now" - Run as configured
  2. "Modify configuration" - Change settings
  3. "Cancel" - Abort

Post-Execution Follow-up

After codex command completes:

Invoke the tool like this:

Use AskUserQuestion with:
- Question: "Codex completed. [SUMMARY]. Next steps?"
- Options:
  1. "Resume with additional prompt" - Continue session
  2. "Analyze results" - Review output
  3. "Complete" - Finished
  4. "Retry with different config" - Adjust settings

Error Recovery

When command fails or has warnings:

Invoke the tool like this:

Use AskUserQuestion with:
- Question: "Error: [SPECIFIC ERROR]. How to proceed?"
- Show what succeeded vs failed
- Options:
  1. "Resume with adjustments" - Fix and continue
  2. "Retry with different config" - Change model/effort/sandbox
  3. "Accept partial results" - Use what worked
  4. "Invoke heal-skill" - Fix outdated SKILL.md

Running a Task

  1. See 'Initial Configuration' in AskUserQuestion Tool Usage section to gather

model, reasoning effort, and sandbox mode in one question

  1. Assemble the command with the appropriate options:

- -m, --model <MODEL> - --config model_reasoning_effort="<xhigh|high|medium|low>" - --sandbox <read-only|workspace-write|danger-full-access> - --full-auto - -C, --cd <DIR> - --skip-git-repo-check

  1. Always use --skip-git-repo-check.
  2. When continuing a previous session, use

codex exec --skip-git-repo-check resume --last via stdin. When resuming don't use any configuration flags unless explicitly requested by the user. Resume syntax: echo "your prompt here" | codex exec --skip-git-repo-check resume --last 2>/dev/null. All flags have to be inserted between exec and resume.

  1. IMPORTANT: By default, append 2>/dev/null to all codex exec commands

to suppress thinking tokens (stderr). Only show stderr if the user explicitly requests to see thinking tokens or if debugging is needed.

  1. Run the command, capture stdout/stderr (filtered as appropriate), and

summarize the outcome for the user.

  1. After Codex completes, inform the user: "You can resume this Codex

session at any time by saying 'codex resume' or asking me to continue with additional analysis or changes."

Quick Reference

Use caseSandbox modeKey flags
Read-only review or analysisread-only--sandbox read-only 2>/dev/null
Apply local editsworkspace-write--sandbox workspace-write --full-auto 2>/dev/null
Permit network or broad accessdanger-full-access--sandbox danger-full-access --full-auto 2>/dev/null
Resume recent sessionInherited from original`echo "prompt" \codex exec --skip-git-repo-check resume --last 2>/dev/null`
Run from another directoryMatch task needs-C <DIR> plus other flags 2>/dev/null

Following Up

  • After every codex command, see 'Post-Execution Follow-up' in AskUserQuestion

Tool Usage section

  • When resuming, pipe the new prompt via stdin:

echo "new prompt" | codex exec resume --last 2>/dev/null. The resumed session automatically uses the same model, reasoning effort, and sandbox mode from the original session.

  • Restate the chosen model, reasoning effort, and sandbox mode when proposing

follow-up actions.

Error Handling Guidelines

  • Stop and report failures whenever codex --version or a codex exec command

exits non-zero; request direction before retrying.

  • See 'High-Impact Flags Confirmation' and 'Error Recovery' in AskUserQuestion

Tool Usage section

  • When output includes warnings or partial results, see 'Error Recovery' in

AskUserQuestion Tool Usage section

Heal-Skill Integration

When codex CLI API changes are detected (command failures, unexpected output formats, or deprecated flags):

  1. Detection: Notice command failures or API mismatches during execution
  2. Trigger: Flag skill for healing via /heal-skill codex
  3. Analysis: Healing agent analyzes current CLI with codex --help and codex features list
  4. Update: Updates skill documentation to match current API
  5. Validation: Re-validates agent configuration for compatibility
  6. Model Verification: Ensures only gpt-5.2 and gpt-5.2-codex models are referenced

Common Changes to Monitor:

  • New or deprecated command flags
  • Changes to sandbox modes or reasoning effort options
  • Model availability updates
  • MCP integration changes
  • Session management API modifications

平台分布

OpenCode

26.77%
按下载量换算29

Claude Code

22.96%
按下载量换算25

windsurf

17.64%
按下载量换算19

Codex

12.15%
按下载量换算13

kiro-cli

7.01%
按下载量换算8

mcpjam

3.05%
按下载量换算3

安全审计

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

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

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

继续浏览同类 Skills