opencli-autofix

opencli-autofix is a skill for Claude Code, OpenCode from zxfccmm4/Obsidian-OpenCode-Knowledge. It costs 67 tokens per session (738 once invoked), scanned A, original, MIT.

A repair guide for OpenCLI adapters, which connect command-line commands to websites. It diagnoses failures caused by changed page layouts, website data requests, or response formats, then updates the adapter and retries.

In plain words
What is it for?
Use it after an OpenCLI command fails to inspect diagnostics, find changed page or API details, patch the adapter, retry the command, and report a verified fix upstream.
Why use it?
Website changes can break an adapter even when your command has not changed; this guides diagnosis and repair while stopping for login, browser, CAPTCHA, or rate-limit problems.

Skill for Claude CodeOpenCode

Written for Claude Code and OpenCode: allowed-tools in frontmatter, but also installed under .opencode/.

Good fit Use it after an OpenCLI command fails to inspect diagnostics, find changed page or API details, patch the adapter, retry the command, and report a verified fix upstream.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zxfccmm4/obsidian-opencode-knowledge/opencli-autofix
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 zxfccmm4/Obsidian-OpenCode-Knowledge --skill opencli-autofix
Clone the repo
git clone --depth 1 https://github.com/zxfccmm4/Obsidian-OpenCode-Knowledge

Made for: Claude Code, 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-autofix

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/zxfccmm4/obsidian-opencode-knowledge/opencli-autofix"><img src="https://agentmods.dev/badge/skills/zxfccmm4/obsidian-opencode-knowledge/opencli-autofix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 738 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
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.00067 $0.00738
Opus 5.5 $0.00027 $0.00295
Sonnet 5.5 $0.00013 $0.00148
Haiku 4.5 $0.00007 $0.00074

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

Security

Grade A, and why

opencli-autofix 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 3mo 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.

vault-template/.opencode/skill/opencli-autofix/SKILL.md · 91 lines

How it starts

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

OpenCLI AutoFix — Automatic Adapter Self-Repair

When an opencli command fails because a website changed its DOM, API, or response schema, automatically diagnose, fix the adapter, and retry.

Safety Boundaries

  • AUTH_REQUIRED (exit code 77) — STOP. Tell user to log into the site in Chrome.
  • BROWSER_CONNECT (exit code 69) — STOP. Tell user to run opencli doctor.
  • CAPTCHA / rate limiting — STOP. Not an adapter issue.
  • Only modify RepairContext.adapter.sourcePath — never modify src/, extension/, tests/
  • Max 3 repair rounds per failure

Step 1: Collect Diagnostic Context

OPENCLI_DIAGNOSTIC=1 opencli <site> <command> [args...] 2>diagnostic.json

Step 2: Analyze the Failure

Error Code Likely Cause Repair Strategy
SELECTOR DOM restructured Explore current DOM → find new selector
EMPTY_RESULT API response schema changed Check network → find new response path
API_ERROR Endpoint URL changed Discover new API via network intercept
AUTH_REQUIRED Login flow changed, cookies expired STOP — tell user to log in
TIMEOUT Page loads differently Add/update wait conditions
PAGE_CHANGED Major redesign May need full adapter rewrite

Step 3: Explore the Current Website

Use opencli browser to inspect the live website. Never use the broken adapter.

# DOM changed
opencli browser open https://example.com/target-page && opencli browser state

# API changed
opencli browser open https://example.com/target-page && opencli browser network

Step 4: Patch the Adapter

Read the adapter source file at RepairContext.adapter.sourcePath and make targeted fixes.

Common Fixes

Selector update:

// Before: page.evaluate('document.querySelector(".old-class")...')
// After:  page.evaluate('document.querySelector(".new-class")...')

API endpoint change:

// Before: fetch('/api/v1/old-endpoint')
// After:  fetch('/api/v2/new-endpoint')

Read the full file on GitHub · 91 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. 3mo ago First seen · 91 lines · 67 tokens per session scan A 4b3e6b2eb518

Subscribe to this mod's changes

opencli-autofix is a skill published in the GitHub repository zxfccmm4/Obsidian-OpenCode-Knowledge (309 stars, last pushed 2mo ago), licensed MIT. It adds 67 tokens to every session and 738 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

opencli-autofix compared with skills from other repositories

opencli-autofix next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
opencli-autofixzxfccmm4/Obsidian-OpenCode-KnowledgeSkill3092mo agoMITA67Claude Code, OpenCode
chrome-devtools-cliChromeDevTools/chrome-devtools-mcpSkill60ktodayApache-2.0A31Claude Code
chrome-performance-optimizerchromium/chromiumSkill25ktodayBSD-3-ClauseA119Claude Code, Codex
nullawaychromium/chromiumSkill25ktodayBSD-3-ClauseA43Claude Code, Codex
reenable-testchromium/chromiumSkill25ktodayBSD-3-ClauseA85Claude Code, Codex
bisectchromium/chromiumSkill25ktodayBSD-3-ClauseA52Claude Code, Codex
gn-deps-debuggingchromium/chromiumSkill25ktodayBSD-3-ClauseA56Claude Code, Codex