qiaomu-opencli-oneshot

qiaomu-opencli-oneshot is a skill for Claude Code, Codex from joeseesun/qiaomu-opencli-skills. It costs 55 tokens per session (1,756 once invoked), scanned A, original, MIT.

A short workflow for turning one web page and a goal into a tested command-line command. It opens the page, finds the data request, writes a TypeScript adapter, and checks that it works.

In plain words
What is it for?
Use it to create a command that retrieves information from a particular URL, including pages that require browser cookies or request headers.
Why use it?
It avoids manually guessing how a website gets its data or repeatedly testing incomplete commands. It is meant for one specific task, not mapping an entire website.

Skill for Claude CodeCodex

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is 完整探索式开发请看 [opencli-explorer skill](../opencli-explorer/SKILL.md)。.

not rated 985repo +1 5mo ago A scan Socket: passSnyk: failSkillSpector: pass 55 tokens original MIT

Good fit Use it to create a command that retrieves information from a particular URL, including pages that require browser cookies or request headers.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/joeseesun/qiaomu-opencli-skills
agentmods
npx agentmods add skills/joeseesun/qiaomu-opencli-skills/qiaomu-opencli-oneshot

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 qiaomu-opencli-oneshot

README.md
[![agentmods](https://agentmods.dev/badge/skills/joeseesun/qiaomu-opencli-skills/qiaomu-opencli-oneshot/github.svg)](https://agentmods.dev/skills/joeseesun/qiaomu-opencli-skills/qiaomu-opencli-oneshot)
Your own site
<a href="https://agentmods.dev/skills/joeseesun/qiaomu-opencli-skills/qiaomu-opencli-oneshot"><img src="https://agentmods.dev/badge/skills/joeseesun/qiaomu-opencli-skills/qiaomu-opencli-oneshot/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 qiaomu-opencli-oneshot

Your own site · 80×15
<a href="https://agentmods.dev/skills/joeseesun/qiaomu-opencli-skills/qiaomu-opencli-oneshot"><img src="https://agentmods.dev/badge/skills/joeseesun/qiaomu-opencli-skills/qiaomu-opencli-oneshot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,756 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 9 Apr 2026
  • Snyk fail 9 Apr 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00055 $0.01756
Opus 5 $0.00028 $0.00878
Sonnet 5 $0.00011 $0.00351
Haiku 4.5 $0.00006 $0.00176

Measured 12d ago against content hash 47a220f52fcd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

qiaomu-opencli-oneshot scanned grade A with 1 finding 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 12d 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.

Makes network callslowCapability

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

fetch(url) 直接能拿到? → Tier 1: public (TS pipeline, browser: false)
qiaomu-opencli-oneshot/SKILL.md · 223 lines

How it starts

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

CLI-ONESHOT — 单点快速 CLI 生成

给一个 URL + 一句话描述,4 步生成一个 CLI 命令。 完整探索式开发请看 opencli-explorer skill


输入

项目 示例
URL https://x.com/jakevin7/lists
Goal 获取我的 Twitter Lists

流程

Step 1: 打开页面 + 抓包

1. browser_navigate → 打开目标 URL
2. 等待 3-5 秒(让页面加载完、API 请求触发)
3. browser_network_requests → 筛选 JSON API

关键:只关注返回 application/json 的请求,忽略静态资源。 如果没有自动触发 API,手动点击目标按钮/标签再抓一次。

Step 2: 锁定一个接口

从抓包结果中找到那个目标 API。看这几个字段:

字段 关注什么
URL API 路径 pattern(如 /i/api/graphql/xxx/ListsManagePinTimeline
Method GET / POST
Headers 有 Cookie? Bearer? CSRF? 自定义签名?
Response 数据在哪个路径(如 data.list.lists

Step 3: 验证接口能复现

browser_evaluate 中用 fetch 复现请求:

// Tier 2 (Cookie): 大多数情况
fetch('/api/endpoint', { credentials: 'include' }).then(r => r.json())

// Tier 3 (Header): 如 Twitter 需要额外 header
const ct0 = document.cookie.match(/ct0=([^;]+)/)?.[1];
fetch('/api/endpoint', {
  headers: { 'Authorization': 'Bearer ...', 'X-Csrf-Token': ct0 },
  credentials: 'include'
}).then(r => r.json())

如果 fetch 能拿到数据 → 用 TS adapter(cli() pipeline 或 func())。 如果 fetch 拿不到(签名/风控)→ 用 intercept 策略(TS func() + installInterceptor)。

Step 4: 套模板,生成 adapter

根据 Step 3 判定的策略,选一个模板生成文件。


认证速查

fetch(url) 直接能拿到?              → Tier 1: public   (TS pipeline, browser: false)
fetch(url, {credentials:'include'})? → Tier 2: cookie   (TS pipeline 或 func())
加 Bearer/CSRF header 后拿到?        → Tier 3: header   (TS func())
都不行,但页面自己能请求成功?          → Tier 4: intercept (TS func(), installInterceptor)

模板

TS — Cookie/Public(最简,func() 模式)

// clis/<site>/<name>.ts
import { cli, Strategy } from '@jackwener/opencli/registry';

cli({
  site: 'mysite',
  name: 'mycommand',
  description: '一句话描述',
  domain: 'www.example.com',
  strategy: Strategy.COOKIE,   // 或 Strategy.PUBLIC (加 browser: false)
  browser: true,
  args: [
    { name: 'limit', type: 'int', default: 20 },
  ],
  columns: ['rank', 'title', 'value'],
  func: async (page, kwargs) => {
    await page.goto('https://www.example.com/target-page');
    const data = await page.evaluate(`(async () => {
      const res = await fetch('/api/target', { credentials: 'include' });
      const d = await res.json();
      return (d.data?.items || []).map(item => ({
        title: item.title,
        value: item.value,
      }));
    })()`);
    return (data as any[]).slice(0, kwargs.limit).map((item, i) => ({
      rank: i + 1,
      title: item.title || '',
      value: item.value || '',
    }));
  },
});

Read the full file on GitHub · 223 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. 12d ago First seen · 223 lines · 55 tokens per session scan A 47a220f52fcd

Subscribe to this mod's changes

qiaomu-opencli-oneshot is a skill published in the GitHub repository joeseesun/qiaomu-opencli-skills (985 stars, last pushed 5mo ago), licensed MIT. It adds 55 tokens to every session and 1,756 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

opencli-oneshot

Use when quickly generating a single OpenCLI command from a specific URL and goal description. 4-step process — open page, capture API, write TS adapter, test. For full site exploration, use opencli-explorer instead.

zxfccmm4/Obsidian-OpenCode-Knowledge · 52 tokens

opencli-explorer

Use when creating a new OpenCLI adapter from scratch, adding support for a new website or platform, exploring a site's API endpoints via browser DevTools, or when a user asks to automatically generate a CLI for a website. Covers automated generation, API discovery workflow, authentication strategy selection, TS…

zxfccmm4/Obsidian-OpenCode-Knowledge · 68 tokens

agentcookie-install

Install agentcookie on a Mac source and a Linux or Mac sink so Chrome cookies sync continuously over Tailscale. Use when the user says "install agentcookie", "set up cookie sync", "share my Chrome sessions with my agent box", or "make my agent log in as me".

mvanhorn/agentcookie · 63 tokens

tauri-mcp-cli

Use the Tauri MCP CLI to start and recover driver sessions, automate Tauri webviews, capture UI state, debug IPC, and work with mobile or remote devices. Use whenever an agent needs to operate a Tauri v2 app from terminal commands.

hypothesi/mcp-server-tauri · 57 tokens

browser-automation

A browser-automation workflow that detects the terminal environment and chooses a browser control tool. It supports opening pages, taking snapshots, clicking, filling fields, and other checks.

Insajin/autopus-adk · 34 tokens

playwright-cli

Skill "playwright-cli" from Insajin/autopus-adk, covering browser automation with playwright-cli, quick start, commands, core and navigation.

Insajin/autopus-adk · 32 tokens