一键导入
codex
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 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
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 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Unarchive a Claude Desktop Cowork session by finding and modifying the session JSON file. Use when the user wants to restore an archived Cowork session.
Convert Claude Code exported txt files to clean Markdown format and save to Obsidian vault. Use when the user wants to convert an export file to markdown.
| name | codex |
| description | Use when the user asks to run Codex CLI (codex exec, codex resume) or references OpenAI Codex for code analysis, refactoring, or automated editing |
If unclear, ask the user (via AskUserQuestion) what they want reviewed or changed.
Assemble the codex command with appropriate options:
-m, --model gpt-5.3-codex (default model)-c model_reasoning_effort="xhigh" (default reasoning effort; options: none, minimal, low, medium, high, xhigh)--sandbox <mode> - use read-only for reviews, workspace-write for edits, danger-full-access for network/broad access--full-auto - only for write operations, not needed for read-only-C, --cd <DIR> - run from a different directoryWhen continuing a previous session, use resume syntax:
codex exec resume --last "your prompt here" 2>/dev/null
Add --skip-git-repo-check if running outside a git repo.
Do not use configuration flags when resuming unless explicitly requested - the session inherits original settings.
For code reviews, prefer the dedicated review subcommand:
codex exec review --base main "Review instructions" 2>/dev/null
Options: --uncommitted (staged/unstaged/untracked), --base <branch>, --commit <sha>.
IMPORTANT: Append 2>/dev/null to suppress thinking tokens (stderr). Only show stderr if debugging is needed.
Run the command, summarize the outcome for the user.
After Codex completes, inform the user: "You can resume this Codex session at any time by saying 'codex resume'."
| Use case | Command example |
|---|---|
| Code review | codex exec review --base main 2>/dev/null |
| Review uncommitted | codex exec review --uncommitted 2>/dev/null |
| Review a commit | codex exec review --commit abc123 2>/dev/null |
| Apply edits | codex exec --sandbox workspace-write --full-auto "Refactor..." 2>/dev/null |
| Full access | codex exec --sandbox danger-full-access --full-auto "..." 2>/dev/null |
| Resume | codex exec resume --last "continue with..." 2>/dev/null |
| Different dir | codex exec -C /path/to/dir --sandbox read-only "..." 2>/dev/null |
When codex identifies HIGH severity bugs during PR reviews, automatically fix them without asking for permission:
# Resume codex session with fix instructions
codex exec resume --last --sandbox workspace-write --full-auto "Fix all HIGH severity bugs identified in the review. For each bug, apply the necessary code changes." 2>/dev/null
Severity guidelines:
Safety notes:
Example:
Codex found: "High - Date constraints never reach Qdrant"
→ Automatically resume codex to fix
→ Commit: "Fix: Push date constraints to Qdrant query"
→ Report: "Fixed HIGH severity date filtering bug in query.py"
codex exits non-zero; request direction before retrying.--full-auto, --sandbox danger-full-access, or --skip-git-repo-check, ask for user permission unless already given.