skills/codex-sdk/SKILL.md
Architect-level guidance, workflows, and scripts for building agentic coding systems with OpenAI Codex. Use for Codex SDK (@openai/codex-sdk) threads + streaming JSONL events; Codex CLI automation (codex exec, output schema, JSONL, resume); MCP server usage (codex mcp-server) and dynamic tool integration; multi-agent orchestration with OpenAI Agents SDK (handoffs, gating, tracing); durable state, caching, and memory using SQLite; safe-by-default sandbox/approval patterns and execpolicy rules.
npx skillsauth add bjornmelin/dev-skills codex-sdkInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Build reliable, auditable, multi-step coding workflows that scale from a single run to multi-agent orchestration.
For multi-hour work, keep intent durable across compaction/restarts using an ExecPlan:
references/execplans.md.agent/PLANS.md (use scripts/init_agent_workspace.py to bootstrap a repo)assets/templates/execplan.md (or generate a file with scripts/new_execplan.py)codex exec (references/codex-cli-exec.md)@openai/codex-sdk (references/codex-sdk-typescript.md)codex mcp-server and orchestrate via OpenAI Agents SDK (references/mcp-and-agents-sdk.md)references/state-memory-sqlite.md)SQLite is the simplest reliable substrate for:
codex exec --json event as an immutable audit logthreadId so runs can resume deterministicallypython3 scripts/codex_jsonl_to_sqlite.py --db codex-runs.sqlite --initcodex exec --json "<prompt>" | python3 scripts/codex_jsonl_to_sqlite.py --db codex-runs.sqlite --run-label "ci-autofix"python3 scripts/codex_sqlite_report.py --db codex-runs.sqlite --latestUse:
Details: references/mcp-and-agents-sdk.md
Prefer:
sandbox: read-only, approval-policy: neversandbox: workspace-write, approval-policy: on-request / on-failureexecpolicy rules (references/safety-and-execpolicy.md)references/codex-sdk-typescript.md – SDK patterns (threads, streaming, schemas)references/codex-cli-exec.md – CLI patterns (JSONL, schema files, resume)references/mcp-and-agents-sdk.md – Codex as MCP server + multi-agent orchestrationreferences/agents-sdk-consistent-workflows.md – gated handoffs + traces with Codex MCP + Agents SDKreferences/execplans.md – ExecPlans for long-running work across compactionreferences/state-memory-sqlite.md – SQLite schema + memory/caching patternsreferences/safety-and-execpolicy.md – sandboxing, approvals, prompt-injection defensesreferences/codex-config-knobs.md – config keys and feature flags that matterreferences/orchestration-patterns.md – planner/executor/verifier and orchestrator/worker patternsreferences/rag-and-memory.md – SQLite-first shared memory and RAG guidancereferences/context-personalization.md – state + memory notes personalization patterns (Agents SDK)scripts/codex_jsonl_to_sqlite.py – ingest Codex JSONL into SQLitescripts/codex_sqlite_report.py – summarize runs from SQLitescripts/init_agent_workspace.py – create .agent/AGENTS.md + .agent/PLANS.md from templatesscripts/new_execplan.py – generate execplans/execplan-*.md from the ExecPlan templateassets/templates/ – copy/paste templates (ExecPlan, prompts, schemas)assets/templates/agents-sdk/ – Agents SDK starter snippets (MCP stdio, sessions, personalization)tools
Explicit-only Kimi Code CLI frontend/UI advisor for UI audits, redesigns, components, screenshots, before/after comparison, layout, styling, accessibility, responsive behavior, and visual polish. Use only when the user explicitly invokes `$kimi-ui-advisor` and wants Codex to ask Kimi for structured UI suggestions, then review, apply, and verify them in the repo.
development
Run a Codex-only structured code review closeout for local, branch, or commit diffs. Use when the user asks for autoreview, Codex review, structured closeout review, final review before commit/ship, or review after non-trivial code edits.
tools
Use this skill for Firecrawl CLI web work: web search, URL scraping, site mapping, crawling, structured extraction, page interaction, monitoring changes, offline site download via x download, and parsing local documents such as PDF, DOCX, XLSX, HTML, DOC, ODT, or RTF. Trigger for requests to search the web, look up current info, fetch/read/scrape a URL, extract website data, crawl docs, click/fill/login/paginate a page, monitor page changes, save a site offline, or parse a document. Do not trigger for generic local file reads/edits, git/deploy/code tasks, or Firecrawl app integration work.
tools
Triage unresolved Sentry issues into ranked groups, GitHub issue plans, branches, subspawn worktree assignments, PRs, and closeout loops using the sentry CLI, GitHub CLI, and local verification. Use when asked to prioritize Sentry backlogs, group production issues, create GitHub issues or PRs from Sentry evidence, or parallelize Sentry fixes.