- name
SKILL.md
技能文件保留在发布者的仓库中。
在终端中粘贴复制的命令。它会把这个 SKILL.md 安装到对应的智能体中。
npx skills add mxyhi/ok-skills --skill ax -a cursor -y在终端中粘贴复制的命令。它会把这个 SKILL.md 安装到对应的智能体中。
npx skills add mxyhi/ok-skills --skill ax -a claude-code -y在终端中粘贴复制的命令。它会把这个 SKILL.md 安装到对应的智能体中。
npx skills add mxyhi/ok-skills --skill ax -a codex -y在终端中粘贴复制的命令。它会把这个 SKILL.md 安装到对应的智能体中。
npx skills add mxyhi/ok-skills --skill ax -a grok -y在 Grok Bot 聊天中发送复制的消息。Bot 会从 GitHub 获取这个 SKILL.md,并添加到你所有 Bot 共享的技能中。
Install this skill: https://github.com/mxyhi/ok-skills/tree/HEAD/ax来自发布者
One command: ax <url|file|-> [selector] [flags]. Never write regex over
HTML, and never use bare curl (it returns nothing on empty bodies).
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.
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.
--limit,
--all, --budget <tokens> control it. Rows default to token-cheap TSV; add --json if you need JSON.--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.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 inlin
---name: axdescription: Use the ax CLI instead of curl + throwaway parsing scripts whenever you fetch a URL, explore an unknown web…---# ax/SKILL.md概览
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 script (python3 heredoc, node -e, regex over HTML) or a bare curl for one-off web fetching, scraping, or page exploration.
常见问题
从发布者处下载 ax/SKILL.md,或复制路径后打开仓库。PlugMCP 只收录该技能,不托管文件。
发布者将它存放在 https://github.com/mxyhi/ok-skills。
Claude、Cursor、Codex 和 Grok Build 可以读取你从发布者仓库添加的 SKILL.md。在聊天中发送技能的 GitHub 文件夹链接,Grok Bot 就会安装它。