← Back to list
🛠️

opencli-adapter-author

Build or improve an OpenCLI JS adapter using observed site behavior, existing adapters and browser A
🛠️ Developer Tools skills By jackwener Version v1.0.9bc5f5c Added 2026-12-04 Updated 2026-12-04 Source ↗
8.3Overall rating
0Views
0Downloads
0Stars

Installation

🤖 Install via AI

Copy the prompt below and send it to your AI assistant (e.g. Claude Code) — it will follow the instructions and install automatically.

Install the "opencli-adapter-author" skill by following the instructions at https://skill123.me/install/opencli-adapter-author?ref=detail
⌨️ Command line install

Run in your terminal — downloads and installs to ~/.claude/skills/.

curl -fsSL https://skill123.me/install/opencli-adapter-author.sh?ref=detail | bash
📦 Download ZIP

Download the zip and extract it into your skills directory (e.g. ~/.claude/skills/), then restart your session.

⬇ Download v1.0.9bc5f5c · 5.3 MB
📊 Static rating
8.3/10
Trigger
7.4
Structure
8.6
Workflow
8.0
Content
8.6
Engineering
8.5
Security
9.2

Six-dimension rubric with reviewer rationale.

View scorecard ↓
🛡 Dynamic test
—

Not live-tested yet — this skill is rated on static analysis only.

About this skill

Build or improve an OpenCLI JS adapter using observed site behavior, existing adapters and browser API evidence. For ad-hoc browser interaction, see opencli-browser.

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.

Documentation

Build or improve an OpenCLI JS adapter using observed site behavior, existing adapters and browser API evidence. For ad-hoc browser interaction, see opencli-browser.

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.


import { cli, Strategy } from '@jackwener/opencli/registry';

cli({
  site: 'example', name: 'search', description: 'Search example items',
  access: 'read', strategy: Strategy.PUBLIC, browser: false,
  args: [{ name: 'query', positional: true, required: true }],
  func: async (args) => {
    const response = await fetch(`https://example.com/api/search?q=${encodeURIComponent(args.query)}`);
    if (!response.ok) throw new Error(`Search failed: HTTP ${response.status}`);
    return response.json();
  },
});

Check and exercise


opencli adapter check example/search
opencli example search 'query'
opencli adapter test example/search --args '{"query":"query"}'
View full documentation

check validates definitions without executing adapters. test executes the normal

CLI and optionally compares an existing fixture. --write-fixture, --update-fixture

and --no-fixture control optional expectations; no row-shape or site-memory gate

is imposed. --trace retain-on-failure helps diagnose browser execution.

For repository changes, cover the core behavior and failure paths with focused

production-path tests, typecheck and build. Verify IDs, fields, units, pagination

and empty/error semantics relevant to the task. Do not automatically replay a

write with an unknown outcome; inspect state first.

Optional references

Read only what is useful for the current task: references/adapter-template.md

for adapter patterns, api-discovery.md for request investigation,

output-design.md for result fields, field-decode-playbook.md for opaque fields,

and deep-recon.md for difficult private protocols. Site notes and fixtures are

optional knowledge aids; older reference checklists are not mandatory workflows.

Score breakdown

Trigger
7.4
Trigger 7.4/10 — Description scopes adapter authoring and redirects ad-hoc browsing, but offers limited trigger phrasing. Evidence-to-interface-to-check workflow is practical with write-effect warnings and tests, though it reads more reference-like than step-ordered; capabilities match the declared adapter-editing scope.
Structure
8.6
Structure 8.6/10
Workflow
8.0
Workflow 8/10
Content
8.6
Content 8.6/10
Engineering
8.5
Engineering 8.5/10
Security
9.2
Security 9.2/10
Description scopes adapter authoring and redirects ad-hoc browsing, but offers limited trigger phrasing. Evidence-to-interface-to-check workflow is practical with write-effect warnings and tests, though it reads more reference-like than step-ordered; capabilities match the declared adapter-editing scope.

Assessment methodology

⏳
Assessment in progress
This skill has not been assessed yet — use with caution.

Version history

v1.0.9bc5f5c 2026-12-04
5.3 MB

— Imported from GitHub jackwener/OpenCLI/skills/opencli-adapter-author@9bc5f5c