Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问clear审计未展示

codexCodex 编程助手

Agent Skill

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

总安装

343

周安装

14

GitHub Stars

公开资料未说明

下载量

110
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 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"

简介

用于查找、检索和筛选相关信息,帮助 Agent 快速定位候选结果。

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

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

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

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

安全审计

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

权限和风险

external-service

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

安装前确认

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

来源信息

继续浏览同类 Skills