Diagnose GitHub Personal Access Token failures — 401 Bad credentials, push failures, tokens that appear valid but fail — before declaring them expired or revoked. Checks the command, variable propagation, and request parameters first, then cross-validates with curl, Node.js, Python, or PowerShell, and only then investigates permission, revocation, or network causes. Covers the GitHub REST API, Contents API, and file-push workflows. 中文摘要:GitHub PAT 认证排障。先查命令、环境变量传递与请求参数,再用 curl/Node/Python 交叉验证,最后才判断权限、撤销或网络原因。触发词:GitHub token 失效排查、401 Bad credentials、PAT 认证失败、推送失败诊断.

Install

openclaw skills install @haiyangchenbj/github-pat-debugging