github-automation
它能做什么
这个工具可以帮你管理 GitHub 上的任务,比如议题、拉取请求、分支和工作流。它会自动完成这些操作,并遵循你仓库的规则,既高效又安全。
适用场景
- ✓当你需要自动化 GitHub 上重复性的任务时。
- ✓当你在一个仓库中管理多个项目或多位协作者时。
- ✓当你希望仓库的安全规则和策略始终被遵守时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/github-automation/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在 'my-project' 仓库中创建一个新议题,标题为“登录错误”,描述为“用户无法访问该平台。””
每周 5 个新技能,1 分钟读完。
工作原理
这个工具通过名为 Rube MCP 的系统连接到 GitHub。它会先检查你仓库的规则,然后执行你要求的操作,比如创建议题或更新拉取请求,确保一切都按照既定策略进行。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
GitHub Automation via Rube MCP
Use Composio's GitHub toolkit through Rube MCP while preserving repository policy, exact revision identity, and branch protection.
When to Use
Use for programmatic GitHub issue, pull-request, branch, Actions, deployment, collaborator, or protection tasks when Rube MCP is available. Prefer the native gh workflow or a repository-specific maintainer command when local repository policy requires it.
Setup
- Confirm
RUBE_SEARCH_TOOLSis available. - Search for the current GitHub tool schemas before composing calls.
- Use
RUBE_MANAGE_CONNECTIONSwith toolkitgithuband complete OAuth only if the connection is not active. - Resolve the exact
owner/repo; do not rely on a similarly named repository.
Never request, print, or persist GitHub credentials in prompts or artifacts.
Repository Policy Gate
Before mutation, read AGENTS.md, contribution and maintainer docs, then inspect the default branch and effective protection. Repository-native commands and required checks take precedence over generic Rube operations.
If a repository provides a guarded merge or release command, use it instead of the generic merge tool. In agentic-awesome-skills, use antigravity-maintainer-batch-release and npm run merge:batch so exact-SHA review, fresh check-suite binding, and protected main are enforced.
Workflows
Issues
- List or search existing issues before creating a duplicate.
- Distinguish issues from pull requests in mixed results.
- Read the current item, comments, labels, and linked PRs before changing state.
- Create, comment, label, assign, or close only within the user's requested scope.
- Re-read the item and verify the resulting state.
Paginate until the requested result set is complete. Treat silent omission of labels or assignees as a permissions failure, not success.
Pull requests
- Resolve the PR and capture its number, base, full head SHA, draft state, author, fork identity, and mergeability.
- Inspect changed files, reviews, conversations, and required check runs.
- Bind every review or approval decision to the current full head SHA.
- Create or update the PR body truthfully; never mark pending tests or reviews as completed.
- Immediately before merge, re-read base/head identity, branch protection, mergeability, required checks, and repository policy.
- Use the repository's guarded merge path. Call a generic merge tool only when policy permits it and the user authorized the merge.
- Verify the PR reports
MERGEDand confirm the target branch contains the intended commit.
Do not treat a successful API call that enables auto-merge or queues work as an immediate merge.
Branches and references
- Resolve the source commit SHA and target ref explicitly.
- Create topic branches rather than updating protected/default branches directly.
- Reject non-fast-forward or force updates unless the user explicitly authorizes them and repository policy permits them.
- Confirm the remote ref after mutation.
Deletion, force-push, default-branch changes, and protection changes are destructive or high-impact actions requiring explicit authorization.
Actions and deployments
- Resolve the workflow by trusted ID or path and confirm
workflow_dispatchsupport before dispatch. - Bind run inspection to the intended event, ref, and head SHA.
- Distinguish
queued,in_progress,action_required,completed, andskippedstates. - Read failed job logs before proposing source changes.
- Wait for terminal success and verify the deployed or published surface separately.
Do not approve fork workflow runs by raw run ID when the repository provides a guarded approval command.
Permissions and protection
- Read collaborators, role, branch protection, and applicable rulesets before proposing changes.
- Treat a 404 protection response as “not configured” only after confirming repository and branch identity.
- Show the exact before/after policy and impact before any protection or permission mutation.
- Re-read effective state after the change.
Failure Rules
- Re-resolve tool schemas when Rube reports missing or changed parameters.
- Stop on repository ambiguity, stale head/base SHA, missing permissions, incomplete pagination, or inconclusive protection state.
- Never bypass required checks, reviews, merge queues, maintainer commands, or server-side branch protection.
…
常见问题
什么是 Rube MCP?
它是一个让 AI 工具以安全、可控的方式与 GitHub 等其他平台交互的系统。
我可以修改分支保护规则吗?
这个工具不允许直接修改分支保护规则。它会在现有规则内运行,以确保安全。
如果任务失败了会怎样?
任务失败时,工具会停止并报告原因,比如权限不足或某条规则阻止了该操作。它不会忽略失败或安全规则。
详情
作者的原始描述
Operate GitHub issues, pull requests, branches, checks, workflows, and permissions through Rube MCP. Use when GitHub work must be queried or changed programmatically with repository-policy safeguards.
热度
- GitHub 星标
- 48k
- 排名
- #4747
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。