opencli-oneshot

opencli-oneshot is a skill for OpenCode from zxfccmm4/Obsidian-OpenCode-Knowledge. It costs 52 tokens per session (868 once invoked), scanned A, original, MIT.

A short process for creating one OpenCLI command from a specific website URL and goal. It opens the page, finds and tests the relevant web request, then creates and verifies a TypeScript adapter.

In plain words
What is it for?
Use it to create one command for retrieving data from a website, inspect its network calls, test authentication where needed, and write the matching adapter.
Why use it?
It turns a single web task into a repeatable command when the needed site data can be accessed through the page’s requests.

Skill for OpenCode

Written for OpenCode: installed under .opencode/.

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)。.

Good fit Use it to create one command for retrieving data from a website, inspect its network calls, test authentication where needed, and write the matching adapter.

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/zxfccmm4/Obsidian-OpenCode-Knowledge
agentmods
npx agentmods add skills/zxfccmm4/obsidian-opencode-knowledge/opencli-oneshot

Made for: OpenCode.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/zxfccmm4/obsidian-opencode-knowledge/opencli-oneshot"><img src="https://agentmods.dev/badge/skills/zxfccmm4/obsidian-opencode-knowledge/opencli-oneshot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 868 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
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 49
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
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.00052 $0.00868
Opus 5.5 $0.00021 $0.00347
Sonnet 5.5 $0.00010 $0.00174
Haiku 4.5 $0.00005 $0.00087

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

Security

Grade A, and why

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 1mo 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 (browser: false)
vault-template/.opencode/skill/opencli-oneshot/SKILL.md · 112 lines

How it starts

The opening of the file, as written. The whole thing — 112 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。

遇到以下情况立即切换到 explorer:

  • Step 3 验证 fetch 始终拿不到数据
  • 需要 Pinia Store Action 触发 API
  • 同一站点要生成 2 个以上命令

输入

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

流程

Step 1: 打开页面 + 抓包

opencli browser open <目标 URL>
opencli browser wait time 3
opencli browser network

Step 2: 锁定一个接口

opencli browser network --detail <N>     # 查看第 N 条请求的完整响应体

Step 3: 验证接口能复现

# Tier 2 (Cookie)
opencli browser eval "fetch('/api/endpoint', { credentials: 'include' }).then(r => r.json())"

# Tier 2.5 (localStorage Bearer)
opencli browser eval "(async () => {
  const token = localStorage.getItem('access_token');
  const res = await fetch('https://api.example.com/endpoint', {
    headers: { 'Authorization': 'Bearer ' + token },
    credentials: 'include'
  });
  return res.json();
})()"

Step 4: 套模板,生成 adapter

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

cli({
  site: 'mysite',
  name: 'mycommand',
  description: '一句话描述',
  domain: 'www.example.com',
  strategy: Strategy.COOKIE,
  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 || '',
    }));
  },
});

认证速查

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

Read the full file on GitHub · 112 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. 1mo ago First seen · 112 lines · 52 tokens per session scan A 8408c657ed0b

Subscribe to this mod's changes

opencli-oneshot is a skill published in the GitHub repository zxfccmm4/Obsidian-OpenCode-Knowledge (303 stars, last pushed 1mo ago), licensed MIT. It adds 52 tokens to every session and 868 once invoked, about $0.0002 per session on Opus 5.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

qiaomu-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.

joeseesun/qiaomu-opencli-skills · 55 tokens

qiaomu-opencli-explorer

A guide for creating OpenCLI adapters for websites. An adapter is code that lets a command-line tool communicate with a particular website’s interfaces and data.

joeseesun/qiaomu-opencli-skills · 83 tokens

qiaomu-opencli-usage

Use when running OpenCLI commands to interact with websites (Bilibili, Twitter, Reddit, Xiaohongshu, etc.), desktop apps (Cursor, Notion), or public APIs (HackerNews, arXiv). Covers installation, command reference, and output formats for 79+ adapters.

joeseesun/qiaomu-opencli-skills · 69 tokens

qry-search

Web search using qry, a terminal-native agent-first search CLI that routes queries through pluggable adapters and always outputs JSON. Use this skill whenever you need to search the web for documentation, APIs, error messages, package info, changelogs, or any current information. Triggers on "search the web", "look…

justEstif/qry · 110 tokens

opencli-autofix

Automatically fix broken OpenCLI adapters when commands fail. Load this skill when an opencli command fails — it guides you through collecting a trace artifact, patching the adapter, retrying, and filing an upstream GitHub issue after a verified fix. Works with any AI agent.

jackwener/OpenCLI · 61 tokens

opencli-browser

Drive Chrome with OpenCLI to inspect pages, interact with logged-in sites, capture API evidence, and manage native tabs, groups and windows. For reusable adapters, see opencli-adapter-author.

jackwener/OpenCLI · 43 tokens