codex-docs-guide
Query OpenAI Codex CLI configuration, features, and documentation. Use this skill proactively when the conversation involves: - Codex CLI installation, setup, or authentication - Codex CLI configuration (config.toml, AGENTS.md, profiles) - Codex models (GPT-5.5, GPT-5.3-Codex, Codex-Spark) - Codex CLI commands, flags, slash commands - Codex features (fast mode, web search, multi-agent, MCP, skills) - Codex speed/reasoning settings - Codex SDK, non-interactive mode, automation - Codex security, sandboxing, approval modes - Codex IDE extension or app configuration - Codex integrations (GitHub, Slack, Linear)
What this skill does
# Codex Docs Guide
Query OpenAI Codex source code and official documentation for accurate, up-to-date information.
## When to Use
When the user asks about or the conversation involves:
- Codex CLI setup, configuration, or commands
- Codex model selection or switching
- Codex speed, fast mode, or reasoning levels
- Codex AGENTS.md, skills, MCP, rules
- Codex SDK, automation, or non-interactive mode
- Codex app, IDE extension, or cloud
- Any OpenAI Codex product or feature
## Strategy: Source Code First, Docs Second
**Primary source**: [`openai/codex`](https://github.com/openai/codex) GitHub repo — the definitive source for config schemas, valid values, CLI flags, protocol definitions, and SDK types.
**Secondary source**: WebFetch from `https://developers.openai.com/codex/` — for conceptual guides, tutorials, and best practices.
## Execution Steps (IMPORTANT!)
**You MUST query the source — never answer from memory!**
### Step 1: Determine query type and choose method
| Query Type | Method | Example |
|-----------|--------|---------|
| Config valid values, schema | Repo: config.schema.json | "What values does reasoning_effort accept?" |
| CLI flags, options | Repo: main.rs or docs/ | "What flags does `codex` accept?" |
| Model definitions, defaults | Repo: models.json | "What's the default reasoning effort for gpt-5.5?" |
| Protocol types, enums | Repo: protocol src | "What ReasoningEffort variants exist?" |
| SDK types, interfaces | Repo: sdk/ | "What options does exec() accept?" |
| Conceptual guides, tutorials | WebFetch docs site | "How does sandboxing work?" |
| Pricing, enterprise, auth | WebFetch docs site | "How much does Codex cost?" |
### Step 2a: Query GitHub Repo (primary)
**Search for keywords across the repo:**
```bash
gh search code "keyword" --repo openai/codex --limit 20
```
**Read specific key files via raw URL (preferred — avoids base64/size limits):**
```bash
# Config schema (all valid config keys and values) — 78KB
curl -sL https://raw.githubusercontent.com/openai/codex/main/codex-rs/core/config.schema.json
# Model definitions (models, defaults, reasoning efforts) — 251KB, too large for gh api contents
curl -sL https://raw.githubusercontent.com/openai/codex/main/codex-rs/core/models.json
# CLI entry point (flags, arguments)
curl -sL https://raw.githubusercontent.com/openai/codex/main/codex-rs/exec/src/main.rs
# In-repo documentation
gh api repos/openai/codex/contents/docs/ -q '.[].name'
curl -sL https://raw.githubusercontent.com/openai/codex/main/docs/config.md
```
> **IMPORTANT**: Do NOT use `gh api repos/.../contents/FILE -q '.content' | base64 -d` for files > 100KB.
> GitHub API returns empty content for large files. Always use `curl -sL` with raw.githubusercontent.com.
**Key files in `openai/codex` repo:**
| File | Contains |
|------|----------|
| `codex-rs/core/config.schema.json` | Full config schema with all valid values |
| `codex-rs/core/models.json` | Model definitions, defaults, supported efforts |
| `codex-rs/exec/src/main.rs` | CLI entry point, flags, arguments |
| `codex-rs/protocol/src/config_types.rs` | Rust config types and enums |
| `codex-rs/protocol/src/openai_models.rs` | ReasoningEffort enum, model types |
| `sdk/typescript/src/threadOptions.ts` | TypeScript SDK types |
| `sdk/typescript/src/exec.ts` | SDK exec options, CLI arg mapping |
| `sdk/python/src/codex_app_server/` | Python SDK types |
| `codex-rs/docs/` | Internal protocol and interface docs |
| `docs/` | User-facing documentation (markdown) |
### Step 2b: Query Docs Site (secondary)
Prepend `https://developers.openai.com` to paths:
| Topic | URL Path |
|-------|----------|
| Codex overview | /codex/ |
| Quickstart | /codex/quickstart/ |
| CLI overview | /codex/cli/ |
| CLI features | /codex/cli/features/ |
| CLI reference | /codex/cli/reference |
| Slash commands | /codex/cli/slash-commands/ |
| Config basics | /codex/config/basics/ |
| Speed & fast mode | /codex/speed/ |
| Models | /codex/models/ |
| AGENTS.md | /codex/agents-md/ |
| MCP setup | /codex/mcp/ |
| Skills | /codex/skills/ |
| SDK | /codex/sdk/ |
| Non-interactive | /codex/non-interactive/ |
| Security | /codex/security/ |
| Best practices | /codex/learn/best-practices/ |
```
WebFetch("https://developers.openai.com/codex/cli/reference", "Extract documentation about...")
```
### Step 3: Parse and respond
Extract relevant information and answer the user directly.
## Quick Reference
### Installation
```bash
npm install -g @openai/codex # npm
brew install codex # Homebrew
```
### Config file
`~/.codex/config.toml` — primary config (TOML format, supports profiles)
### Key CLI flags
| Flag | Purpose |
|------|---------|
| `-m, --model` | Override model (e.g. `gpt-5.5`) |
| `-a, --ask-for-approval` | `untrusted` / `on-request` / `never` |
| `-s, --sandbox` | `read-only` / `workspace-write` / `danger-full-access` |
| `-i, --image` | Attach image files |
| `-p, --profile` | Load named config profile |
| `--full-auto` | Low-friction auto mode |
| `--search` | Enable web search |
| `--oss` | Use local OSS model (Ollama) |
### Reasoning Effort Levels
`none` | `minimal` | `low` | `medium` | `high` | `xhigh`
### Key paths
| Path | Purpose |
|------|---------|
| `~/.codex/config.toml` | User config |
| `~/.codex/AGENTS.md` | Global agent instructions |
| `AGENTS.md` | Repo-level instructions |
| `.agents/skills/` | Repo skills |
| `$HOME/.agents/skills` | Global skills |
## Fallback
If topic is not covered above:
1. `gh search code "topic" --repo openai/codex`
2. WebSearch for `site:developers.openai.com/codex <topic>`
3. WebFetch `https://developers.openai.com/codex/` for the main index
## Important Reminders
- **Source code is authoritative** for valid values, schemas, and types — prefer repo over docs
- **Docs site is authoritative** for guides, tutorials, and conceptual explanations
- Config is TOML (`config.toml`), not JSON — different from Claude Code
- Some doc URL paths may 404 — if so, try the parent path or use WebSearch
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.