SuperAPI AI 工具集

github-bot

编程与开发

查看项目

更新于 10-15 23:33

技能介绍

用途:以 joelclawgithub[bot] 这一 GitHub App 身份与 GitHub API 交互,适用于创建 PR、推送提交、管理 issue、检查 CI 状态、列出仓库等操作。资料说明该 App 可访问 @joelhooks 个人及组织账号下的仓库,但旧仓库数量不具权威性,应以实际发现的 App 权限为准。

认证:运行 TOKEN=$(SKILL_DIR/scripts/github-token.sh) 生成 1 小时有效的安装令牌,然后在 API 调用中使用,例如 curl -H "Authorization: token $TOKEN" -H "Accept: application/vnd.github+json" https://api.github.com/repos/OWNER/REPO/...。令牌 1 小时后过期,若请求返回 401 需重新生成。

密钥:存于 agent-secrets,禁止硬编码,包括 github_app_id(2867136)、github_app_client_id、github_app_installation_id、github_app_pem(RSA 私钥)。

身份:提交身份为 joelclawgithub[bot] <2867136+joelclawgithub[bot]@users.noreply.github.com>,所有 API 操作(评论、审查、PR)均显示为该 bot。具备 contents、issues、PRs、actions、deployments、environments、secrets、packages、workflows、checks、statuses、hooks、projects 的读写权限。

相关操作包括 create-pr、push-commit、create-issue、merge-pr、create-release、update-workflow。凭证以已验证的 GitHub URL、标识符、提交 SHA 或 API 响应为准;调用工作流支持时发出规范 OTel,并将持久决策记录在 Brain .svx 中,旧的 slog 日志已弃用,不要重建。

分页:GitHub API 每页最多 100 项,完整列表需循环翻页,示例逻辑为 PAGE=1,循环请求 per_page=100&page=$PAGE,当返回条目少于 100 时结束。

限制:资料提到对于 ShitRat 创作的工作应使用已安装的 shitrat 工具与 shitratgit[bot] 身份,本 App 仅用于明确拥有它的集成,并非 Joel 代理创作提交、PR 或评论的默认执行者。其余平台、收费等信息暂未提供。