/jaiskills:askcodexfrom jaiskills — Jairo's personal agent skills
Invokes OpenAI models via askcodex CLI for text, code, image generation/editing, audio transcription, and model/usage queries. Useful for one-shot tasks like drafting, summarizing, or classifying.
Ships in jaiskills — Jairo's personal agent skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You have the askcodex CLI. It sends one request to an OpenAI model through the user's
ChatGPT/Codex subscription and returns a text answer, an image, or a transcript. Turn the user's
request into a complete brief, run one focused call, check the result against the brief, and hand
the user the useful output with its saved path.
Canonical copy: skill/ in https://github.com/JairoTorregrosa/askcodex (this is a mirror; change
it there, then re-sync). Local delta: the description's not-for clause points to second-opinion.
askcodex --version once per session. 0.2.x
has no --schema, --verbosity or --background, prints the ~700 KB raw catalog inside
models --json, and gives errors without error.backend; 0.1.x also hides the GPT-6 models.
If it is older, tell the user to update instead of working around it: in an askcodex checkout,
git pull && ./install.sh; without one, download the latest release binary from
https://github.com/JairoTorregrosa/askcodex/releases (verify SHA256SUMS), or clone it and run
./install.sh (needs Rust 1.88+).ask sends only the prompt and optional --instructions:
the model gets no tools, files, browsing, repository, or earlier conversation. A file path in a
prompt is just text; paste the contents instead.codex login saved to ~/.codex/auth.json; it reads no API key.
Never print credentials.askcodex models --no-refresh lists what the account can use, with each model's description,
Codex's default effort and any retirement date. On 2026-10-02:
gpt-6.1-sol, gpt-6-astra, gpt-6-sol, gpt-6-luna, gpt-5.6-sol, gpt-5.6-terra,
gpt-5.6-luna, gpt-daybreak-blue-latest, gpt-5.5 (retires 2026-10-14), and the hidden
gpt-reserve and codex-auto-review. All take text; ask sends text only. OpenAI ships models
every few days: trust the live catalog over this list.ask defaults to gpt-6.1-sol at medium. The catalog lists it for every plan; if a plan
refuses it with a model-availability error (OpenAI's Codex docs have offered Free and Go only
Luna), pass --model gpt-6-luna. askcodex never switches models on its own.--effort takes low, medium, high, xhigh, max, or none. The catalog also lists
ultra, which is Codex's multi-agent mode; the backend rejects it. A level a model does not take
fails with HTTP 400 (none on gpt-6-astra and gpt-6.1-sol; gpt-6-sol and gpt-6-luna
accept it although the catalog omits it).--verbosity low|medium|high sets answer length and detail. Unset, the backend answers at
medium; Codex itself asks for low. On the same prompt low used 240 output tokens and high
513.--schema FILE makes the backend enforce a JSON Schema in strict mode, even against a prompt that
asks for prose. Strict rules: every property in required, "additionalProperties": false on
every object, and an optional value adds "null" to its own type (["string","null"],
["integer","null"]; an enum must list null too). A schema that breaks them fails before
generation with error.backend.code: "invalid_json_schema" and a message naming the key. With
--json, .result.json is the parsed answer. askcodex re-checks its structure against the
schema, so an answer that does not parse or does not match is a response_invalid failure, never
a result.image create and image edit return one PNG per call of about 1.57 megapixels; the prompt sets
the aspect ratio. --background transparent or opaque forces the background (both honored);
unset, the prompt decides. The result reports the file's real width, height and
alpha_channel. There is no model, size, quality, format, or count flag, because the backend
ignores those fields.transcribe takes a WAV file up to 25 MiB and has no model or language selector.Pick the command and read its guide before you write the prompt:
| Result | Command | Read first |
|---|---|---|
| Answer, analysis, writing, code, or review | askcodex ask "prompt" --model <slug> --effort <level> (add --verbosity low for a concise answer) | prompting-text.md and the model's guide below |
| Classification or extraction you will parse | askcodex ask - --schema /tmp/askcodex/<name>.schema.json --json < brief.txt, then read .result.json | Same as above |
| New image | askcodex image create "prompt" -o /tmp/askcodex/<name>-v1.png (add --background transparent for a cutout) | prompting-images.md and model-gpt-image-2.md |
| Image edit from one to five PNG references | askcodex image edit "prompt" -i ref.png -o /tmp/askcodex/<name>-v2.png | Same as a new image |
| Audio transcript | askcodex transcribe recording.wav | transcription.md |
| Which models exist, their default effort, what retires | askcodex models --no-refresh (a short list with descriptions) | Nothing; no prompt is involved |
| Quota, account, auth status | askcodex usage / whoami / auth status, each with --json --no-refresh | Nothing |
For ask, pick the model and read its guide:
| The task | Model | Guide |
|---|---|---|
| Most work: coding, review, debugging, analysis, drafting | gpt-6.1-sol (default) | model-gpt-6.1-sol.md |
| The hardest or most consequential single deliverable | gpt-6-astra | model-gpt-6-astra.md |
| Clear, repeatable extraction, classification, or transformation | gpt-6-luna | model-gpt-6-luna.md |
| Authorized defensive security work | gpt-daybreak-blue-latest | model-gpt-daybreak-blue-latest.md |
| Reproducing a GPT-6 Sol result | gpt-6-sol | model-gpt-6-sol.md |
| Reproducing a GPT-5.6 result | gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna | sol, terra, luna |
Anything on gpt-5.5 | move to gpt-6.1-sol (gpt-6-luna if the plan refuses it) | model-gpt-5.5.md |
prompting.md indexes every guide. Pin --model and --effort
whenever you compare outputs or need to reproduce one.
Write a complete brief: the deliverable, its audience, the constraints, what "done" means, the source material itself, what must stay unchanged, and the output format.
Run one focused request. Create /tmp/askcodex/ first and give every artifact a descriptive
name with a version suffix, so an edit never overwrites a useful result. For a long-running job,
run it in the background or in tmux and save its output to a file.
Inspect the result against the brief. Make the next request about one specific observed problem, and keep the last useful version.
-o /tmp/askcodex/<name>-vN.png. With --json, .result.width,
.result.height and .result.alpha_channel come from the saved file; alpha_channel: true
only says transparency is possible, so look at the image before you call it a cutout.--json > /tmp/askcodex/<name>.json, then
jq -r .result.text /tmp/askcodex/<name>.json. Keep large JSON and image payloads out of the
conversation.--json, --events, and --no-refresh are global flags and work after the subcommand.--json success output is {schema_version:1,command,result}. Read .result. Do not
pass --backend (it adds the raw backend response, ~700 KB for models) unless the user is
debugging the protocol.ask --json gives one final envelope with .result.model, .result.effort,
.result.verbosity, .result.text, .result.usage (possibly null), and .result.json with
--schema. The catalog is at .result.models (slug, description, default_reasoning_level,
upgrade); quota windows are at .result.rate_limit.--events prints newline-delimited JSON: ask sends text_delta events and one final result
event on success; other commands send their result. Check the exit status: partial text is not
success. Do not combine --events with --json.transcribe prints the text, or .result.text with --json.-) and raw --body - accept up to 16 MiB of UTF-8. File inputs must be regular
files (symlinks to them work; devices and FIFOs do not). image edit accepts up to five PNG
references totaling 25 MiB; renaming a JPEG to .png does not convert it, and the CLI checks the
file signature. These caps are client memory limits, not server limits.raw <METHOD> <PATH> --body '<JSON>' is for a backend operation the user explicitly needs. It
accepts only the backend origin, leaves JSON and stream bytes unwrapped, and does not support
--events.reference prints the CLI reference locally, without credentials or network.On a nonzero exit, report the error and fix its cause before another attempt. Do not loop, fabricate a result, or silently switch models.
With --json or --events, a failure prints {schema_version:1,error:{code,message, http_status?,backend?}} on stderr and no success result. Never turn a partial stream into a
completed answer. error.backend carries the backend's own reason, filtered: only code,
type, param, message, detail and error (or incomplete_details.reason), each cut to
400 bytes. When it is absent or reads as cut off, tell the user the full cause could not be read
instead of guessing. Act on it:
| The diagnostic says | Cause | Next step |
|---|---|---|
backend.code: "unsupported_value", backend.param: "reasoning.effort" | The model does not take that effort | Pick a level from the model's guide and retry once |
backend.code: "invalid_json_schema" | The --schema file breaks a strict rule | Fix the key the message names; no answer was generated |
backend.detail: "... not supported when using Codex with a ChatGPT account." | Unknown slug, or a model this plan cannot use | Check askcodex models; ask the user before using another model |
backend.code: "cyber_policy" or another policy code | A safety classifier blocked the request | Report it; do not reword the request to get around it |
backend.incomplete_details | The answer was cut short | Report it; narrow the task or ask for less output, then retry once |
code: "rate_limited" (HTTP 429) | Quota or rate limit | Check askcodex usage --json --no-refresh and tell the user |
Use --no-refresh for read-only account and auth checks. askcodex auth refresh rotates the
credentials and rewrites the auth file; run it only when the user asks for a refresh.
Write into a project directory only when the user asks for that destination.
Tell the user the command you ran, the outcome, the artifact path if one was saved, and any
limitation that affects the result. For ask, add the model and effort. For an image, give the
file's real dimensions and never name a serving model: the backend does not report one. Show an
image when the user needs to judge it visually.
The binary is ~/.local/bin/askcodex. From a checkout, ./install.sh installs it without
touching credentials; --skills agents, --skills claude, or --skills all also installs this
skill, and --check-auth checks credentials without refreshing. See
the repository and the
generated command reference.
agents/openai.yaml (opens in a new tab)references/model-gpt-5.5.md (opens in a new tab)references/model-gpt-5.6-luna.md (opens in a new tab)references/model-gpt-5.6-sol.md (opens in a new tab)references/model-gpt-5.6-terra.md (opens in a new tab)references/model-gpt-6-astra.md (opens in a new tab)references/model-gpt-6-luna.md (opens in a new tab)references/model-gpt-6-sol.md (opens in a new tab)references/model-gpt-6.1-sol.md (opens in a new tab)references/model-gpt-daybreak-blue-latest.md (opens in a new tab)references/model-gpt-image-2.md (opens in a new tab)references/prompting-images.md (opens in a new tab)references/prompting-text.md (opens in a new tab)references/prompting.md (opens in a new tab)references/transcription.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/agent-sdk-wizardBuild a working Claude Agent SDK agent on Mac or Windows: a preflight and credential step (ant CLI login by default, a Console API key, or a Pro/Max token), then 9 illustrated questions, one at a time, then it writes the agent with a full system prompt (and a well-designed skill when one helps) and runs it. Trigger on "crea un agente", "quiero hacer un agente con el SDK", "ayúdame a armar mi agente", "tengo una idea de agente", "nuevo agente paso a paso", "agent sdk wizard", "build an agent with the Claude Agent SDK", "help me create an agent step by step". Each question is one AskUserQuestion call whose options carry an ASCII diagram in `preview`, in plain language for someone who has never seen an agent. Produces a directory with agente.py or agente.ts, credenciales, .env, README, decisiones.md and a real test run. NOT for the raw Messages API, Managed Agents, or the Claude Code CLI itself; say so and stop./managed-agents-wizardWalk a person from an idea to a Claude Managed Agents agent that runs on its own, and stay with them through debugging. Explains each concept at the moment it matters (Agent, Environment, Session, Deployment, vault, memory store, outcome), asks the real decisions as illustrated AskUserQuestion choices, designs the system prompt in Simplified Technical English, finds MCP connectors, sets up credentials without the secret ever reaching the chat, writes the files, applies them with the `ant` CLI, runs a capped test session, and diagnoses failed sessions from their events. Trigger on "crea un agente en Managed Agents", "managed agents wizard", "quiero un agente que corra solo", "agente programado", "agente que revise mis repos cada lunes", "mi sesión se quedó pegada", "por qué falló mi agente", "debug my managed agent session", "explícame la traza", "set up a scheduled Claude agent", "deploy an agent on a cron". Not for the Claude Agent SDK (use agent-sdk-wizard), the raw Messages API, or Claude Code itself.npx claudepluginhub jairotorregrosa/jaiskills --plugin jaiskillsOther plugins' skills for the same job