github

Interact with GitHub repositories, issues, pull requests, and code via the GitHub MCP server. This skill should be used when managing repositories, creating/updating files, working with issues and PRs, searching code/repos/users, creating branches, and performing code reviews. Supports all major GitHub API operations.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "github" with this command: npx skills add huynguyen03dev/opencode-setup/huynguyen03dev-opencode-setup-github

GitHub

Base directory for this skill: /home/hazeruno/.config/opencode/skills/github

Interact with GitHub repositories through the Model Context Protocol (MCP) server for GitHub.

When to Use

  • Managing repository files (create, update, get contents)
  • Working with issues (create, update, list, comment)
  • Managing pull requests (create, review, merge, get status)
  • Searching GitHub (repositories, code, issues, users)
  • Creating and managing branches
  • Forking repositories

Quick Start

Run the CLI script with bun (use absolute path):

bun /home/hazeruno/.config/opencode/skills/github/scripts/github.ts <command> [options]

Available Commands

Repository Operations

CommandDescription
create-repositoryCreate a new GitHub repository
fork-repositoryFork a repository to your account
search-repositoriesSearch for repositories

File Operations

CommandDescription
get-file-contentsGet file or directory contents
create-or-update-fileCreate or update a single file
push-filesPush multiple files in a single commit

Branch Operations

CommandDescription
create-branchCreate a new branch
list-commitsList commits in a repository

Issue Operations

CommandDescription
create-issueCreate a new issue
get-issueGet issue details
list-issuesList repository issues
update-issueUpdate an existing issue
add-issue-commentAdd a comment to an issue

Pull Request Operations

CommandDescription
create-pull-requestCreate a new PR
get-pull-requestGet PR details
list-pull-requestsList repository PRs
get-pull-request-filesGet files changed in PR
get-pull-request-statusGet PR status checks
get-pull-request-commentsGet PR review comments
get-pull-request-reviewsGet PR reviews
create-pull-request-reviewCreate a PR review
merge-pull-requestMerge a PR
update-pull-request-branchUpdate PR branch from base

Search Operations

CommandDescription
search-repositoriesSearch repositories
search-codeSearch code across GitHub
search-issuesSearch issues and PRs
search-usersSearch GitHub users

Global Options

  • -t, --timeout <ms>: Call timeout (default: 30000)
  • -o, --output <format>: Output format: text | markdown | json | raw

Common Examples

# Get file contents
bun /home/hazeruno/.config/opencode/skills/github/scripts/github.ts get-file-contents \
  --owner facebook --repo react --path README.md

# Create an issue
bun /home/hazeruno/.config/opencode/skills/github/scripts/github.ts create-issue \
  --owner myorg --repo myrepo --title "Bug report" --body "Description here"

# List open PRs
bun /home/hazeruno/.config/opencode/skills/github/scripts/github.ts list-pull-requests \
  --owner facebook --repo react --state open

# Search code
bun /home/hazeruno/.config/opencode/skills/github/scripts/github.ts search-code \
  --q "useState filename:*.tsx"

# Create a PR review
bun /home/hazeruno/.config/opencode/skills/github/scripts/github.ts create-pull-request-review \
  --owner myorg --repo myrepo --pull-number 123 \
  --body "LGTM!" --event APPROVE

Requirements

  • Bun runtime
  • mcporter package (embedded in script)
  • GITHUB_TOKEN environment variable for authentication

Resources

  • scripts/github.ts - Main CLI tool wrapping GitHub MCP server
  • references/api_reference.md - Detailed parameter documentation for all commands

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

context7

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

deep-wiki

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

chrome-devtools

No summary provided by upstream source.

Repository SourceNeeds Review