opencli-autofix
仓库创建 2026年2月2日最近提交 4 天前SkillHot 收录 20 天前
▸ 精选理由
自动生成并验证补丁,显著减少人工排错成本。
▸ 风险提示
会修改适配器代码并可能需要推送/GitHub 权限。
这个 Skill 做什么
在 opencli 命令失败时自动诊断、修补适配器并重试。
opencli 命令因为网站 DOM/API 变动挂掉时,会自动收集 trace、定位问题、修补 adapter 并重试,修好后还能帮你提交上游 GitHub issue。用在自动化命令失败、不想手动调试适配器的时候。特点是闭环修复流程:采集证据、打补丁、验收重试,并有安全停顿点(比如需要登入时不会盲改代码)。
▸ 展开 SKILL.md 英文原文
Automatically fix broken OpenCLI adapters when commands fail. Load this skill when an opencli command fails — it guides you through collecting a trace artifact, patching the adapter, retrying, and filing an upstream GitHub issue after a verified fix. Works with any AI agent.
456
Stars
41
Forks
34
仓库内 Skill
+8
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/mxyhi/ok-skills/main/opencli/opencli-autofix/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/mxyhi/ok-skills/main/opencli/opencli-autofix/SKILL.md"SKILL.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** — don't just report the error. ## Safety Boundaries **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`. - **CAPTCHA / rate limiting** — **STOP.** Not an adapter issue. **Scope constraint:** - **Only modify the file at `adapterSourcePath` in the trace `summary.md` front
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有