ax

ax is a skill for Claude Code, Codex from mxyhi/ok-skills. It costs 73 tokens per session (936 once invoked), scanned D, a copy of ax, Apache-2.0.

A command-line tool for fetching web pages, exploring their structure, and extracting selected data. It is an alternative to using curl together with temporary scripts for one-off web requests.

In plain words
What is it for?
Use it to fetch URLs or local files, find page elements, count or extract records, read tables, and convert web content into text or Markdown.
Why use it?
It reduces the need to write fragile HTML-parsing code and helps inspect unfamiliar pages in a consistent way.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to fetch URLs or local files, find page elements, count or extract records, read tables, and convert web content into text or Markdown.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mxyhi/ok-skills/ax
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 mxyhi/ok-skills --skill ax
Clone the repo
git clone --depth 1 https://github.com/mxyhi/ok-skills

Made for: Claude Code, Codex.

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 ax

README.md
[![agentmods](https://agentmods.dev/badge/skills/mxyhi/ok-skills/ax/github.svg)](https://agentmods.dev/skills/mxyhi/ok-skills/ax)
Your own site
<a href="https://agentmods.dev/skills/mxyhi/ok-skills/ax"><img src="https://agentmods.dev/badge/skills/mxyhi/ok-skills/ax/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ax

Your own site · 80×15
<a href="https://agentmods.dev/skills/mxyhi/ok-skills/ax"><img src="https://agentmods.dev/badge/skills/mxyhi/ok-skills/ax.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 936 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.00073 $0.00936
Opus 5.5 $0.00029 $0.00374
Sonnet 5.5 $0.00015 $0.00187
Haiku 4.5 $0.00007 $0.00094

Measured 3mo ago against content hash 4acbbc5574e3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade D, and why

ax scanned grade D with 3 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 3mo 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.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

# curl reflexes work: -u -I -o -k -m -f --data-raw (and -L/-i/-s are no-ops)

Cloud metadata endpointhighServer-side request forgery

One request to 169.254.169.254 can return temporary IAM credentials.

- Do not touch cloud metadata endpoints (169.254.169.254, metadata.google.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

description: Use the ax CLI instead of curl + throwaway parsing scripts whenever you fetch a URL, explore an unknown web page, or extract structured data from HTML. Trigger whenever you are about to write an inline scrip
Origin

This is a copy

100% identical to ax — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

ax/SKILL.md · 67 lines

How it starts

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

ax — the AI-era curl: fetch, discover, extract

One command: ax <url|file|-> [selector] [flags]. Never write regex over HTML, and never use bare curl (it returns nothing on empty bodies).

Cheatsheet

ax https://api.site.example/users                    # {status, ok, url, redirected, ms, headers, body}
ax https://api.site.example/users -H 'authorization: Bearer x' -X POST -d '{"a":1}'
ax https://api.site.example/users -d @payload.json  # @file reads it, implies POST; --data-raw = literal @string
# curl reflexes work: -u -I -o -k -m -f --data-raw (and -L/-i/-s are no-ops)
ax https://site.example --outline                    # discover: repeating structures
ax https://site.example --locate 'some text'         # discover: which selector holds this
ax https://site.example '.card' --count              # confirm a hypothesis
ax https://site.example '.card' --row 'title=a, href=a@href, id=@data-id'
ax https://site.example '.private' -H 'authorization: Bearer x' --text
ax https://site.example 'table' --table --where 'Stars >= 30000'
ax https://site.example 'table' --table --where '`Col With Spaces` ~ /x/'
ax https://docs.site.example/guide --md --budget 800 # read docs as markdown

The workflow: fetch/--outline once → --locate/--count to confirm → ONE --row/--table call. Repeat fetches of the same URL are cached ~2min, so probing is free (--fresh to bypass). Parse requests with -H or -u bypass the cache automatically.

Speed discipline

Aim for ≤3 tool calls: one batched look (ax URL --outline; ax URL '.guess' --count), one extraction call, then answer. Turns cost more than commands — semicolons are free. Every --row/--table run prints N rows extracted + empty-field counts on stderr — that IS the verification; do not re-probe. Answer with the data, concisely — no methodology narration.

Output rules

  • Default cap 50 results; stderr announces anything hidden. --limit, --all, --budget <tokens> control it. Rows default to token-cheap TSV; add --json if you need JSON.
  • For automated continuation, use --json-envelope. Read data; when meta.state is more, rerun the same command with --offset <meta.next_offset>. Continue only while it is more; stop on complete or past_end; do not restart from zero or increase the budget.
  • Errors are one stderr line with a hint — fix the flag, not the approach.
  • If ax says "likely a JS-rendered SPA", stop probing selectors — switch to a browser tool; the content is not in the raw HTML.
  • For plain text files and non-web work, use your usual tools — ax is for the web.

Read the full file on GitHub · 67 lines

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. 3mo ago First seen · 67 lines · 73 tokens per session scan D 4acbbc5574e3

Subscribe to this mod's changes

ax is a skill published in the GitHub repository mxyhi/ok-skills (518 stars, last pushed 9d ago), licensed Apache-2.0. It adds 73 tokens to every session and 936 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it D with 3 findings (sends data to an external url, cloud metadata endpoint, makes network calls). It is 100% identical to ax, differing in 0 lines, and is treated as a copy.

Related

ax compared with skills from other repositories

ax next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
axmxyhi/ok-skillsSkill5189d agoApache-2.0D73Claude Code, Codex
browser-testing-with-devtoolsaddyosmani/agent-skillsSkill121k6d agoMITB68Claude Code
awesome-content-publisherkhasky/awesome-agent-skillsSkill452d agoMITA47Claude Code
browser_cdpagentscope-ai/skillsSkill1342mo agoApache-2.0A84Claude Code, Codex
browser_cdpagentscope-ai/skillsSkill1342mo agoApache-2.0A97Claude Code, Codex
browser_visibleagentscope-ai/skillsSkill1342mo agoApache-2.0A96Claude Code, Codex
browser_visibleagentscope-ai/skillsSkill1342mo agoApache-2.0A64Claude Code, Codex