askcodex

askcodex is a skill for Claude Code from JairoTorregrosa/jaiskills. It costs 173 tokens per session (1,282 once invoked), scanned A, original, MIT.

A command-line interface for asking OpenAI models questions, generating or editing images, viewing available models, and checking account usage.

In plain words
What is it for?
Use it to complete text tasks, create or edit images, list models, check usage and plan details, verify authentication, refresh credentials, or call another supported endpoint.
Why use it?
It gives terminal-based workflows a direct way to use these model operations and inspect authentication or quota status.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex.

Part of the jaiskills plugin — 12 skills, 13 commands, 4 agents, 2 hooks, 1 MCP server shipped together

Good fit Use it to complete text tasks, create or edit images, list models, check usage and plan details, verify authentication, refresh credentials, or call another supported endpoint.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jairotorregrosa/jaiskills/askcodex
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add JairoTorregrosa/jaiskills --skill askcodex
Clone the repo
git clone --depth 1 https://github.com/JairoTorregrosa/jaiskills

Made for: Claude Code.

Or install jaiskills, the plugin that ships this one along with the rest of its 12 skills, 13 commands, 4 agents, 2 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for askcodex

README.md
[![agentmods](https://agentmods.dev/badge/skills/jairotorregrosa/jaiskills/askcodex.svg)](https://agentmods.dev/skills/jairotorregrosa/jaiskills/askcodex)
Your own site
<a href="https://agentmods.dev/skills/jairotorregrosa/jaiskills/askcodex"><img src="https://agentmods.dev/badge/skills/jairotorregrosa/jaiskills/askcodex.svg" alt="Measured on agentmods" height="20"></a>
Per session 173 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,282 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00173 $0.01282
Opus 5 $0.00086 $0.00641
Sonnet 5 $0.00035 $0.00256
Haiku 4.5 $0.00017 $0.00128

Measured 8d ago against content hash 21b03c6e3fb3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

askcodex scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/openai/askcodex/SKILL.md · 82 lines

How it starts

The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.

askcodex — OpenAI models as a CLI

The binary lives at ~/.local/bin/askcodex. If it is missing, clone https://github.com/JairoTorregrosa/askcodex and run ./install.sh. It authenticates with the credentials codex login already stored — if they are missing, askcodex says so; tell the user to run codex login.

Intent → command

The user wants Run
ask GPT-5 / complete text askcodex ask "prompt" [--model <slug>] [--effort low|medium|high|xhigh|max|ultra]
make an image of X askcodex image create "X" -o /tmp/askcodex/x.png
edit / restyle this image askcodex image edit "change ..." -i ref.png -o /tmp/askcodex/x-edited.png
which models are available askcodex models
how much quota / rate-limited? askcodex usage
who am I / which plan askcodex whoami
is the auth still valid askcodex auth status --no-refresh
refresh the auth token askcodex auth refresh
any other backend endpoint askcodex raw GET /codex/... [--body '{…}'] [--stream]

Two global flags, accepted anywhere on the command line, including after the deepest subcommand:

  • --json — exactly one JSON document on stdout, nothing else.
  • --no-refresh — the command will not rewrite the auth file. Use it for read-only checks.

Prompting

Before writing a prompt — picking a model, choosing a reasoning effort, or phrasing an image prompt — read references/prompting.md. It has the per-model notes (which slug for which job), per-use-case recipes (one-shot Q&A, codegen, extraction, long context, creative), an effort decision table, and the image-prompt structure that works.

Outputs go to /tmp/askcodex/

Save every artifact under /tmp/askcodex/ (mkdir -p /tmp/askcodex first) instead of the working directory, so large outputs never flood the conversation and stay recoverable by path:

  • Images: -o /tmp/askcodex/<descriptive-name>.png, then report the path (and send the file if the user should see it).
  • Answers you expect to be long: askcodex ask "..." --json > /tmp/askcodex/<name>.json — read back just the parts you need (jq -r .text). Short answers can stream to stdout normally.
  • Raw endpoint dumps: askcodex raw ... > /tmp/askcodex/<name>.json.

Read the full file on GitHub · 82 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 82 lines · 173 tokens per session scan A 21b03c6e3fb3

Subscribe to this mod's changes

askcodex is a skill published in the GitHub repository JairoTorregrosa/jaiskills (5 stars, last pushed 7d ago), licensed MIT. It adds 173 tokens to every session and 1,282 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

data-catchall

Routes data requests to the correct specialist based on task type: pipelines, analytics, machine learning, or quality assurance. Covers ETL, warehousing, dashboards, ML models, and test automation. Triggers: data pipeline, etl, data warehouse, analytics, dashboard, metrics, kpi, testing, test automation, qa, quality…

Chipagosfinest/enterprise-team · 95 tokens

foundry-config-setup

Resolve missing setup caused by a hardcoded Foundry project endpoint or model in a sample. Use when a sample fails because it uses a placeholder/hardcoded projectendpoint (for example "https://your-project.services.ai.azure.com") or a hardcoded model instead of reading them from the environment.

microsoft/agent-framework · 65 tokens

voice-extractor

Capture a user's real writing voice from 5-20 prior samples, store a local voice.yaml fingerprint, and enforce it on newsjack drafts so AI tells disappear. Measures voice with named stylometry lenses (Burrows's Delta function-word vector, MATTR lexical diversity, sentence-length burstiness, Biber Dimension-1 register…

elvisun/newsjack · 90 tokens

coverage-tracker

Run a Google Alerts-style keyword coverage tracker. Uses news-search for recent keyword queries, lets the LLM dedupe and classify real features versus junk, stores decisions in SQLite, and alerts only on new real coverage.

elvisun/newsjack · 47 tokens

prompt-set-qa

Gate a prompt universe for schema and provenance completeness, target or campaign contamination, evidence entailment, naturalness, one-concept clarity, architecture consistency, aided status, answer leakage, and semantic duplicates. Use after realistic prompt generation and before human panel selection.

elvisun/newsjack · 56 tokens

realistic-prompt-generation

Generate natural, controlled prompt variants from a target-blind design brief and prompt architecture while preserving approved jobs, acts, journeys, constraints, roles, locales, proximity bands, and evidence language. Use after architecture design and before contamination or semantic QA.

elvisun/newsjack · 55 tokens