webcmd-autofix
Installation
SKILL.md
Webcmd AutoFix - Automatic Adapter Self-Repair
When a webcmd command fails because a website changed its DOM, API, or response schema, diagnose, fix the adapter, and retry. Do not only report the error when the failure is repairable.
Safety Boundaries
Hard stops before any code change:
- Human-action handoff: if a failure returns
handoff.status === action_required, stop before trace collection or AutoFix. Give the userhandoff.actionand anyWebcmd browser:orhandoff.viewUrllink, then wait. Never request or enter credentials, passwords, or CAPTCHA answers. After the user reports done, runhandoff.verifyCommandwhen present; verification must succeed before retrying. Without a verifier, inspect fresh browser state and verify the intended post-action state before any retry, especially for write commands. AUTH_REQUIRED(exit code 77): if a site login command exists, runwebcmd <site> login, give itsaction_requiredinstructions and any returnedaction_urlorview_urlto the user, and wait. Run the returnedverify_command(normallywebcmd <site> whoami); verification must succeed before retrying the original command. If no site login command exists, stop browser writes, hand the visible browser to the user, and wait. After they report done, take fresh browser state and use an available identity check or verify the intended post-action state before retrying. Their report alone is not verification. Never request, type, echo, store, or automate passwords, OTPs, recovery codes, cookies, or session secrets.BROWSER_CONNECT(exit code 69): stop. Tell the user to runwebcmd doctor.- CAPTCHA / raw-browser user takeover: stop automation. Follow the human-action handoff above when one is returned; otherwise let the user act in the visible browser. Verification must succeed before retrying. With no verifier, take fresh browser state and verify the intended post-action state before any retry. The user's report alone is not verification. CAPTCHA is not an adapter issue.
- Rate limiting / IP block: stop. This is not an adapter issue.
Scope constraint:
- Modify only the file at
adapterSourcePathin the tracesummary.mdfront matter. That path is authoritative and may beclis/<site>/...in the repo orplugins/<site>/...in a plugin repo or~/.webcmd/clis/<site>/...for user-local installs. - Never modify
src/,extension/,tests/,package.json, ortsconfig.jsonduring autofix.