SkillsReviewed · jackwener

OpenCLI Adapter Author

OpenCLI Adapter Author is an instruction pack for coding assistants and developers building website commands, but it requires OpenCLI and careful checks against real site behavior. It covers JavaScript adapters, browser and API investigation, field mapping, typed errors and optional test fixtures.

Researched 15 Nov 2026

In short.

OpenCLI Adapter Author is a skill for coding assistants and developers building website commands, but its usefulness depends on OpenCLI compatibility and validating each site's behavior. It explains how to discover data sources, write JavaScript adapters and distinguish valid results from empty data, authentication problems and execution failures. Older references conflict with the main file about mandatory fixtures and site memory. Most reference files are written in Chinese, while SKILL.md and a few references are in English. Runtime behavior, current website compatibility and claimed reliability figures are not assessed.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete supplied skills/opencli-adapter-author folder at revision 9bc5f5ca132ec4d4e48d7ee517d4303bf159e8e8: SKILL.md and 18 reference Markdown files, including all five site notes. The related repository-root LICENSE is included as a notice outside the selected folder. The OpenCLI runtime, referenced adapter implementations, test suites, linked pull requests and separate opencli-browser skill are excluded. No code or commands were executed. Live behavior, compatibility, performance, claimed success rates and operating costs are not established.

The overview

Identity

The resource is the skills/opencli-adapter-author folder in jackwener/OpenCLI. It contains a SKILL.md entry and supporting Markdown references for building or improving OpenCLI JavaScript adapters. The original source is [https://github.com/jackwener/OpenCLI/tree/main/skills/opencli-adapter-author].

An adapter connects a website operation to an OpenCLI command. This skill supplies instructions and examples; execution depends on the separate OpenCLI runtime.

Assessment

Its strongest feature is attention to plausible but incorrect results: wrong entity IDs, mixed-up fields, incomplete pagination and failures disguised as successful rows. It offers concrete guidance for investigating these problems and integrating adapters with OpenCLI.

Documentation consistency is a material weakness. SKILL.md makes fixtures and site notes optional, while adapter-template.md and site-memory.md retain mandatory wording and references to an older numbered process. These references require interpretation rather than mechanical copying.

Users

The best fit is a developer using a coding assistant to add or repair commands for a website, especially when the operation involves authentication, pagination or undocumented responses. Experienced developers get detailed investigation and failure-handling guidance.

Beginners can learn from the templates, but practical use still requires JavaScript, HTTP and browser concepts. The folder does not provide a complete programming tutorial or OpenCLI installation guide. SKILL.md, deep-recon.md, strategy-selection.md, jsdom-fixture-pattern.md and the Gmail site note are in English. The other 14 reference files are written mainly in Chinese with English code and identifiers, including the adapter template, API discovery, typed-error, site-memory, success-rate-pitfalls and output-design references and the Eastmoney, Xueqiu, Bilibili and Tonghuashun site notes.

Capabilities

The pack covers public and cookie-authenticated APIs, page state, semantic UI controls, browser-context requests and captured network responses. It explains list, detail and time-series commands, pagination, opaque field decoding and output conventions such as string IDs and explicit percentage units.

Site notes cover Eastmoney, Xueqiu, Bilibili, Tonghuashun and Gmail. They include endpoint examples, authentication assumptions, signing helpers and known pitfalls. These are documented starting points whose current behavior remains unverified.

The typed-error reference distinguishes invalid arguments, empty results, execution failures, authentication requirements and timeouts through exit codes 2, 66, 1, 77 and 75 respectively.

Using it

Requirements

Practical use needs OpenCLI, a compatible Node environment for JavaScript adapters, and an assistant or developer able to run commands and edit files. Browser-dependent adapters also need OpenCLI's connection to an already running Chrome session. Private operations require an appropriately signed-in account; public API adapters can run without browser context.

jsluice is an optional script-analysis tool. The DOM regression examples use JSDOM and Vitest. Exact OpenCLI and Node versions, supported assistant hosts, hardware minimums and dependency installation steps are not established by the supplied folder.

Mechanism

The assistant examines visible page data, observed requests and loaded scripts, then chooses a source that fits the task. Static script matches are candidates: they do not establish that a request occurred or that its response contains the intended business data.

An adapter registers a cli({...}) declaration with its command name, arguments, access type and implementation. Node execution uses func(args); browser execution uses func(page, args). The function returns business data, and OpenCLI adds the JSON success wrapper. The columns setting controls human table exports while JSON can preserve nested results.

Setup

With OpenCLI already installed, the documented starting point is to search existing commands using opencli list search --site example and inspect a candidate with opencli example search --help -f json. A scaffold can be created with opencli adapter init example/search. Personal adapters live under ~/.opencli/clis/example/search.js; repository adapters live under clis/example/.

opencli adapter check example/search validates definitions without executing the adapter. opencli adapter test example/search executes the normal command and can compare an optional fixture containing expected results. The references say repository adapters require a build to register. Host-specific skill installation is not documented here.

Example

The worked Eastmoney example declares a convertible-bond listing, defaults to turnover sorting and 20 rows, and maps opaque response fields into readable names. For example, f237 becomes convPremiumPct. This illustrates how an adapter translates website data into a command result.

The reference explicitly labels that sample's silent limit clamping and direct CliError usage as legacy. Its replacement guidance rejects out-of-range arguments with ArgumentError and distinguishes empty results from failed requests. The example supplies no independently established live result.

Assessment & evidence

Limitations

The coverage matrix excludes initial credential-based login, complex captcha solving, native WebSocket stream handling, private binary protocols and extraction from canvas-only displays without another data source. Rate limiting remains an adapter responsibility. Several other methods are documented without end-to-end evidence in that matrix.

Authentication and private protocols remain site-specific. The Gmail notes describe intercepted reads and cached-page fallbacks, but identify no supported browser-session API contract for writes; official Gmail API access requires separate OAuth credentials and scopes.

Some fixture guidance requires truthy numeric values. That needs care where zero is a legitimate result. Field references also contain differing unit assumptions, so endpoint-specific values must be checked against the page. Readers who do not read Chinese will lose much of the detail, including the template rules and legacy-sample warning in adapter-template.md, the typed-error guidance and the site pitfalls.

Reasoning

The approach is useful because a successful HTTP response or correctly shaped row can still contain the wrong data. Comparing entity identity, field meaning, units and pagination against visible results addresses errors that basic type checks miss.

The testing references extend this idea to DOM extraction: execute the actual extraction function against representative HTML, preserve text adjacency that can trigger parsing bugs, and confirm a regression test fails with the original bug restored. These are concrete methods, but the supplied files do not establish their effectiveness for a new target site.

The strategy reference also recognizes that a stable visible control may be easier to maintain than an undocumented endpoint. The coverage matrix's maintenance-rate figures lack a supporting dataset and methodology here, so they do not establish a reliable performance comparison.

Alternatives

An existing OpenCLI adapter is the first alternative when it already covers the task. A documented public API integration may suit a narrowly scoped service operation. For Gmail, the notes identify the official OAuth-based API as a separate supported access route.

SKILL.md points to opencli-browser for ad-hoc browser interaction. That separate skill is outside the supplied files, so its capabilities are not assessed. No comparative execution results establish which option is faster or more reliable.

Evidence

The supplied evidence includes SKILL.md, 18 reference files and the repository licence. It contains command documentation, code examples, site notes and accounts of previous bugs. Referenced runtime implementations, repository test suites and linked pull-request contents are outside the supplied scope.

Author-labelled verified cases and historical bug accounts describe claimed experience. They are not independent execution receipts for this snapshot. Runtime compatibility, successful site operations and reliability rates remain unassessed.

Access & freshness

Costs

The Apache-2.0 licence grants no-charge, royalty-free rights to covered material, subject to its conditions. This does not establish the total cost of using the skill.

No operating-cost estimate or pricing schedule is supplied. Assistant or model charges, target-site subscriptions or API fees, and ongoing adapter maintenance costs are unknown.

Rights

The supplied repository LICENSE is Apache License 2.0 and names copyright 2025 jackwener. It permits use, modification and redistribution subject to conditions including providing the licence, marking modified files and retaining applicable attribution notices. Any applicable NOTICE attribution must also be preserved when required.

The material is supplied without warranty, and the licence does not grant general trademark rights. Rights to access third-party services or reuse retrieved website data are not established by this licence.

Freshness

The supplied snapshot was captured on 15 November 2026 at revision 9bc5f5ca132ec4d4e48d7ee517d4303bf159e8e8. Its fixed source location is [https://github.com/jackwener/OpenCLI/tree/9bc5f5ca132ec4d4e48d7ee517d4303bf159e8e8/skills/opencli-adapter-author]. Capture time does not establish each file's last modification date.

Some references discuss May 2026 conventions, and the Gmail notes label positional fields as verified in August 2026. The site-memory guidance itself calls for rechecking old endpoint knowledge. Compatibility with current OpenCLI releases, later repository changes and current website behavior is unknown.

Actions

Before adopting the skill, confirm that installed OpenCLI help matches the documented interfaces and check for an existing command covering the task. Start with a read operation and compare returned identities, units and pagination against representative page data. Treat static endpoint matches as investigation leads.

Use definition checking before execution. For write adapters, use a suitable test account or an explicitly supported dry-run: adapter test performs the command's real effects. Inspect external state before retrying a write whose outcome is uncertain.

Keep credentials and private response bodies out of fixtures and notes. The references recommend synthetic fixtures for sensitive material and cleanup of temporary browser captures.

Evidence for this report

LICENSEnotice · checked 2026-11-15
skills/opencli-adapter-author/SKILL.mdselected · checked 2026-11-15