一键导入
codex
Delegate coding work to the OpenAI Codex CLI for repository changes, reviews, and focused fixes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Delegate coding work to the OpenAI Codex CLI for repository changes, reviews, and focused fixes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | codex |
| description | Delegate coding work to the OpenAI Codex CLI for repository changes, reviews, and focused fixes. |
| license | MIT |
| compatibility | Requires the `codex` CLI on PATH and a healthy codex connector. |
| allowed-tools | Bash |
| metadata | {"gini":{"version":"1.0.0","author":"Gini","prerequisites":{"commands":["codex","git"]},"requires":{"connectors":[{"provider":"codex"}]}}} |
Use the OpenAI Codex CLI when the user wants an autonomous coding pass in a git repository: feature work, bug fixes, refactors, review passes, or isolated experiments.
npm install -g @openai/codexpty=true for interactive Codex commands.Codex CLI OAuth usually lives under ~/.codex/auth.json. Do not assume Codex
is unauthenticated only because OPENAI_API_KEY is missing.
Run a focused one-shot from the target repo:
codex exec "Find why the dashboard test is flaky, patch the smallest fix, and run the targeted test."
Review local changes:
codex exec "Review git diff --stat and git diff for bugs, regressions, and missing tests. Return findings only."
Scratch prototype in a disposable repo:
tmp=$(mktemp -d)
cd "$tmp"
git init
codex exec "Create a tiny Bun CLI that parses a JSON file and prints a summary."
For long tasks, launch in the background with a PTY, then poll the process rather than starting duplicate Codex runs.
codex exec --full-auto "Refactor the settings loader. Keep the diff narrow and commit when tests pass."
Use --full-auto only when repository writes are expected and the user has
accepted the risk. Avoid --yolo unless the user explicitly asks for it.
Use worktrees for parallel issue fixes so each Codex instance has its own branch and filesystem.
git worktree add -b fix/runtime-health /tmp/gini-runtime-health main
git worktree add -b fix/skills-copy /tmp/gini-skills-copy main
cd /tmp/gini-runtime-health
codex exec --full-auto "Fix the runtime health regression and run the related tests."
cd /tmp/gini-skills-copy
codex exec --full-auto "Add coverage for bundled skill loading changes."
After each run, inspect the diff, run the expected checks, and remove completed
worktrees with git worktree remove <path>.
git fetch origin main
codex exec "Review the current branch against origin/main. Prioritize correctness, security, and missing tests."
For a GitHub PR:
gh pr checkout 42
codex exec "Review this PR against origin/main. Return only actionable findings with file and line notes."
codex exec "prompt" for one-shot tasks.pty=true for interactive Codex sessions.--full-auto over --yolo for write-heavy work.Google Calendar via gws: list events, create, accept, find free time.
Google Docs via gws: read, append text, structured batch edits.
Google Drive via gws: search, list, upload, download, share.
Google Forms via gws: create forms, add items, read responses.
Gmail via gws: send, read, search, label, draft, reply, forward.
Google Sheets via gws: read/write cells, append rows, structured batch edits.