Skip to content
Skills Library
AI & agents · Tool integration

codex

/codex

Run OpenAI Codex CLI (via AWS Bedrock) non-interactively to get a second opinion, review a diff, or delegate a task. Use when the user asks to "run codex", "ask codex", or get a Codex review/answer.

Author
ispc ↗
Repository
ispc ↗
Licence
BSD-3-Clause
Last repository change
27.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

BSD-3-Clause, otwarta.

What it does and when to use it

Run OpenAI Codex CLI (via AWS Bedrock) non-interactively to get a second opinion, review a diff, or delegate a task. Use when the user asks to "run codex", "ask codex", or get a Codex review/answer.

Triggers from the description

run codexask codex
Original author description

Run OpenAI Codex CLI (via AWS Bedrock) non-interactively to get a second opinion, review a diff, or delegate a task. Use when the user asks to "run codex", "ask codex", or get a Codex review/answer.

How it works

  1. 1. Precheck
  2. 2. Run
  3. 3. Report
  4. Troubleshooting
Original SKILL.md headings · 68 lines, 404 words
SKILL.md preview
---
name: codex
description: Run OpenAI Codex CLI (via AWS Bedrock) non-interactively to get a second opinion, review a diff, or delegate a task. Use when the user asks to "run codex", "ask codex", or get a Codex review/answer.
---

# Running Codex

Codex is installed at `/usr/bin/codex` and configured in `~/.codex/config.toml`
to use the `amazon-bedrock-runtime` provider (region `us-east-2`). Always run it
non-interactively with `codex exec`; the interactive TUI cannot be driven from
Claude Code.

## 1. Precheck

```bash
echo "token: ${AWS_BEARER_TOKEN_BEDROCK:+set}"; echo "proxy: ${https_proxy:+set}"
```

Both must print `set`. Never print or log the token value. If either is
missing, stop and tell the user: the token comes from the Bedrock Token
Generator, and Bedrock is only reachable through `proxy-us.intel.com:911`.

## 2. Run

```bash
OUT=$(mktemp /tmp/codex-out.XXXXXX)
timeout 600 codex exec \
  -C /localdisk2/aneshlya/ispc/applications.compilers.ispc.core \
  -s read-only \
  -o "$OUT" \
  "<prompt>" </dev/null > /tmp/codex-log.txt 2>&1
echo "exit=$?"; cat "$OUT"
```

- `-o` writes only Codex's final message to `$OUT`; the full transcript goes to
  `/tmp/codex-log.txt`. Read the log only when the run fails.
- `</dev/null` is required, otherwise `codex exec` waits for stdin.
- Use `-s read-only` by default. Use `-s workspace-write` only when the user
  explicitly wants Codex to edit files, and review its changes with
  `git diff` afterwards.
- Runs can take several minutes: use a Bash timeout of 600000 ms, or
  `run_in_background` for long tasks.
- Codex does not see this conversation. Put everything it needs in the prompt:
  goal, relevant file paths, branch, and constraints. For a diff review, tell it
  to run `git diff` (or `git diff main...HEAD`) itself rather than pasting
  the diff.

## 3. Report

Relay Codex's answer to the user, clearly attributed to Codex. Do not treat its
claims as verified: check any finding against the code before acting on it, and
say which ones you confirmed.

## Troubleshooting

- `Model metadata for ... not found`: harmless warning, ignore it.
- `failed to load AWS credentials: the credential provider was not enabled`:
  `AWS_BEARER_TOKEN_BEDROCK` is missing or expired in the process making the
  request. For `codex exec`, fix the current environment. For the user's
  interactive `codex`, the background app-server daemon was started without the
  token. Check it without printing the value:
  ```bash
  PID=$(python3 -I -c 'import json,os;print(json.load(open(os.path.expanduser("~/.codex/app-server-daemon/daemon.pid")))["pid"])')
  tr '\0' '\n' < /proc/$PID/environ | grep -c '^AWS_BEARER_TOKEN_BEDROCK='
  ```
  If it prints `0`, kill that exact PID (never `pkill -f`, which matches the
  calling shell). Codex starts a new daemon on the next launch.
- `401` from `api.openai.com`: the config is not applied. Top-level keys
  (`model`, `model_provider`, ...) must come before the first `[table]` header in
  `~/.codex/config.toml`.
- Connection errors or hangs: the proxy env vars are missing.

Versions

RepositoryScoreLicence
This page · ispc/ispc100BSD-3-Clause
davila7/claude-code-templates100MIT
tigercosmos/japanese-podcast-learner100MIT
puck-muling/peer-agent100MIT
dzhng/skills100MIT
majiayu000/spellbook100MIT
onlypfachi/chief100MIT
dzhng/skills100MIT
dzhng/jevgrep100MIT

Database snapshot: 13.11.2026 · package version 5eae60003661 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 95codex-exec
    Run OpenAI Codex CLI non-interactively to execute tasks, generate code, or get a second opinion. Use this skill whenever the user says "run codex", "ask codex", "codex exec", "have codex do", "send to codex", "pipe to codex", or wants to delegate a task to Codex for a second…
  • 100codex-review
    Get a second-opinion code review from OpenAI Codex via the `codex-run` CLI — dispatch it, wait on it correctly, verify what it found, and post it only when a human says so. Use ONLY when the user names Codex explicitly: "review this with codex", "codex review", "codex-review",…
  • 100codex-review
    Get an independent second opinion from OpenAI Codex CLI on a plan, diff, spec, or Claude's last response. Use when the user asks to "get a second opinion", "have codex review", "cross-check with codex", or wants adversarial review of Claude's output. Argument is one of…
  • 100code-mate-codex
    Run Codex CLI non-interactively for coding tasks. Use when the user asks to delegate work to Codex.
  • 95codex-review
    Run OpenAI Codex CLI to review code changes and iterate until clean. Use this skill whenever the user says "codex review", "have codex check", "run codex on that", "codex loop", "review with codex", or asks you to get a second opinion on your commit from Codex/OpenAI. Also use…
  • 100codex-agent
    Run the OpenAI Codex CLI non-interactively as a child agent and get back its final reply plus a session id, with the prompt supplied as arguments, a file, or stdin, and session resume support. Use to delegate a self-contained brief to a Codex agent, to get a second-vendor…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.