opencli-adapter-author

opencli-adapter-author is a skill for Claude Code from mxyhi/ok-skills. It costs 38 tokens per session (876 once invoked), scanned A, a copy of opencli-adapter-author, Apache-2.0.

A guide for writing OpenCLI adapters for websites. It takes an agent from investigating how a site's data is exposed through implementing an adapter and verifying it.

In plain words
What is it for?
Creating a new site adapter or adding a command to an existing one, including checking authentication, inspecting requests or page state, coding the adapter, and running verification.
Why use it?
It helps choose an appropriate way to access the site's data and gather evidence before code is written. This reduces guesswork when deciding between a public interface, browser state, network requests, or page controls.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Creating a new site adapter or adding a command to an existing one, including checking authentication, inspecting requests or page state, coding the adapter, and running verification.

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

Made for: Claude Code.

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-adapter-author

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mxyhi/ok-skills/opencli-adapter-author"><img src="https://agentmods.dev/badge/skills/mxyhi/ok-skills/opencli-adapter-author.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 876 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 91% 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.00038 $0.00876
Opus 5.5 $0.00015 $0.00350
Sonnet 5.5 $0.00008 $0.00175
Haiku 4.5 $0.00004 $0.00088

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

Security

Grade A, and why

opencli-adapter-author 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 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.

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.

Origin

This is a copy

91% identical to opencli-adapter-author — 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.

opencli/opencli-adapter-author/SKILL.md · 96 lines

How it starts

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

Adapter authoring

Choose the simplest implementation that reliably performs the requested task. Use an existing site adapter when it already covers the capability:

opencli list search --site example
opencli example search --help -f json

list returns {ok:true,data:{commands,total,nextOffset?}}; use --offset to continue, --limit to adjust page size. Detailed arguments belong in command help.

Evidence available to you

opencli browser open https://example.com --session research
opencli browser state --diagnostics --session research
opencli browser network --session research
opencli browser network --static --session research
opencli browser network --detail RequestKey --session research

Network captures describe observed requests. Static analysis adds candidates from loaded scripts without executing them. Inspect source locations, unresolved expressions and capture provenance. Replay read requests when useful and compare business data with the page. Write commands have real effects, including when run through adapter test; use a suitable test account or a supported dry-run.

Prefer public APIs with a stable contract when available. Browser fetch, captured responses, page state and semantic UI interactions are also valid choices. Select based on the task and observed reliability. Do not guess endpoint parameters or hide failed operations behind empty success results.

JS interface

Adapters are ordinary files under ~/.opencli/clis/<site>/<command>.js or repository clis/<site>/. There is no draft directory, promotion step or required memory file.

opencli adapter init example/search

The existing cli({...}) interface is unchanged: func(args) for Node execution, func(page, args) with browser: true. Reuse neighboring adapters and shared helpers. Return business data; the CLI adds the JSON success envelope. Throw a typed error with an actionable hint for failures. Use access: 'read'|'write' accurately. columns controls human table exports; JSON preserves nested results.

Read the full file on GitHub · 96 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 Changed · -186 lines · -50 tokens per session 3aa9ac7f6a43
  2. 2mo ago Changed c9036fa3200e
  3. 2mo ago Changed · +25 lines f1acca32328f
  4. 3mo ago First seen · 257 lines · 88 tokens per session scan A 0a0997e6da28

Subscribe to this mod's changes

opencli-adapter-author is a skill published in the GitHub repository mxyhi/ok-skills (518 stars, last pushed 9d ago), licensed Apache-2.0. It adds 38 tokens to every session and 876 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 91% identical to opencli-adapter-author, differing in 0 lines, and is treated as a copy.

Related

opencli-adapter-author compared with skills from other repositories

opencli-adapter-author next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
opencli-adapter-authormxyhi/ok-skillsSkill5189d agoApache-2.0A38Claude Code
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