ethsign/sign-skills/codex-delegator

Claude Code and agent skill by ethsign/sign-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Ask the installed Codex CLI for an independent, read-only review from Claude Code. Use when the user asks to ask Codex, get a Codex second opinion, or have Codex review a code diff, a plan, or a document or question against the code at a commit. Not for editing, publishing, or autonomous review loops.

Install

npx vskill@latest install ethsign/sign-skills/codex-delegator

SKILL.md

The same SKILL.md was published earlier as ethsign/sign-skills/codex-delegator.

Codex Delegator

Use scripts/invoke-codex.py relative to this skill directory. This launches an independent Codex model, not a tool server. Claude remains responsible for scope, verification, and the final answer.

Workflow

  1. Confirm the bounded review target and choose one mode.
  • Committed: resolve explicit base/head commits and verify the intended PR head locally. --base means the exact endpoint diff, not an implicit merge base.
  • Working tree: --working-tree reviews uncommitted work: tracked changes and nonignored untracked files.
  • Code-grounded: to review a document or answer a question against the code, pass --repo and --head FULL_SHA with an objective and no --base/--working-tree. Codex reads a read-only snapshot of that exact commit; there is no diff. Put the document text and any context excerpts in the --prompt-file (at most 1 MiB). Do not clone the repository or add an untracked REVIEW/ folder for this.
  • Plan: provide a concise UTF-8 objective without --repo.
  1. Locate Python 3.10+ (python, python3, or a known full executable path), Git, and the native Codex executable. The wrapper resolves bare codex and git names only from absolute PATH entries, never the current directory. On Windows a .cmd/.ps1 shim is insufficient: use --codex-path to the native codex.exe. Do not install dependencies, change authentication, or weaken sandbox settings automatically. CLI authentication is separate from whether a Codex desktop session is running.
  2. Tell the user the scope before starting. --run-directory is optional. If you supply one, use a fresh absolute path outside the source repository; it may be nonexistent or an existing empty directory, and the wrapper claims it exclusively and refuses a nonempty one. If you omit it, the wrapper creates a durable temporary directory. Either way it prints CODEX_DELEGATION_RUN_DIRECTORY=<path> on stderr before preflight and run_directory in the final JSON; record that path. Keep the objective compact: use --prompt for a short inline objective or --prompt-file for long, quoted, or multiline text (not both). Do not paste the entire diff, repository, or chat. The wrapper materializes a detached snapshot and, in diff modes, supplies the exact patch path.
  3. Run once. Default effort is medium; respect an explicit user model/effort request using --model/--effort. Omitted model uses the CLI built-in default because user config is ignored. Never silently substitute an unavailable model. The default process timeout is 30 minutes, with no arbitrary turn, tool-call, finding-count, or output-token cap. An explicit longer timeout can be selected before launch for a justified scope. Git commands are limited to 60 seconds each; for a repository whose checkout is slow, pass --git-timeout-seconds (5 to 600) instead of retrying.
  4. Preserve the host's live shell/background-task handle and poll it until completion. A host tool returning early is not a failed run. If the handle is lost, read status.json, stream.jsonl, and stderr.log in the recorded run directory; do not start a second process. If a process is still running, wait or obtain permission to terminate it.
  5. Require status.json.status=complete, metadata.json.complete=true, and result.json.complete=true for a completed review. A timeout, interruption, failed turn, malformed stream, missing final JSON, source change, artifact error, or review.complete=false is incomplete, never clean. If writes fail, recover the CODEX_DELEGATION_METADATA= record from the tracked command's stderr; its artifact_error overrides any stale files. Partial findings can be inspected but must be labeled partial. No automatic retry after codex_start_attempted=true, and none after an interrupted status; ask for approval with the reason and proposed scope/settings. A preflight failure with both start flags false can be corrected without spending a model call.
  6. Independently reproduce actionable findings. Do not fix, commit, push, post comments, or mark a PR ready merely because Codex suggested it. Those actions require the user's applicable authorization.
  7. Finish with findings plus a short debug footer: status, mode, requested model/effort, exact base/head or code-grounded commit or other scope, diff hash (if any), elapsed time, reported token usage, item counts, cleanup status, and artifact path. In code-grounded mode, the review summary carries the direct answer. In every repository mode, a finding with an empty file and line 0 has no code location: it concerns the plan, objective, or supplied document. Do not invent a dollar cost or infer actual model identity from the requested alias.

Commands

Substitute absolute paths and, when you choose one, a unique run directory. Resolve this skill's path from the loaded skill, not the caller's working directory.

sh
python3 /path/to/codex-delegator/scripts/invoke-codex.py \
--repo /path/to/repo --base FULL_BASE_SHA --head FULL_HEAD_SHA \
--run-directory /path/outside/repo/review-unique
python3 /path/to/codex-delegator/scripts/invoke-codex.py \
--repo /path/to/repo --working-tree \
--model MODEL_ID --effort high --run-directory /path/outside/repo/review-unique
python3 /path/to/codex-delegator/scripts/invoke-codex.py \
--repo /path/to/repo --head FULL_HEAD_SHA \
--prompt-file /path/to/document-and-question.md
python3 /path/to/codex-delegator/scripts/invoke-codex.py \
--prompt "Review this rollout plan for missing rollback steps: ..."

PowerShell uses the same arguments on one line: & 'C:\path\python.exe' 'C:\path\invoke-codex.py' .... Use --dry-run for local preparation/compatibility checks without contacting the model; a dry run is not a review.

Boundaries

  • The wrapper requests the native read-only sandbox and approval_policy=never; shell inspection is allowed inside that sandbox. Do not reject a review merely for using shell. Do not bypass host Claude permissions or fall back to an unsandboxed invocation.
  • User config/rules, project instructions, web search, hooks, plugins, apps, delegation, and host skill discovery are suppressed by CLI controls; execution starts in a fresh directory outside the snapshot. These controls are not a separate container, filesystem read allowlist, or guarantee against every managed configuration layer. See README.md for the trust boundary and compatibility limits.
  • Code-grounded mode keeps every one of those controls. It reads the whole tree at one immutable commit as reference evidence; it does not review a diff or show what changed.
  • Snapshot preparation runs local Git under the caller's permissions, ignoring inherited GIT_DIR, GIT_WORK_TREE, and GIT_INDEX_FILE so a run started from a Git hook cannot touch the caller's index. Git configuration and the installed executables must be trusted. Preflight and Git commands are time-bounded and their process trees are killed on timeout. Codex must not run project code/tests/installers or network commands; this is an inspection review, not a test run.
  • Submodules are refused rather than silently omitted, including a submodule that is only staged in the working tree. Working evidence is limited to 64 MiB and 250 untracked files; untracked symlinks and out-of-tree paths are refused. Ignored files are not included. Do not broaden or silently truncate the scope to get past these gates.
  • Artifacts can contain source, prompts, paths, and model output. Keep them private; do not upload them automatically. Retain them for recovery, including generated temporary run directories. Temporary snapshots are cleaned up; ambiguous cleanup is reported and retained for inspection. SIGINT, SIGTERM, and SIGHUP (a closed terminal or lost host session) end the run as interrupted and stop Codex; final cleanup and artifact publication ignore repeated signals.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ethsign/sign-skills/codex-delegator/badge)](https://verified-skill.com/skills/ethsign/sign-skills/codex-delegator)

Something wrong with this skill or its page? Tell us.