一键导入
codex
Delegate coding tasks to the OpenAI Codex CLI for features, refactoring, PR reviews, and batch fixes. Requires the codex CLI and typically a git repository.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Delegate coding tasks to the OpenAI Codex CLI for features, refactoring, PR reviews, and batch fixes. Requires the codex CLI and typically a git repository.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
DeepNote knowledge base: persistent interlinked markdown wiki with ingest, query, lint, link graph and history.
REST API design patterns including resource naming, status codes, pagination, filtering, error responses, versioning, and rate limiting for production APIs.
Backend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes.
ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.
Database migration best practices for schema changes, data migrations, rollbacks, and zero-downtime deployments across PostgreSQL, MySQL, and common ORMs (Prisma, Drizzle, Django, TypeORM, golang-migrate).
Deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web applications.
| name | codex |
| description | Delegate coding tasks to the OpenAI Codex CLI for features, refactoring, PR reviews, and batch fixes. Requires the codex CLI and typically a git repository. |
| version | 1.0.0 |
| license | MIT |
| metadata | {"clawcode":{"tags":["Coding-Agent","Codex","OpenAI","Code-Review","Refactoring"],"related_skills":["coding-standards","python-patterns","opencode"]}} |
Use OpenAI Codex as an external coding agent when the user wants Codex specifically.
Do not confuse these entry points (they are not interchangeable):
| Entry | Role |
|---|---|
/codex-cli (TUI slash) | One-shot probe or command via codex_cli_bridge: merged stdout/stderr, not a PTY session and not multi-turn TUI control. Default args often --version. |
bash | One-shot shell in agent turns, e.g. codex exec '…'. |
terminal + process (Agent tools) | Multi-turn driving of Codex: terminal with background=true (and pty=true on POSIX with clawcode[terminal-pty]), then process for poll / submit / kill. Codex expects a git repo; for scratch dirs use mktemp -d && git init. Windows local PTY is limited—full TUI automation use WSL/Linux. |
Optional: pip install 'clawcode[terminal-pty]' for ptyprocess on POSIX.
npm install -g @openai/codex (command name codex on PATH).git init for greenfield scratch.codex explicitly.codex exec '...' via bash in the project workspace./codex-cli after /claw (default codex --version); same terminal stack as /claude-cli / /opencode-cli.| Goal | What to use |
|---|---|
| Quick probe | /codex-cli only—single run, not multi-run TUI. |
| One-shot exec | bash or terminal foreground: codex exec 'task' with working_directory in a git repo. |
| Long / background | terminal (background=true, pty=true where supported) + process. Optional check_interval on terminal for TUI completion notifications (see CLAW_SUPPORT_MAP.md). |
terminal(command="codex exec 'Add dark mode toggle to settings'", workdir="~/project", pty=true)
Scratch with new repo:
terminal(command="cd $(mktemp -d) && git init && codex exec 'Build a snake game in Python'", pty=true)
terminal(command="codex exec --full-auto 'Refactor the auth module'", workdir="~/project", background=true, pty=true)
process(action="poll", session_id="<id>")
process(action="log", session_id="<id>")
process(action="submit", session_id="<id>", data="yes")
process(action="kill", session_id="<id>")
| Flag | Effect |
|---|---|
exec "prompt" | One-shot run, exits when done |
--full-auto | Sandboxed; auto-approves file changes in workspace |
--yolo | No sandbox (dangerous; use with care) |
pty=true for interactive Codex sessions on POSIX; without PTY many CLIs misbehave./codex-cli does not replace terminal/process for long interactive work.