管理 GitHub Pull Request 和 Issue。包括创建/更新/合并 PR、添加评论、管理 Issue 等。注意:文件读写、分支操作、代码提交等请使用 git-delegation 技能。
62
73%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./manager/agent/worker-skills/github-operations/SKILL.mdThis skill allows you to manage Pull Requests and Issues via the centralized MCP Server. For git operations (clone, pull, push, commit, branch), use the git-delegation skill instead.
No environment variables needed — mcporter reads its config from the default path ./config/mcporter.json automatically.
| Task | Use This Skill | Use git-delegation |
|---|---|---|
| Create/update/close PR | ✅ | |
| Review/merge PR | ✅ | |
| Comment on PR/Issue | ✅ | |
| Create/update/close Issue | ✅ | |
| Clone repository | ✅ | |
| Pull/fetch changes | ✅ | |
| Read/write files | ✅ | |
| Create branches | ✅ | |
| Commit/push code | ✅ |
Use mcporter CLI to call MCP Server tools:
# Method 1: key=value format (recommended for simple args)
mcporter \
call mcp-github.<TOOL_NAME> key1=value1 key2=value2
# Method 2: JSON format with --args flag (for complex objects)
mcporter \
call mcp-github.<TOOL_NAME> --args '{"key1":"value1","key2":"value2"}'IMPORTANT:
--config BEFORE the call subcommand--args flag (not bare JSON string)mcp-github.<tool_name> selector formatmcporter returns JSON output. Parse with jq for clean results.
Create a new Pull Request:
mcporter \
call mcp-github.create_pull_request --args '{
"owner": "higress-group",
"repo": "agentteams",
"title": "Add new feature",
"body": "## Summary\n- Change 1\n- Change 2\n\n## Test plan\n- [ ] Test A\n- [ ] Test B",
"head": "feature-branch",
"base": "main"
}'List PRs in a repository:
mcporter \
call mcp-github.list_pull_requests owner=higress-group repo=agentteams state=openGet details of a specific PR:
mcporter \
call mcp-github.get_pull_request owner=higress-group repo=agentteams pull_number=1Update PR title, body, or state:
mcporter \
call mcp-github.update_pull_request --args '{
"owner": "higress-group",
"repo": "agentteams",
"pull_number": 1,
"title": "Updated title",
"body": "Updated description"
}'Merge a PR:
mcporter \
call mcp-github.merge_pull_request owner=higress-group repo=agentteams pull_number=1 merge_method=squashList files changed in a PR:
mcporter \
call mcp-github.get_pull_request_files owner=higress-group repo=agentteams pull_number=1Get CI status of a PR:
mcporter \
call mcp-github.get_pull_request_status owner=higress-group repo=agentteams pull_number=1Request reviewers for a PR:
mcporter \
call mcp-github.request_reviewers --args '{
"owner": "higress-group",
"repo": "agentteams",
"pull_number": 1,
"reviewers": ["reviewer-username"]
}'Add a general comment to a PR (PRs are also issues):
mcporter \
call mcp-github.add_issue_comment owner=higress-group repo=agentteams issue_number=1 body="LGTM! Great work."List comments on a PR:
mcporter \
call mcp-github.list_issue_comments owner=higress-group repo=agentteams issue_number=1Comment on a specific code line in a PR:
# First get the latest commit SHA from the PR
PR_DATA=$(mcporter \
call mcp-github.get_pull_request owner=higress-group repo=agentteams pull_number=1)
COMMIT_SHA=$(echo "$PR_DATA" | jq -r '.head.sha')
# Create a review comment
mcporter \
call mcp-github.create_pull_request_review_comment --args '{
"owner": "higress-group",
"repo": "agentteams",
"pull_number": 1,
"body": "Consider using a helper function here.",
"commit_id": "'"$COMMIT_SHA"'",
"path": "src/utils/helpers.ts",
"line": 42,
"side": "RIGHT"
}'List all review comments on a PR:
mcporter \
call mcp-github.get_pull_request_comments owner=higress-group repo=agentteams pull_number=1List reviews on a PR:
mcporter \
call mcp-github.get_pull_request_reviews owner=higress-group repo=agentteams pull_number=1Create a new issue:
mcporter \
call mcp-github.create_issue owner=higress-group repo=agentteams title="Bug report" body="Description..."List issues in a repository:
mcporter \
call mcp-github.list_issues owner=higress-group repo=agentteams state=openGet details of a specific issue:
mcporter \
call mcp-github.get_issue owner=higress-group repo=agentteams issue_number=1Update issue title, body, state, or labels:
mcporter \
call mcp-github.update_issue --args '{
"owner": "higress-group",
"repo": "agentteams",
"issue_number": 1,
"title": "Updated title",
"state": "closed"
}'Add a comment to an issue:
mcporter \
call mcp-github.add_issue_comment owner=higress-group repo=agentteams issue_number=1 body="Comment text"List comments on an issue:
mcporter \
call mcp-github.list_issue_comments owner=higress-group repo=agentteams issue_number=1List labels in a repository:
mcporter \
call mcp-github.list_labels owner=higress-group repo=agentteamsGet details of a label:
mcporter \
call mcp-github.get_label owner=higress-group repo=agentteams name=bugSearch issues and PRs:
mcporter \
call mcp-github.search_issues q="is:issue is:open repo:agentscope-ai/AgentTeams"Search code in repositories:
mcporter \
call mcp-github.search_code q="function handleAuth repo:agentscope-ai/AgentTeams"Search repositories:
mcporter \
call mcp-github.search_repositories query="agentteams language:go"Search users:
mcporter \
call mcp-github.search_users q="john location:shanghai"Get current authenticated user:
mcporter \
call mcp-github.get_meList notifications:
mcporter \
call mcp-github.list_notifications all=falseList teams in an organization:
mcporter \
call mcp-github.list_teamsList members of a team:
mcporter \
call mcp-github.list_team_members org=higress-group team_slug=core-teamcreate_pull_request_review: Has a template processing bug. For adding PR review comments, use:
add_issue_commentcreate_pull_request_review_commentgit-delegation skillgit-delegation skillcreate_pull_request (this skill)add_issue_comment, create_pull_request_review_comment (this skill)merge_pull_request (this skill)785c2db
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.