zxfccmm4/obsidian-opencode-knowledge/opencli-autofix
Claude Code and agent skill by zxfccmm4/obsidian-opencode-knowledge
- community
Checking that the SKILL.md file is still in the repository.
Automatically fix broken OpenCLI adapters when commands fail. Load this skill when an opencli command fails — it guides you through diagnosing the failure via OPENCLI_DIAGNOSTIC, patching the adapter, retrying, and filing an upstream GitHub issue after a verified fix. Works with any AI agent.
Install
npx vskill@latest install zxfccmm4/obsidian-opencode-knowledge/opencli-autofixSKILL.md
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 modifysrc/,extension/,tests/ - Max 3 repair rounds per failure
Step 1: Collect Diagnostic Context
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.
Step 4: Patch the Adapter
Read the adapter source file at RepairContext.adapter.sourcePath and make targeted fixes.
Common Fixes
Selector update:
API endpoint change:
Response schema change:
Step 5: Verify the Fix
If still fails, go back to Step 1. Max 3 rounds.
Step 6: File an Upstream Issue
Only after a verified local fix:
Ask the user before filing.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingvault-template/.opencode/skill/opencli-autofix/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/zxfccmm4/obsidian-opencode-knowledge/opencli-autofix)