github-automation
它能做什么
这项技能指导你的智能体完成日常 GitHub 工作,如创建议题、审查拉取请求和搜索代码。适合每天在 GitHub 上工作的开发人员和项目经理。
适用场景
- ✓想为某个仓库创建或列出 GitHub 议题的时候。
- ✓需要审查或管理拉取请求和分支的时候。
- ✓想在整个 GitHub 上搜索代码或仓库的时候。
技能链接
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/workflow-automation/github-automation/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在我们的主仓库中为登录问题创建一个 GitHub 议题,并列出待处理的拉取请求。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体通过 Rube MCP 检查 GitHub 连接是否处于有效状态,然后为你的请求运行相应的 GitHub 操作。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
GitHub Automation via Rube MCP
Automate GitHub repository management, issue tracking, pull request workflows, branch operations, and CI/CD through Composio's GitHub toolkit.
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active GitHub connection via
RUBE_MANAGE_CONNECTIONSwith toolkitgithub - Always call
RUBE_SEARCH_TOOLSfirst to get current tool schemas
Setup
Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
- Verify Rube MCP is available by confirming
RUBE_SEARCH_TOOLSresponds - Call
RUBE_MANAGE_CONNECTIONSwith toolkitgithub - If connection is not ACTIVE, follow the returned auth link to complete GitHub OAuth
- Confirm connection status shows ACTIVE before running any workflows
Core Workflows
1. Create and Manage Issues
When to use: User wants to create, list, or manage GitHub issues
Tool sequence:
GITHUB_LIST_REPOSITORIES_FOR_THE_AUTHENTICATED_USER- Find target repo if unknown [Prerequisite]GITHUB_LIST_REPOSITORY_ISSUES- List existing issues (includes PRs) [Required]GITHUB_CREATE_AN_ISSUE- Create a new issue [Required]GITHUB_CREATE_AN_ISSUE_COMMENT- Add comments to an issue [Optional]GITHUB_SEARCH_ISSUES_AND_PULL_REQUESTS- Search across repos by keyword [Optional]
Key parameters:
owner: Repository owner (username or org), case-insensitiverepo: Repository name without .git extensiontitle: Issue title (required for creation)body: Issue description (supports Markdown)labels: Array of label namesassignees: Array of GitHub usernamesstate: 'open', 'closed', or 'all' for filtering
Pitfalls:
GITHUB_LIST_REPOSITORY_ISSUESreturns both issues AND pull requests; checkpull_requestfield to distinguish- Only users with push access can set assignees, labels, and milestones; they are silently dropped otherwise
- Pagination:
per_pagemax 100; iterate pages until empty
2. Manage Pull Requests
When to use: User wants to create, review, or merge pull requests
Tool sequence:
GITHUB_FIND_PULL_REQUESTS- Search and filter PRs [Required]GITHUB_GET_A_PULL_REQUEST- Get detailed PR info including mergeable status [Required]GITHUB_LIST_PULL_REQUESTS_FILES- Review changed files [Optional]GITHUB_CREATE_A_PULL_REQUEST- Create a new PR [Required]GITHUB_CREATE_AN_ISSUE_COMMENT- Post review comments [Optional]GITHUB_LIST_CHECK_RUNS_FOR_A_REF- Verify CI status before merge [Optional]GITHUB_MERGE_A_PULL_REQUEST- Merge after explicit user approval [Required]
Key parameters:
head: Source branch with changes (must exist; for cross-repo: 'username:branch')base: Target branch to merge into (e.g., 'main')title: PR title (required unlessissuenumber provided)merge_method: 'merge', 'squash', or 'rebase'state: 'open', 'closed', or 'all'
Pitfalls:
GITHUB_CREATE_A_PULL_REQUESTfails with 422 if base/head are invalid, identical, or already mergedGITHUB_MERGE_A_PULL_REQUESTcan be rejected if PR is draft, closed, or branch protection applies- Always verify mergeable status with
GITHUB_GET_A_PULL_REQUESTimmediately before merging - Require explicit user confirmation before calling MERGE
3. Manage Repositories and Branches
When to use: User wants to create repos, manage branches, or update repo settings
Tool sequence:
GITHUB_LIST_REPOSITORIES_FOR_THE_AUTHENTICATED_USER- List user's repos [Required]GITHUB_GET_A_REPOSITORY- Get detailed repo info [Optional]GITHUB_CREATE_A_REPOSITORY_FOR_THE_AUTHENTICATED_USER- Create personal repo [Required]GITHUB_CREATE_AN_ORGANIZATION_REPOSITORY- Create org repo [Alternative]GITHUB_LIST_BRANCHES- List branches [Required]GITHUB_CREATE_A_REFERENCE- Create new branch from SHA [Required]GITHUB_UPDATE_A_REPOSITORY- Update repo settings [Optional]
Key parameters:
name: Repository nameprivate: Boolean for visibilityref: Full reference path (e.g., 'refs/heads/new-branch')sha: Commit SHA to point the new reference todefault_branch: Default branch name
Pitfalls:
GITHUB_CREATE_A_REFERENCEonly creates NEW references; useGITHUB_UPDATE_A_REFERENCEfor existing onesrefmust start with 'refs/' and contain at least two slashesGITHUB_LIST_BRANCHESpaginates vi
常见问题
首先需要准备什么?
需要添加 Rube MCP 服务器并建立有效的 GitHub 连接,这可以通过 GitHub 登录完成。
没有 GitHub 登录也能用吗?
不能。该技能说明,工作流运行前必须先建立有效的 GitHub 连接。
它能处理部署吗?
能。该技能提到可以通过程序处理 CI/CD 和部署。
详情
作者的原始描述
Automate GitHub repositories, issues, pull requests, branches, CI/CD, and permissions via Rube MCP (Composio). Manage code workflows, review PRs, search code, and handle deployments programmatically.
热度
- GitHub 星标
- 33k
- 排名
- #9112
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
owasp-security
33k教你的智能体掌握面向网页应用、API、移动端、容器和 AI 智能体的 OWASP 安全指南,以便发现常见弱点并提出修复建议。
agent-management
33k让你的智能体使用 AI Maestro 命令行工具创建、列出、休眠、唤醒、重命名和删除 AI 智能体,管理每个智能体的生命周期。
agent-messaging
33k让你的智能体使用智能体消息协议,在 AI 智能体之间发送、接收和回复带签名的消息,大部分在你自己的电脑上完成。
docs-search
33k让你的智能体搜索自动生成的代码文档,查找函数签名、类定义和注释,从而在修改代码之前核对真实的 API。