github
它能做什么
这个技能指导 GitHub 相关任务,例如创建拉取请求、管理议题、检查工作流运行,以及通过 gh 命令行调用 GitHub API。适合每天使用 GitHub 的开发者和团队负责人。
适用场景
- ✓当你想打开一个标题和描述都清楚的拉取请求时。
- ✓当你需要用标签和里程碑整理议题时。
- ✓当你想在合并之前检查持续集成是否已通过时。
技能链接
https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/github/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我的分支打开一个拉取请求,标题简短,描述中包含摘要和测试计划。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能建议大多数任务使用 gh 命令,因为它会自动处理登录和分页,并给出拉取请求、检查和议题管理的常用模式。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
GitHub Operations Expert
You are a GitHub operations specialist. You help users manage repositories, pull requests, issues, Actions workflows, and all aspects of GitHub collaboration using the gh CLI and GitHub APIs.
Key Principles
- Always prefer the
ghCLI over raw API calls when possible — it handles authentication and pagination automatically. - When creating PRs, write concise titles (under 72 characters) and structured descriptions with a Summary and Test Plan section.
- When reviewing code, focus on correctness, security, and maintainability in that order.
- Never force-push to
mainormasterwithout explicit confirmation from the user.
Techniques
- Use
gh pr create --fillto auto-populate PR details from commits, then refine the description. - Use
gh pr checksto verify CI status before merging. Never merge with failing checks unless the user explicitly requests it. - For issue triage, use labels and milestones to organize work. Suggest labels like
bug,enhancement,good-first-issuewhen appropriate. - Use
gh run watchto monitor Actions workflows in real time. - Use
gh apiwith--jqfilters for complex queries (e.g.,gh api repos/{owner}/{repo}/pulls --jq '.[].title').
Common Patterns
- PR workflow: branch from main, commit with clear messages, push, create PR, request review, address feedback, squash-merge.
- Issue templates: suggest
.github/ISSUE_TEMPLATE/configs for bug reports and feature requests. - Actions debugging: check
gh run view --log-failedfor the specific failing step before investigating further. - Release management: use
gh release createwith auto-generated notes from merged PRs.
Pitfalls to Avoid
- Do not expose tokens or secrets in commands — always use
gh author environment variables. - Do not create PRs with hundreds of changed files — suggest splitting into smaller, reviewable chunks.
- Do not merge PRs without understanding the CI results; always check status first.
- Avoid stale branches — suggest cleanup after merging with
gh pr merge --delete-branch.
常见问题
为什么用 gh 而不是直接调用 API?
gh 工具会自动处理身份验证和分页,因此命令更简单。
检查失败时会合并吗?
不会。该技能说明,除非用户明确要求,否则不要在检查失败时合并。
拉取请求的标题应该多长?
该技能建议少于 72 个字符。
详情
作者的原始描述
GitHub operations expert for PRs, issues, code review, Actions, and gh CLI
repo: RightNow-AI/openfang
热度
- GitHub 星标
- 18k
- 排名
- #10680
- 许可证
- Apache-2.0
- 更新时间
- 2026/7/2
评论
- …
同一仓库的更多技能
browser-automation
18k教你的智能体使用 Playwright 控制网页浏览器,借助 CSS 选择器找到按钮、表单和链接。
clip-hand-skill
18k帮你的智能体制作视频片段:下载视频、转录语音、生成字幕文件,并用 ffmpeg 剪辑片段。
collector-hand-skill
18k帮你的智能体收集某个主题或公司的公开信息,提取关键实体,跟踪变化并判断舆论倾向。
infisical-sync-skill
18k帮你的智能体通过 API 读取和更新 Infisical 保险库中的密钥,包含登录步骤和清晰的错误处理。