openai-docs

Contributors

GitHub-linked commit authors for this SKILL.md at the saved revision. Co-authors and history before file renames are not included.

File history ↗

Use for Codex models/pricing, scheduled tasks, skills, settings, setup, troubleshooting, customization, automations, and self-knowledge—including 'you,' 'your,' 'this app,' or 'this coding agent' when they refer to Codex—and for OpenAI APIs/products and ChatGPT Work. Also use for model choice/migration, prompting, SDKs, Responses, Realtime, agents, evals, and Chat/Work/Codex comparisons. Do not use for generic app/software tasks that merely mention Codex.

codex-rs/skills/src/assets/samples/openai-docs/SKILL.md

Download bundle ↓
main · 18d7ace17 bundle filesScanned 2026-09-14

scripts/resolve-latest-model-info

345 tokens · o200k_base · 1,038 bytes

Source excerpt starting at line 1.
#!/bin/shset -eu SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)SCRIPT_PATH="$SCRIPT_DIR/resolve-latest-model-info.cjs" is_compatible_node() {  "$1" -e 'const major = Number(process.versions.node.split(".")[0]); process.exit(major >= 18 ? 0 : 1)' >/dev/null 2>&1} run_if_compatible() {  CANDIDATE=$1  shift  if [ -n "$CANDIDATE" ] && [ -x "$CANDIDATE" ] && is_compatible_node "$CANDIDATE"; then    exec "$CANDIDATE" "$SCRIPT_PATH" "$@"  fi} if [ -n "${NODE:-}" ]; then  run_if_compatible "$NODE" "$@"fi PATH_NODE=$(command -v node 2>/dev/null || true)if [ -n "$PATH_NODE" ]; then  run_if_compatible "$PATH_NODE" "$@"fi for CANDIDATE in \  "$HOME/.cache/codex-runtimes/codex-primary-runtime/dependencies/node/bin/node" \  "$HOME/.cache/codex-runtimes/codex-primary-runtime/dependencies/bin/node" \  "/opt/homebrew/bin/node" \  "/usr/local/bin/node" \  "/usr/bin/node"do  run_if_compatible "$CANDIDATE" "$@"done echo "No usable Node.js 18+ runtime found for resolve-latest-model-info.cjs" >&2exit 127