Browser Harness Agentloom
linora-u/AgentLoom
A skill your agent uses when working on AgentLoom browser-harness integration or debugging applications/browserharnessprobe: creating or updating the probe Application, installing the external…
Repairs a broken OpenCLI site adapter after a command fails: collects a trace, patches only the adapter, retries, and files an upstream GitHub issue once fixed.
$ npx skills add jackwener/OpenCLI --skill opencli-autofix -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install jackwener/OpenCLI opencli-autofix --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/jackwener/OpenCLI.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/opencli-autofix .claude/skills/opencli-autofix && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "opencli-autofix" agent skill from https://github.com/jackwener/OpenCLI/tree/main/skills/opencli-autofix into .claude/skills/opencli-autofix/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "opencli-autofix", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/jackwener/OpenCLI/tree/main/skills/opencli-autofixType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add jackwener/OpenCLI --skill opencli-autofix -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install jackwener/OpenCLI opencli-autofix --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jackwener/OpenCLI.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/opencli-autofix .agents/skills/opencli-autofix && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "opencli-autofix" agent skill from https://github.com/jackwener/OpenCLI/tree/main/skills/opencli-autofix into .agents/skills/opencli-autofix/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "opencli-autofix", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jackwener/OpenCLI --skill opencli-autofix -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install jackwener/OpenCLI opencli-autofix --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jackwener/OpenCLI.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/opencli-autofix .cursor/skills/opencli-autofix && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "opencli-autofix" agent skill from https://github.com/jackwener/OpenCLI/tree/main/skills/opencli-autofix into .cursor/skills/opencli-autofix/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "opencli-autofix", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/jackwener/OpenCLI.git --path skills/opencli-autofix--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add jackwener/OpenCLI --skill opencli-autofix -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install jackwener/OpenCLI opencli-autofix --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jackwener/OpenCLI.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/opencli-autofix .gemini/skills/opencli-autofix && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "opencli-autofix" agent skill from https://github.com/jackwener/OpenCLI/tree/main/skills/opencli-autofix into .gemini/skills/opencli-autofix/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "opencli-autofix", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install jackwener/OpenCLI opencli-autofixInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add jackwener/OpenCLI --skill opencli-autofix -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/jackwener/OpenCLI.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/opencli-autofix .github/skills/opencli-autofix && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "opencli-autofix" agent skill from https://github.com/jackwener/OpenCLI/tree/main/skills/opencli-autofix into .github/skills/opencli-autofix/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "opencli-autofix", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jackwener/OpenCLI --skill opencli-autofix -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install jackwener/OpenCLI opencli-autofix --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jackwener/OpenCLI.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/opencli-autofix .opencode/skills/opencli-autofix && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "opencli-autofix" agent skill from https://github.com/jackwener/OpenCLI/tree/main/skills/opencli-autofix into .opencode/skills/opencli-autofix/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "opencli-autofix", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
opencli-autofixRepairs a broken OpenCLI site adapter after a command fails: collects a trace, patches only the adapter, retries, and files an upstream GitHub issue once fixed.
When an `opencli` command fails because a website changed its page structure, API or response format, the agent diagnoses and fixes the adapter instead of just reporting the error. It handles selector failures, empty results, API and network errors, changed pages, runtime errors in adapter logic and timeouts. Hard stops come first: authentication required, a browser connection failure, CAPTCHAs and rate limits are not adapter bugs, so the agent halts and tells you what to do.
Edits are limited to the adapter file named in the trace `summary.md` front matter, never the source, extension, tests or package files, and the agent gets at most three repair rounds before it reports what it tried. It also checks whether an empty result is a real break by trying another query or comparing with a normal Chrome tab. After a verified fix, it files an upstream GitHub issue.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 2413694. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
Bash(opencli:*)Bash(gh:*)ReadEditWriteFrom allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
ghFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
zhihu.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
OpenCLI Adapter Autofix loads about 3.2k tokens when it runs. Until then it costs about 73 tokens; SKILL.md has 1,204 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from jackwener/OpenCLI at commit 2413694, republished under its Apache-2.0 licence (© jackwener). 1,204 words, ~3,171 tokens.
.claude/skills/opencli-autofix/SKILL.md (or your agent's skills folder).When an opencli command fails because a website changed its DOM, API, or response schema, automatically diagnose, fix the adapter, and retry — don't just report the error.
Before starting any repair, check these hard stops:
AUTH_REQUIRED (exit code 77) — STOP. Do not modify code. Tell the user to log into the site in Chrome.BROWSER_CONNECT (exit code 69) — STOP. Do not modify code. Tell the user to run opencli doctor.Scope constraint:
adapterSourcePath in the trace summary.md front matter — this is the authoritative adapter location (may be clis/<site>/ in repo or ~/.opencli/clis/<site>/ for npm installs)src/, extension/, tests/, package.json, or tsconfig.jsonRetry budget: Max 3 repair rounds per failure. If 3 rounds of diagnose → fix → retry don't resolve it, stop and report what was tried.
opencli doctor # Verify extension + daemon connectivityUse when opencli <site> <command> fails with repairable errors:
EMPTY_RESULT — and sometimes a structurally-valid SELECTOR that returns nothing — is often not an adapter bug. Platforms actively degrade results under anti-scrape heuristics, and a "not found" response from the site doesn't mean the content is actually missing. Rule this out before committing to a repair round:
opencli xiaohongshu search "X" returns 0 but opencli xiaohongshu search "X 攻略" returns 20, the adapter is fine — the platform was shaping results for the first query.opencli doctor / re-login, not editing source.results: [], that is a valid answer — report it to the user as "no matches for this query" rather than patching the adapter.Only proceed to Step 1 if the empty/selector-missing result is reproducible across retries and alternative entry points. Otherwise you're patching a working adapter to chase noise, and the patched version will break the next working path.
Run the failing command with failure-retained trace enabled:
opencli <site> <command> [args...] --trace retain-on-failure 2>trace-error.yamlOn failure, stderr contains the normal error envelope plus a small trace block:
ok: false
error:
code: SELECTOR
message: "Could not find element: .old-selector"
trace:
schemaVersion: 1
opencliVersion: "..."
traceId: "..."
dir: "/path/to/.opencli/profiles/default/traces/..."
summaryPath: "/path/to/.opencli/profiles/default/traces/.../summary.md"
receiptPath: "/path/to/.opencli/profiles/default/traces/.../receipt.json"Read summaryPath first. It is the LLM-oriented entry point and includes front matter:
---
schemaVersion: 1
opencliVersion: "..."
traceId: "..."
status: failure
site: "example"
command: "example/search"
adapterSourcePath: "/path/to/clis/example/search.js"
errorCode: "SELECTOR"
errorMessage: "Could not find element: .old-selector"
---The artifact directory contains:
summary.md # start here
receipt.json # machine-readable trace receipt
trace.jsonl # full redacted timeline
network.jsonl # redacted network events
console.jsonl # redacted console events
state/ # final snapshots when available
screenshots/ # final screenshots when availableIf you redirected stderr to a file, read that file and copy trace.summaryPath.
Do not ask the user to rerun with legacy diagnostic env vars. Trace is the repair evidence path.
Read the trace summary and the adapter source. Classify the root cause:
| Error Code | Likely Cause | Repair Strategy |
|---|---|---|
| SELECTOR | DOM restructured, class/id renamed | Explore current DOM → find new selector |
| EMPTY_RESULT | API response schema changed, or data moved | Check network → find new response path |
| API_ERROR | Endpoint URL changed, new params required | Discover new API via network intercept |
| AUTH_REQUIRED | Login flow changed, cookies expired | STOP — tell user to log in, do not modify code |
| TIMEOUT | Page loads differently, spinner/lazy-load | Add/update wait conditions |
| PAGE_CHANGED | Major redesign | May need full adapter rewrite |
Key questions to answer:
adapterSourcePath)summary.md, then state/ if needed)Failed Network in summary.md, then network.jsonl if needed)Use opencli browser to inspect the live website. Never use the broken adapter — it will just fail again.
# Open the page and inspect current DOM
opencli browser open https://example.com/target-page && opencli browser state
# Look for elements that match the adapter's intent
# Compare the snapshot with what the adapter expects# Open page with network interceptor, then trigger the action manually
opencli browser open https://example.com/target-page && opencli browser state
# Interact to trigger API calls
opencli browser click <N> && opencli browser network
# Narrow to the request you care about by the fields its body should have
opencli browser network --filter author,text,likes
# Inspect specific API response (key is the `key` field from the default JSON output)
opencli browser network --detail <key>Read the adapter source file at adapterSourcePath from the trace summary front matter and make targeted fixes. This path is authoritative — it may be in the repo (clis/) or user-local (~/.opencli/clis/).
Use the Read tool on the exact path from summary.md front matter.
Selector update:
// Before: page.evaluate('document.querySelector(".old-class")...')
// After: page.evaluate('document.querySelector(".new-class")...')API endpoint change:
// Before: const resp = await page.evaluate(`fetch('/api/v1/old-endpoint')...`)
// After: const resp = await page.evaluate(`fetch('/api/v2/new-endpoint')...`)Response schema change:
// Before: const items = data.results
// After: const items = data.data.items // API now nests under "data"Wait condition update:
// Before: await page.wait({ selector: '.loading-spinner', hidden: true })
// After: await page.wait({ selector: '[data-loaded="true"]' })columns and return format must stay compatible@jackwener/opencli/* imports only — never add third-party package importsverify/<cmd>.json fixtures to silence a failure. A failing patterns / notEmpty / mustNotContain / mustBeTruthy rule means the adapter's output is broken. Tighten the adapter so it produces correct values; do not loosen the fixture to accept the broken values. The one legitimate reason to edit a fixture during repair is when the site itself changed shape (e.g. URL format migration) — in that case update the fixture and note the change in ~/.opencli/sites/<site>/notes.md. Otherwise editing the fixture is covering up a silent correctness regression.# Run the command normally
opencli <site> <command> [args...]If it still fails, go back to Step 1 and collect a fresh trace. You have a budget of 3 repair rounds (trace → fix → retry). If the same error persists after a fix, try a different approach. After 3 rounds, stop and report what was tried.
If the retry passes, the local adapter has drifted from upstream. File a GitHub issue so the fix flows back to jackwener/OpenCLI.
Do NOT file for:
AUTH_REQUIRED, BROWSER_CONNECT, ARGUMENT, CONFIG — environment/usage issues, not adapter bugsOnly file after a verified local fix — the retry must pass first.
Procedure:
[autofix] <site>/<command>: <error_code> (e.g. [autofix] zhihu/hot: SELECTOR)## Summary
OpenCLI autofix repaired this adapter locally, and the retry passed.
## Adapter
- Site: `<site>`
- Command: `<command>`
- OpenCLI version: `<version from opencli --version>`
## Original failure
- Error code: `<error_code>`
~~~
<error_message>
~~~
## Local fix summary
~~~
<1-2 sentence description of what you changed and why>
~~~
_Issue filed by OpenCLI autofix after a verified local repair._Ask the user before filing. Show them the draft title and body. Only proceed if they confirm.
If the user approves and gh auth status succeeds:
gh issue create --repo jackwener/OpenCLI \
--title "[autofix] <site>/<command>: <error_code>" \
--body "<the body above>"If gh is not installed or not authenticated, tell the user and skip — do not error out.
Hard stops (do not modify code):
Soft stops (report after attempting):
opencli-adapter-author skillIn all stop cases, clearly communicate the situation to the user rather than making futile patches.
1. User runs: opencli zhihu hot
→ Fails: SELECTOR "Could not find element: .HotList-item"
2. AI runs: opencli zhihu hot --trace retain-on-failure 2>trace-error.yaml
→ Gets trace summary with final state and failed action evidence
3. AI reads summary/state: page loaded but uses ".HotItem" instead of ".HotList-item"
4. AI explores: opencli browser open https://www.zhihu.com/hot && opencli browser state
→ Confirms new class name ".HotItem" with child ".HotItem-content"
5. AI patches: Edit adapter at `adapterSourcePath` — replace ".HotList-item" with ".HotItem"
6. AI verifies: opencli zhihu hot
→ Success: returns hot topics
7. AI prepares upstream issue draft, shows it to the user
8. User approves → AI runs: gh issue create --repo jackwener/OpenCLI --title "[autofix] zhihu/hot: SELECTOR" --body "..."© jackwener, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/opencli-autofix of jackwener/OpenCLI.
Open the folder on GitHubat commit 2413694
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in jackwener/OpenCLI, which our catalogue first saw on October 7, 2026.
OpenCLI Adapter Autofix next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| OpenCLI Adapter Autofix this skilljackwener/OpenCLI | 30k | 1 repos | ~3.2k | Automated safety check: Pass | Apache-2.0 | |
| Browser Harness Agentloomlinora-u/AgentLoom | 168 | — | ~1.3k | Automated safety check: Pass | None | |
| Project Pull Requestswimmwatch/cloakbrowser-mcp | 161 | — | ~1k | Automated safety check: Pass | MIT | |
| Exposed Bug Fix WorkflowJetBrains/Exposed | 9.3k | — | ~3.8k | Automated safety check: Pass | Apache-2.0 | |
| Issue Fixmono/SkiaSharp | 5.6k | — | ~5.1k | Automated safety check: Pass | MIT | |
| React Router Bug Fix Workflowremix-run/react-router | 57k | — | ~1.3k | Automated safety check: Pass | MIT |
linora-u/AgentLoom
A skill your agent uses when working on AgentLoom browser-harness integration or debugging applications/browserharnessprobe: creating or updating the probe Application, installing the external…
swimmwatch/cloakbrowser-mcp
Create, update, prepare, or review a cloakbrowser-mcp GitHub Pull Request only when the user explicitly requests PR work.
JetBrains/Exposed
Takes a GitHub or YouTrack issue for the Exposed project through reproduction, a failing test, a fix, validation and a pull request.
mono/SkiaSharp
Fix bugs in SkiaSharp C bindings. An agent skill from mono/SkiaSharp.
remix-run/react-router
Fixes a React Router bug reported in a GitHub issue end to end: fetching the issue, validating the reproduction, writing a failing test and implementing the fix on a new branch.
The-OpenROAD-Project/OpenROAD
Fixes an OpenROAD bug from a GitHub issue or error code: finds the root cause, implements the fix, adds a regression test and prepares a signed-off commit.
jackwener/OpenCLI
Walks through writing an OpenCLI adapter for a new site or a new command on an existing one, from first recon and field decoding to coding and verification.
jackwener/OpenCLI
Routes a search question to the most suitable opencli source, normally one AI site plus up to two specialist sites, with call limits per question and a recap at the end.
jackwener/OpenCLI
Drives a real Chrome window through the opencli CLI to inspect pages, fill forms, click through logged-in flows and extract data from structured command responses.
jackwener/OpenCLI
Orients an agent on OpenCLI, which turns websites and Electron apps into opencli site-command calls, covering adapters, strategies, install and which skill to load next.
Works with
Categories
Repairs a broken OpenCLI site adapter after a command fails: collects a trace, patches only the adapter, retries, and files an upstream GitHub issue once fixed. When an `opencli` command fails because a website changed its page structure, API or response format, the agent diagnoses and fixes the adapter instead of just reporting the error. It handles selector failures, empty results, API and network errors, changed pages, runtime errors in adapter logic and timeouts.
OpenCLI Adapter Autofix fits situations like: an opencli command fails after a website changes its layout or API; A command returns nothing and you need to tell a real adapter bug from a soft block; you want a verified adapter fix reported upstream as a GitHub issue.
Run `npx skills add jackwener/OpenCLI --skill opencli-autofix -a claude-code`. Or copy the skill folder (skills/opencli-autofix in jackwener/OpenCLI) into .claude/skills/opencli-autofix in your project. Claude Code loads it when a task matches its description.
Run `npx skills add jackwener/OpenCLI --skill opencli-autofix -a codex`. Or copy the skill folder (skills/opencli-autofix in jackwener/OpenCLI) into .agents/skills/opencli-autofix in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jackwener/OpenCLI --skill opencli-autofix -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/opencli-autofix, .gemini/skills/opencli-autofix, .github/skills/opencli-autofix and .opencode/skills/opencli-autofix in your project.
Going by SKILL.md and its folder, OpenCLI Adapter Autofix needs the command-line tools its instructions call (gh). Our summary lists: The `opencli` CLI with its browser extension and daemon (`opencli doctor` checks them); GitHub CLI `gh`, for filing the upstream issue; Chrome logged in to the target site. Its frontmatter pre-approves these tools: Bash(opencli:*), Bash(gh:*), Read, Edit, Write.
SKILL.md names 1 domain. In commands or code: zhihu.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
OpenCLI Adapter Autofix is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.2k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with OpenCLI Adapter Autofix: Browser Harness Agentloom (linora-u/AgentLoom, 168 stars), Project Pull Request (swimmwatch/cloakbrowser-mcp, 161 stars), Exposed Bug Fix Workflow (JetBrains/Exposed, 9.3k stars) and Issue Fix (mono/SkiaSharp, 5.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
jackwener (a GitHub user) maintains it in jackwener/OpenCLI, which has 29,886 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on September 24, 2026.
Source: jackwener/OpenCLI on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.