01
It starts by itself
opencli command fails. Runs in Claude Code.
- ↻ opencli command fails
opencli command exit non-zero
Broken adapters fixed and retried.
Install the OpenCLI AutoFix skill and make it a habit: follow https://gethabit.dev/skills/jackwener/opencli-autofix.md
18K installs31K starsApache-2.0 licenceSource on GitHub ↗

OpenCLI AutoFix
by jackwener · 18K installs
The skill
The opencli autofix skill repairs broken OpenCLI adapters when a command fails: it collects a trace, patches the adapter, retries, and files an upstream issue after a verified fix.
Only when you ask.
The habit
Broken adapters fixed and retried.
↻ Runs by itselfopencli command fails
When does it start? How does it check its work? What does it remember?
Stops after a verified fix, or after 3 repair rounds, or at a hard-stop error.
The agent stops without touching code on AUTH_REQUIRED, BROWSER_CONNECT, captcha or rate limiting.
It retries with another query and spot-checks in Chrome, since an empty result is often not an adapter bug.
It reruns with --trace retain-on-failure and reads the summary.md front matter for adapterSourcePath.
It uses opencli browser, never the broken adapter, to find the new selector or API.
It edits only the adapter source, keeps the output structure and prefers an API over DOM scraping.
It reruns the command, and after a passing retry asks you before filing an upstream GitHub issue.
It writes only in its own folder and asks you before anything goes out.
Read both lists. If the left one sounds like you, the OpenCLI AutoFix skill helps.
No. A failing fixture means the adapter output is broken, so it fixes the adapter instead.
No. It shows you the draft and files only after you confirm.
Copy the prompt at the top into your agent. It installs the skill from jackwener/OpenCLI and sets up the habit. Or run npx skills add jackwener/OpenCLI --skill opencli-autofix.
Yes. It is published under Apache-2.0. Habit is free too.
Install the OpenCLI AutoFix skill and make it a habit: follow https://gethabit.dev/skills/jackwener/opencli-autofix.md
All jackwener skills →More code skills →
Works in
Made by jackwener, published under Apache-2.0. Habit links to the original and never changes it. Is this your skill?