codex

仓库创建 2025年12月9日最近提交 10 天前SkillHot 收录 21 天前
▸ 精选理由

对使用 Codex CLI 的开发者提供一致、安全的执行流程。

▸ 风险提示

可能执行命令或修改代码库,需注意执行权限。

这个 Skill 做什么

规范化运行 Codex CLI(如 codex exec/resume)并处理模型与沙箱模式。

把对 OpenAI Codex 的命令行操作规范化:帮你运行 codex exec/resume,选模型和沙箱模式,并在不明确时询问。默认使用 --sandbox read-only,只有在需要编辑或联网时才放开写权限。适合让 Codex 做代码分析、重构或自动编辑的场景,注意别把模型名写死。

▸ 展开 SKILL.md 英文原文

Use when the user asks to run Codex CLI (codex exec, codex resume) or references OpenAI Codex for code analysis, refactoring, or automated editing

开发编程Codex CLI代码编辑自动化执行通用
240
Stars
23
Forks
40
仓库内 Skill
+8
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/majiayu000/spellbook/main/skills/codex/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/majiayu000/spellbook/main/skills/codex/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Codex Skill Guide

## Running a Task
1. If the user did not specify a model or reasoning effort, use the installed Codex default or ask once with the available user-question mechanism. Do not hardcode a model list; model names change over time.
2. Select the sandbox mode required for the task; default to `--sandbox read-only` unless edits or network access are necessary.
3. Run `codex --version` first. Stop and report the failure if Codex is unavailable.
4. 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>`; only use other modes when `c
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有