skills/codex/SKILL.md
One-shot headless OpenAI Codex CLI calls for background/admin AI tasks — summaries, classification, extraction, admin glue. The default engine for anything that runs AI constantly in the background (daemon-driven, per-event), because it bills the flat ChatGPT subscription instead of Claude usage or per-token API spend, and it keeps working while Claude is rate-limited. NEVER for coding — coding stays Claude. Use when a skill or daemon needs a cheap always-on AI call, when the user says "use codex", "ask codex", "codex as backup", or when building a background summarizer/classifier into a listener or loop. Reads auth from ~/.codex/auth.json (ChatGPT account, no API key).
npx skillsauth add RonanCodes/ronan-skills codexInstall 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.
One-shot, headless calls to the OpenAI Codex CLI. This is the canonical implementation of canon/codex-for-background-ai.md: always-on background AI defaults to Codex; Codex never codes.
Do NOT use it to write, review, or refactor code, or as a judge of whether Claude is back after a rate limit (that stays deterministic — see /ro:linear-listen § "Usage-limit recovery").
From shell (or another skill):
bash ~/Dev/ronan-skills/skills/codex/scripts/ask.sh "Summarize in one sentence: <text>"
# stdout = the reply · exit 3 = codex unavailable/failed → fall back
From Python (what linear-listen does):
import importlib.util
p = Path("~/Dev/ronan-skills/skills/codex/scripts/codex_ask.py").expanduser()
spec = importlib.util.spec_from_file_location("codex_ask", p)
codex_ask = importlib.util.module_from_spec(spec); spec.loader.exec_module(codex_ask)
reply = codex_ask.ask(prompt) # str, or None → fall back
ask() never raises: missing binary, timeout, non-zero exit, or empty reply all return None, so the caller's fallback chain stays trivial.
codex exec --skip-git-repo-check -s read-only -o <tmpfile> [-m <model>] "<prompt>"
-s read-only — background tasks get no write/exec sandbox.-o (--output-last-message) — the reply is read from the file; stdout is a banner, never parsed.cwd=$HOME so no repo context is loaded.CODEX_ASK_TIMEOUT or --timeout); a trivial prompt answers in ~7s.--model only when needed.Codex CLI → OpenAI API (OPENAI_API_KEY) → deterministic heuristic. Every layer optional, the last one never fails. First consumer: skills/linear-listen/scripts/server.py summarize_run.
The Codex CLI caches the ChatGPT-account token in ~/.codex/auth.json (or the OS keyring) after a one-time interactive codex login. No env key. If auth is missing the call fails → None → the fallback chain handles it; run codex login in a terminal to fix.
Note: ChatGPT-account Codex only supports the models the plan exposes (e.g. gpt-5.3-codex is rejected; the default works). Don't hardcode a model.
canon/codex-for-background-ai.md — the rule and rationale/ro:linear-listen — first consumer (run-outcome summaries) + the deterministic rate-limit recovery this backs upllm-wiki-skill-lab/wiki/patterns/codex-for-background-ai.mdtesting
--- name: linear-pipeline description: The Fable orchestrator for a single dispatched Linear ticket. Holds almost no context itself; it receives `--issue <ID> --detached`, decides the stage sequence, and fans out a sub-agent per stage, passing forward only each stage's artifact (never re-derived, never inlined into its own context). Step zero, before any planning or stage routing, is a boundary triage against `canon/security-boundary.md` (#199): a match tags Ronan Connolly and stops the run, no
development
--- name: in-your-face description: Capture a chat-only answer into a durable artifact (markdown + HTML, PDF when cheap) and launch it automatically so the user cannot miss it. Use when user says "in your face", "don't let me lose this", "save that answer", "make that durable", or right after answering a substantive side question (a recipe, comparison, how-to, or generated prompt) that would otherwise die with the context. category: workflow argument-hint: [--no-open] [--vault <short>] [hint of
research
Turn a warranty rejection, repair quote, or RMA email into a cited decision brief — legal read (NL/EU consumer law), is the part user-serviceable, live part and new-unit prices, repair-vs-DIY-vs-new economics, before-you-send-it checklist, deadlines. Use when the user pastes or screenshots a repair quote, warranty rejection, "not covered" email, onderzoekskosten fee, or asks "should I repair or replace this".
development
Interact with the BoardGameGeek XML API2. Search games, fetch details with ratings and weight, pull a user's collection or wishlist, download box art from the CDN. Covers the 2026 auth reality (registered application token, Bearer header, 401 without one, approval takes a week or more) plus a browser fallback via the GEEK.geekitemPreload JSON while approval is pending. Reads BGG_XML_API_TOKEN from ~/.claude/.env. Triggers on "boardgamegeek", "bgg", "fetch my BGG collection", "look up a board game", "bgg search", "download board game images".