Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计提醒

github-automationGitHub 自动化

Agent Skill

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。它适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项,并把仓库中的信息转成可执行的下一步。使用时需要区分只读查询和写入操作;涉及创建 PR、修改 Issue、推送分支或访问私有仓库时,应确认 token 权限、目标仓库范围和用户授权。

总安装

1,364

周安装

58

GitHub Stars

2,833

下载量

478
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:github-automation(GitHub 自动化)
来源仓库:https://github.com/davepoon/buildwithclaude
仓库路径:skills/github-automation
安装命令:
npx skills add https://github.com/davepoon/buildwithclaude --skill github-automation
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/davepoon/buildwithclaude --skill github-automation

简介

github-automation 用于自动化 GitHub 仓库和 Issue 管理,支持代码协作流程。

  • 适用于项目开发、Bug 跟踪和团队协作等场景。
  • 可创建分支、提交代码和管理 Pull Request。
  • 需配置 GitHub token 并确认仓库权限,通过 npx 安装,注意代码安全和访问控制。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

GitHub Automation via Rube MCP

Automate GitHub repository management, issue tracking, pull request workflows, branch operations, and CI/CD through Composio's GitHub toolkit.

Toolkit docs: composio.dev/toolkits/github

Prerequisites

  • Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
  • Active GitHub connection via RUBE_MANAGE_CONNECTIONS with toolkit github
  • Always call RUBE_SEARCH_TOOLS first 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.

  1. Verify Rube MCP is available by confirming RUBE_SEARCH_TOOLS responds
  2. Call RUBE_MANAGE_CONNECTIONS with toolkit github
  3. If connection is not ACTIVE, follow the returned auth link to complete GitHub OAuth
  4. 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:

  1. GITHUB_LIST_REPOSITORIES_FOR_THE_AUTHENTICATED_USER - Find target repo if unknown [Prerequisite]
  2. GITHUB_LIST_REPOSITORY_ISSUES - List existing issues (includes PRs) [Required]
  3. GITHUB_CREATE_AN_ISSUE - Create a new issue [Required]
  4. GITHUB_CREATE_AN_ISSUE_COMMENT - Add comments to an issue [Optional]
  5. GITHUB_SEARCH_ISSUES_AND_PULL_REQUESTS - Search across repos by keyword [Optional]

Key parameters:

  • owner: Repository owner (username or org), case-insensitive
  • repo: Repository name without.git extension
  • title: Issue title (required for creation)
  • body: Issue description (supports Markdown)
  • labels: Array of label names
  • assignees: Array of GitHub usernames
  • state: 'open', 'closed', or 'all' for filtering

Pitfalls:

  • GITHUB_LIST_REPOSITORY_ISSUES returns both issues AND pull requests; check pull_request field to distinguish
  • Only users with push access can set assignees, labels, and milestones; they are silently dropped otherwise
  • Pagination: per_page max 100; iterate pages until empty

2. Manage Pull Requests

When to use: User wants to create, review, or merge pull requests

Tool sequence:

  1. GITHUB_FIND_PULL_REQUESTS - Search and filter PRs [Required]
  2. GITHUB_GET_A_PULL_REQUEST - Get detailed PR info including mergeable status [Required]
  3. GITHUB_LIST_PULL_REQUESTS_FILES - Review changed files [Optional]
  4. GITHUB_CREATE_A_PULL_REQUEST - Create a new PR [Required]
  5. GITHUB_CREATE_AN_ISSUE_COMMENT - Post review comments [Optional]
  6. GITHUB_LIST_CHECK_RUNS_FOR_A_REF - Verify CI status before merge [Optional]
  7. 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 unless issue number provided)
  • merge_method: 'merge', 'squash', or 'rebase'
  • state: 'open', 'closed', or 'all'

Pitfalls:

  • GITHUB_CREATE_A_PULL_REQUEST fails with 422 if base/head are invalid, identical, or already merged
  • GITHUB_MERGE_A_PULL_REQUEST can be rejected if PR is draft, closed, or branch protection applies
  • Always verify mergeable status with GITHUB_GET_A_PULL_REQUEST immediately 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:

  1. GITHUB_LIST_REPOSITORIES_FOR_THE_AUTHENTICATED_USER - List user's repos [Required]
  2. GITHUB_GET_A_REPOSITORY - Get detailed repo info [Optional]
  3. GITHUB_CREATE_A_REPOSITORY_FOR_THE_AUTHENTICATED_USER - Create personal repo [Required]
  4. GITHUB_CREATE_AN_ORGANIZATION_REPOSITORY - Create org repo [Alternative]
  5. GITHUB_LIST_BRANCHES - List branches [Required]
  6. GITHUB_CREATE_A_REFERENCE - Create new branch from SHA [Required]
  7. GITHUB_UPDATE_A_REPOSITORY - Update repo settings [Optional]

Key parameters:

  • name: Repository name
  • private: Boolean for visibility
  • ref: Full reference path (e.g., 'refs/heads/new-branch')
  • sha: Commit SHA to point the new reference to
  • default_branch: Default branch name

Pitfalls:

  • GITHUB_CREATE_A_REFERENCE only creates NEW references; use GITHUB_UPDATE_A_REFERENCE for existing ones
  • ref must start with 'refs/' and contain at least two slashes
  • GITHUB_LIST_BRANCHES paginates via page/per_page; iterate until empty page
  • GITHUB_DELETE_A_REPOSITORY is permanent and irreversible; requires admin privileges

4. Search Code and Commits

When to use: User wants to find code, files, or commits across repositories

Tool sequence:

  1. GITHUB_SEARCH_CODE - Search file contents and paths [Required]
  2. GITHUB_SEARCH_CODE_ALL_PAGES - Multi-page code search [Alternative]
  3. GITHUB_SEARCH_COMMITS_BY_AUTHOR - Search commits by author/date/org [Required]
  4. GITHUB_LIST_COMMITS - List commits for a specific repo [Alternative]
  5. GITHUB_GET_A_COMMIT - Get detailed commit info [Optional]
  6. GITHUB_GET_REPOSITORY_CONTENT - Get file content [Optional]

Key parameters:

  • q: Search query with qualifiers (language:python, repo:owner/repo, extension:js)
  • owner/repo: For repo-specific commit listing
  • author: Filter by commit author
  • since/until: ISO 8601 date range for commits

Pitfalls:

  • Code search only indexes files under 384KB on default branch
  • Maximum 1000 results returned from code search
  • GITHUB_SEARCH_COMMITS_BY_AUTHOR requires keywords in addition to qualifiers; qualifier-only queries are not allowed
  • GITHUB_LIST_COMMITS returns 409 on empty repos

5. Manage CI/CD and Deployments

When to use: User wants to view workflows, check CI status, or manage deployments

Tool sequence:

  1. GITHUB_LIST_REPOSITORY_WORKFLOWS - List GitHub Actions workflows [Required]
  2. GITHUB_GET_A_WORKFLOW - Get workflow details by ID or filename [Optional]
  3. GITHUB_CREATE_A_WORKFLOW_DISPATCH_EVENT - Manually trigger a workflow [Required]
  4. GITHUB_LIST_CHECK_RUNS_FOR_A_REF - Check CI status for a commit/branch [Required]
  5. GITHUB_LIST_DEPLOYMENTS - List deployments [Optional]
  6. GITHUB_GET_A_DEPLOYMENT_STATUS - Get deployment status [Optional]

Key parameters:

  • workflow_id: Numeric ID or filename (e.g., 'ci.yml')
  • ref: Git reference (branch/tag) for workflow dispatch
  • inputs: JSON string of workflow inputs matching on.workflow_dispatch.inputs
  • environment: Filter deployments by environment name

Pitfalls:

  • GITHUB_CREATE_A_WORKFLOW_DISPATCH_EVENT requires the workflow to have workflow_dispatch trigger configured
  • Full path .github/workflows/main.yml is auto-stripped to just main.yml
  • Inputs max 10 key-value pairs; must match workflow's on.workflow_dispatch.inputs definitions

6. Manage Users and Permissions

When to use: User wants to check collaborators, permissions, or branch protection

Tool sequence:

  1. GITHUB_LIST_REPOSITORY_COLLABORATORS - List repo collaborators [Required]
  2. GITHUB_GET_REPOSITORY_PERMISSIONS_FOR_A_USER - Check specific user's access [Optional]
  3. GITHUB_GET_BRANCH_PROTECTION - Inspect branch protection rules [Required]
  4. GITHUB_UPDATE_BRANCH_PROTECTION - Update protection settings [Optional]
  5. GITHUB_ADD_A_REPOSITORY_COLLABORATOR - Add/update collaborator [Optional]

Key parameters:

  • affiliation: 'outside', 'direct', or 'all' for collaborator filtering
  • permission: Filter by 'pull', 'triage', 'push', 'maintain', 'admin'
  • branch: Branch name for protection rules
  • enforce_admins: Whether protection applies to admins

Pitfalls:

  • GITHUB_GET_BRANCH_PROTECTION returns 404 for unprotected branches; treat as no protection rules
  • Determine push ability from permissions.push or role_name, not display labels
  • GITHUB_LIST_REPOSITORY_COLLABORATORS paginates; iterate all pages
  • GITHUB_GET_REPOSITORY_PERMISSIONS_FOR_A_USER may be inconclusive for non-collaborators

Common Patterns

ID Resolution

  • Repo name -> owner/repo: GITHUB_LIST_REPOSITORIES_FOR_THE_AUTHENTICATED_USER
  • PR number -> PR details: GITHUB_FIND_PULL_REQUESTS then GITHUB_GET_A_PULL_REQUEST
  • Branch name -> SHA: GITHUB_GET_A_BRANCH
  • Workflow name -> ID: GITHUB_LIST_REPOSITORY_WORKFLOWS

Pagination

All list endpoints use page-based pagination:

  • page: Page number (starts at 1)
  • per_page: Results per page (max 100)
  • Iterate until response returns fewer results than per_page

Safety

  • Always verify PR mergeable status before merge
  • Require explicit user confirmation for destructive operations (merge, delete)
  • Check CI status with GITHUB_LIST_CHECK_RUNS_FOR_A_REF before merging

Known Pitfalls

  • Issues vs PRs: GITHUB_LIST_REPOSITORY_ISSUES returns both; check pull_request field
  • Pagination limits: per_page max 100; always iterate pages until empty
  • Branch creation: GITHUB_CREATE_A_REFERENCE fails with 422 if reference already exists
  • Merge guards: Merge can fail due to branch protection, failing checks, or draft status
  • Code search limits: Only files <384KB on default branch; max 1000 results
  • Commit search: Requires search text keywords alongside qualifiers
  • Destructive actions: Repo deletion is irreversible; merge cannot be undone
  • Silent permission drops: Labels, assignees, milestones silently dropped without push access

Quick Reference

TaskTool SlugKey Params
List reposGITHUB_LIST_REPOSITORIES_FOR_THE_AUTHENTICATED_USERtype, sort, per_page
Get repoGITHUB_GET_A_REPOSITORYowner, repo
Create issueGITHUB_CREATE_AN_ISSUEowner, repo, title, body
List issuesGITHUB_LIST_REPOSITORY_ISSUESowner, repo, state
Find PRsGITHUB_FIND_PULL_REQUESTSrepo, state, author
Create PRGITHUB_CREATE_A_PULL_REQUESTowner, repo, head, base, title
Merge PRGITHUB_MERGE_A_PULL_REQUESTowner, repo, pull_number, merge_method
List branchesGITHUB_LIST_BRANCHESowner, repo
Create branchGITHUB_CREATE_A_REFERENCEowner, repo, ref, sha
Search codeGITHUB_SEARCH_CODEq
List commitsGITHUB_LIST_COMMITSowner, repo, author, since
Search commitsGITHUB_SEARCH_COMMITS_BY_AUTHORq
List workflowsGITHUB_LIST_REPOSITORY_WORKFLOWSowner, repo
Trigger workflowGITHUB_CREATE_A_WORKFLOW_DISPATCH_EVENTowner, repo, workflow_id, ref
Check CIGITHUB_LIST_CHECK_RUNS_FOR_A_REFowner, repo, ref
List collaboratorsGITHUB_LIST_REPOSITORY_COLLABORATORSowner, repo
Branch protectionGITHUB_GET_BRANCH_PROTECTIONowner, repo, branch

*Powered by Composio*

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.33%
按下载量换算169

Claude

28.78%
按下载量换算138

Cursor

20.06%
按下载量换算96

Gemini CLI

9.75%
按下载量换算47

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills