Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计未展示

github-integrationGitHub 集成

Agent Skill

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

总安装

225

周安装

9

GitHub Stars

公开资料未说明

下载量

73
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add serendipityoneinc/srp-claude-code-marketplace --skill "github-integration"

简介

发现并安装 AI 代理的技能。github-integration 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适用于多宿主环境技能扩展和生态集成场景。
  • 支持跨 Codex、Claude、Cursor、Gemini CLI 平台部署。
  • 通过 npx 命令直接添加第三方技能仓库。
  • 注意:需验证技能来源可靠性,避免引入安全风险。

SKILL.md

name
github-integration
description
GitHub integration for code review, PR management, and issue tracking (GitHub集成:代码审查、PR管理、Issue追踪)

GitHub Integration (GitHub 集成)

为开发者提供 GitHub 集成功能,包括代码审查、PR 管理、Issue 追踪、仓库信息查看等。

Provides GitHub integration for developers, including code review, PR management, issue tracking, and repository information.

Quick Start

View Pull Requests (查看 PR)

显示 SerendipityOneInc/srp-claude-code-marketplace 的 PR 列表
List open PRs in SerendipityOneInc/srp-claude-code-marketplace

Code Review (代码审查)

审查 PR #5 的代码变更
Review code changes in PR #5

Manage Issues (管理 Issue)

显示所有未关闭的 issue
List all open issues with label "bug"

Key Features

1. Pull Request Management (PR 管理)

View, search, and manage pull requests:

Available MCP Tools:

  • mcp__github__list_pull_requests - List PRs in a repository
  • mcp__github__search_pull_requests - Search PRs with filters
  • mcp__github__get_pull_request - Get PR details
  • mcp__github__get_pull_request_files - Get changed files
  • mcp__github__get_pull_request_status - Get CI/CD status
  • mcp__github__get_pull_request_comments - Get review comments
  • mcp__github__update_pull_request - Update PR (title, description, etc.)

Common Operations:

  • List open/closed PRs
  • Filter by author, base branch, labels
  • View PR diff and changed files
  • Check CI/CD build status
  • Read review comments

2. Code Review (代码审查)

Review code changes and provide feedback:

Available MCP Tools:

  • mcp__github__create_pull_request_review - Create a review
  • mcp__github__add_comment_to_pending_review - Add review comments
  • mcp__github__get_pull_request_reviews - Get existing reviews

Review Workflow:

  1. Get PR details and changed files
  2. Review code changes
  3. Add line-specific comments
  4. Submit review (approve/request changes/comment)

3. Issue Management (Issue 管理)

Track and manage issues:

Available MCP Tools:

  • mcp__github__list_issues - List issues
  • mcp__github__search_issues - Search issues
  • mcp__github__get_issue - Get issue details
  • mcp__github__issue_read - Get issue comments/sub-issues
  • mcp__github__issue_write - Create/update issues
  • mcp__github__add_issue_comment - Add comments

Common Operations:

  • List open issues
  • Search by labels, assignee, milestone
  • Create new issues
  • Update issue status
  • Add comments to discussions

4. Repository Information (仓库信息)

View repository details and statistics:

Available MCP Tools:

  • mcp__github__search_repositories - Search repositories
  • mcp__github__get_file_contents - Get file contents
  • mcp__github__list_branches - List branches
  • mcp__github__list_commits - List commits
  • mcp__github__get_commit - Get commit details

Common Operations:

  • Search repositories
  • View file contents
  • Check branch list
  • Review commit history
  • View commit changes

Common Workflows

Workflow 1: Review a Pull Request

1. User: "审查 PR #10"
2. Get PR details: mcp__github__get_pull_request
   - owner: "SerendipityOneInc"
   - repo: "project-name"
   - pull_number: 10
3. Get changed files: mcp__github__get_pull_request_files
4. Get build status: mcp__github__get_pull_request_status
5. Review code and provide feedback
6. User can approve or request changes

Workflow 2: Search and Track Issues

1. User: "显示所有标记为 bug 的未解决 issue"
2. Search issues: mcp__github__search_issues
   - query: "is:open label:bug repo:owner/repo"
3. Display issue list with titles and links
4. User can select specific issues to view details
5. Get issue details: mcp__github__get_issue

Workflow 3: Check CI/CD Status

1. User: "检查 PR #15 的构建状态"
2. Get PR status: mcp__github__get_pull_request_status
   - owner: "SerendipityOneInc"
   - repo: "project-name"
   - pull_number: 15
3. Display build/check results
4. Show failed checks if any

Examples (示例)

Example 1: List Open PRs (列出开放的 PR)

User (Chinese):

显示 SerendipityOneInc/srp-claude-code-marketplace 仓库中所有开放的 PR

Assistant Response:

I'll list all open PRs in the srp-claude-code-marketplace repository.

<uses mcp__github__list_pull_requests>
- owner: "SerendipityOneInc"
- repo: "srp-claude-code-marketplace"
- state: "open"

Found 3 open pull requests:

1. **Feature: Add developer plugin** (#12)
   - Author: @allenz-srp
   - Created: 2026-01-15
   - Status: ✓ All checks passed
   - [View PR](https://github.com/SerendipityOneInc/srp-claude-code-marketplace/pull/12)

2. **Fix: Update marketplace JSON schema** (#11)
   - Author: @developer
   - Created: 2026-01-14
   - Status: ⚠️ 1 check pending
   - [View PR](https://github.com/SerendipityOneInc/srp-claude-code-marketplace/pull/11)

3. **Docs: Improve README** (#10)
   - Author: @contributor
   - Created: 2026-01-13
   - Status: ✗ 2 checks failed
   - [View PR](https://github.com/SerendipityOneInc/srp-claude-code-marketplace/pull/10)

Would you like me to review any of these PRs?

Example 2: Create Issue (创建 Issue)

User (English):

Create an issue in SerendipityOneInc/srp-claude-code-marketplace: "Add DevOps plugin" with label "enhancement"

Assistant Response:

I'll create a new issue in the repository.

<uses mcp__github__issue_write>
- method: "create"
- owner: "SerendipityOneInc"
- repo: "srp-claude-code-marketplace"
- title: "Add DevOps plugin"
- body: "Create a new DevOps plugin with Kubernetes management and monitoring capabilities."
- labels: ["enhancement"]

✅ Issue created successfully!

**Issue #25: Add DevOps plugin**
- Status: Open
- Labels: enhancement
- Link: https://github.com/SerendipityOneInc/srp-claude-code-marketplace/issues/25

The issue has been created and is now visible to all repository collaborators.

Example 3: Check PR Build Status (检查 PR 构建状态)

User (Chinese):

PR #12 的构建状态如何?

Assistant Response:

让我检查 PR #12 的构建状态。

<uses mcp__github__get_pull_request_status>
- owner: "SerendipityOneInc"
- repo: "srp-claude-code-marketplace"
- pull_number: 12

**PR #12 构建状态:**

✅ **All checks passed** (3/3)

1. ✓ **validate-pr** - Passed (2m 15s)
   - JSON validation
   - Schema validation
   - Repository accessibility check

2. ✓ **lint** - Passed (1m 30s)
   - Code style check
   - Markdown linting

3. ✓ **test** - Passed (3m 45s)
   - Unit tests
   - Integration tests

**Summary:** All checks passed successfully. The PR is ready for review and merge.

Important Notes

Permission Requirements (权限要求)

  • Requires GitHub authentication (usually via GITHUB_TOKEN)
  • Read permissions: View repos, PRs, issues
  • Write permissions: Create/update issues, submit reviews
  • Admin permissions: Merge PRs, manage settings (not included in this skill)

Rate Limits (速率限制)

  • GitHub API has rate limits (5000 requests/hour for authenticated)
  • Use pagination for large result sets
  • Cache frequently accessed data when possible

Repository Format (仓库格式)

  • Always specify owner and repo separately
  • Format: owner/repo → owner: "SerendipityOneInc", repo: "project-name"
  • Repository names are case-sensitive

Search Syntax (搜索语法)

GitHub search supports powerful query syntax:

  • is:pr - Pull requests only
  • is:issue - Issues only
  • is:open / is:closed - Status filter
  • label:bug - Filter by label
  • author:username - Filter by author
  • repo:owner/name - Specific repository

Error Handling

Common errors and solutions:

  1. "Not Found" (未找到)

- Repository doesn't exist or is private - PR/Issue number is invalid - Check repository name spelling

  1. "Permission denied" (权限被拒绝)

- Need to authenticate with GitHub - Set GITHUB_TOKEN environment variable - Check token has required permissions

  1. "Rate limit exceeded" (超出速率限制)

- Too many API requests - Wait for rate limit reset - Use pagination to reduce requests

Tips for Effective Use

  1. Use search for complex queries: More efficient than list + filter
  2. Check build status: Always verify CI/CD before reviewing
  3. Batch operations: Group related actions together
  4. Use filters: Narrow down results with labels, authors, status
  5. Link references: Always provide GitHub links for easy access

Related Skills

  • gcp-developer: Access GCP resources (BigQuery, GCS, GKE)
  • Future: cicd-integration, code-quality-tools

Prerequisites

GitHub Authentication

Set up GitHub token as environment variable:

export GITHUB_TOKEN="ghp_your_github_token_here"

How to create a GitHub token:

  1. Go to GitHub Settings → Developer settings → Personal access tokens
  2. Click "Generate new token" (classic)
  3. Select scopes: repo, read:user, read:org
  4. Copy the token and save it securely
  5. Add to environment variables

MCP Server Configuration

The GitHub MCP server is configured automatically by the plugin:

{
  "github": {
    "type": "stdio",
    "command": "npx",
    "args": ["@modelcontextprotocol/server-github"],
    "env": {}
  }
}

Limitations

  • Cannot merge PRs (use GitHub web interface)
  • Cannot force push or delete branches
  • Cannot manage repository settings
  • Cannot create releases or tags
  • Review comments are final (cannot edit after submission)

Future Enhancements

Planned features:

  • CI/CD pipeline integration
  • Code quality metrics
  • Automated code review suggestions
  • Integration with Lark for notifications
  • Custom workflow automation

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

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

平台分布

Claude Code

30.55%
按下载量换算22

kilo

22.24%
按下载量换算16

windsurf

18.54%
按下载量换算14

zencoder

13.52%
按下载量换算10

cline

7.32%
按下载量换算5

pi

3.97%
按下载量换算3

安全审计

暂无安全审计结果可展示。

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills