openclaw-skills/github/SKILL.md
Use when automating GitHub issues, pull requests, reviews, CI checks, labels, releases, or engineering collaboration loops through the GitHub CLI.
npx skillsauth add seaworld008/commonly-used-high-value-skills githubInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
当任务涉及 GitHub 仓库协作(Issue/PR/CI/Review)时使用。GitHub 技能是连接本地代码环境与远程协作平台的桥梁,它通过封装 gh CLI 工具,使 Agent 能够执行从“创建 Issue 跟踪 Bug”到“合并经过评审的 PR”全生命周期的自动化管理。
npx clawhub@latest install github
gh-fix-ci 技能进行修复。gh pr list 和 gh issue list 中提取数据,生成具有洞察力的协作报告。gh 指令执行具体动作。MEMORY.md)。gh 认证优先在任何 GitHub 自动化前,先执行:
gh auth status
如果仓库脚本需要 GitHub API,但环境里没有显式的 GITHUB_TOKEN / GH_TOKEN,优先复用本机 gh auth token,而不是直接走未认证请求。这样可以显著减少:
401 UnauthorizedUnresolved 的 Issue。gh issue create 创建结构化 Issue。gh issue edit 增加标签(Label)、里程碑(Milestone)和受指派人(Assignee)。gh issue comment 与协作者进行交互。gh pr create --fill --draft。gh pr view --json reviews。gh pr merge --auto --squash。gh pr checks 确保所有的 CI 检查项均已通过。gh run list --limit 5。gh run view <run_id> --log。deep-research,检索该报错日志的官方文档、Issue 和可靠技术资料。gh api 调用更底层的 GraphQL 或 REST API 获取历史统计数据。git fetch origin --prune,再做 discovery / upstream sync。codex/ 分支与两个 PR。403 / 上游路径 404 要单独记录并在 PR 里说明。### 🚀 识别到的任务
- **标题**: [Feature] 支持 OAuth2 登录
- **标签**: `enhancement`, `high-priority`
- **里程碑**: `v2.0-Alpha`
- **描述**: 根据本轮 Slack 讨论,我们需要引入 Google 和 GitHub 的第三方授权登录。
### 执行的 CLI 命令
`gh issue create --title "[Feature] 支持 OAuth2 登录" --label enhancement --milestone v2.0-Alpha --body "..."`
# 查看最近一次失败的 workflow 详情并输出日志到 temp 文件
RUN_ID=$(gh run list --status failure --limit 1 --json databaseId -q '.[0].databaseId')
gh run view $RUN_ID --log > /tmp/ci-failure.log
gh-address-comments 和 github 技能。当发现有 Dependabot 的 PR 时,自动运行测试,若通过则自动执行 gh pr merge --squash。GITHUB_TOKEN 环境变量。--force)、删除 Release 或批量关闭 Issue 必须经过人类二次确认。gh api 或 gh search 可能触发 GitHub 的 Secondary Rate Limit。401、上游 fallback 探测时的中间 404、或短时网络故障误报成“仓库本身异常”;这类告警要和真实仓库回归分开汇报。git 环境进行人工 rebase。gh 变更动作必须先生成 Preview,告知用户“我将要在 GitHub 上执行什么”。merge 和 delete 动作,必须分两步确认。MEMORY.md 以便后续引用。Approve 动作应由人类执行。gh 操作的输出,方便事后审计。.github/ISSUE_TEMPLATE 提高规范度。tools
飞书审批:查询和处理审批待办/已办/实例,搜索可发起审批定义、查看定义详情并发起原生审批实例。当用户要处理审批任务、查看审批实例、搜索或发起审批时使用。审批待办不是飞书任务;非审批类待办走 lark-task。不负责创建审批定义;三方审批定义不走原生提单。
development
Use when a user needs reproducible repository sizing, language composition, file counts, or code-versus-comment ratios with pygount; record exclusions and verify measurement scope before interpreting results.
development
Route a development task to the official Hermes Agent skill, Graphify Codex artifact set, Open GSD Core bundle, or optional GSD Pi bundle without duplicating their installers or state machines.
development
飞书 / Lark 通讯录:按姓名 / 邮箱解析成 open_id,或按 open_id 反查姓名 / 部门 / 邮箱 / 联系方式 / 个人状态 / 签名,以及按关键词搜索当前用户可见的机器人 / 智能体(agent)。当用户提到一个名字要下一步发消息 / 排日程,或拿到 open_id 想查具体信息时使用。不负责部门树遍历、按部门列员工、组织架构图,这类需求走原生 OpenAPI。