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。tavily-search 技能,搜索该报错日志在 StackOverflow 上的典型解决方案。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 提高规范度。development
Enumerating failure modes via pre-mortem analysis. Systematically identifies failure scenarios for plans, designs, and features, scoring them with RPN/AP. Does not write code.
testing
Orchestrating specialist AI agent teams as a meta-coordinator. Decomposes requests into minimum viable chains, spawns each as an independent session in AUTORUN modes, and drives to final output. Use when a task spans multiple specialist domains, requires parallel agent execution, or needs hub-and-spoke routing across the skill ecosystem.
development
Converting document formats (Markdown/Word/Excel/PDF/HTML). Converts specs from Scribe and reports from Harvest into distributable formats; generates reusable conversion scripts. Use when converting documents, building accessibility-compliant PDFs, or creating Pandoc/LibreOffice pipelines.
testing
Curating cross-agent knowledge and guarding institutional memory. Extracts patterns from agent journals into METAPATTERNS.md, detects knowledge decay, propagates best practices, prevents organizational forgetting. Use when consolidating cross-agent insights, curating memory, or auditing knowledge decay.