ワンクリックで
github-integration
// Complete GitHub integration for repository management, issues, PRs, releases, and GitHub API operations
// Complete GitHub integration for repository management, issues, PRs, releases, and GitHub API operations
[HINT] SKILL.mdと関連ファイルを含む完全なスキルディレクトリをダウンロード
| name | github-integration |
| description | Complete GitHub integration for repository management, issues, PRs, releases, and GitHub API operations |
| triggers | ["github","create repository","github issue","pull request","github pr","update repo","github topics","github tags","create release","github actions"] |
Complete integration with GitHub for repository management, issue tracking, pull requests, releases, and automation via GitHub API and CLI.
The GitHub Integration Skill provides:
gh command integrationActivate this skill when the user needs to:
This skill uses gh (GitHub CLI) for most operations:
gh repo create - Create repositorygh repo edit - Update repository settingsgh repo view - View repository detailsgh repo clone - Clone repositorygh repo fork - Fork repositorygh issue create - Create issuegh issue list - List issuesgh issue view - View issue detailsgh issue edit - Update issuegh issue close - Close issuegh pr create - Create pull requestgh pr list - List pull requestsgh pr view - View PR detailsgh pr review - Review PRgh pr merge - Merge PRgh pr checks - Check PR statusgh release create - Create releasegh release list - List releasesgh release view - View releasegh release upload - Upload assetsgh release delete - Delete releaseUser: "Add topics claude-code, cursor, ai-assistant to my repo"
Workflow:
1. Identify current repository (from git remote or ask)
2. Get current topics: gh repo view --json repositoryTopics
3. Add new topics: gh repo edit --add-topic claude-code --add-topic cursor --add-topic ai-assistant
4. Verify topics added
5. Return success with updated topics list
User: "Update repo description and add homepage URL"
Workflow:
1. Get repository info
2. Ask user for new description
3. Ask user for homepage URL
4. Update: gh repo edit --description "New description" --homepage "https://example.com"
5. Verify changes
6. Return success
User: "Create bug issue for login failure"
Workflow:
1. Use issue template if available
2. Gather details:
- Title: "Login fails on mobile"
- Body: User description
- Labels: bug, high-priority
- Assignee: Optional
3. Create: gh issue create --title "..." --body "..." --label bug
4. Return issue URL
User: "Create PR from feature/login to main"
Workflow:
1. Verify current branch or checkout branch
2. Push branch to remote if needed
3. Generate PR description from commits
4. Create: gh pr create --base main --head feature/login --title "Add login feature" --body "..."
5. Assign reviewers if specified
6. Return PR URL
User: "Create v1.0.0 release with changelog"
Workflow:
1. Verify tag doesn't exist
2. Generate release notes from commits
3. Create: gh release create v1.0.0 --title "Version 1.0.0" --notes "Changelog..."
4. Upload assets if provided
5. Return release URL
User: "Tag this repo with Claude Code, Cursor, AI tools"
Workflow:
1. Parse desired topics (normalize: claude-code, cursor, ai-tools)
2. Get current topics
3. Merge with new topics (avoid duplicates)
4. Set all topics: gh repo edit --add-topic claude-code,cursor,ai-tools
5. Return complete topic list
User: "What's the status of PR #42?"
Workflow:
1. Get PR details: gh pr view 42
2. Check CI/CD status: gh pr checks 42
3. Check reviews
4. Check merge conflicts
5. Format and return status report
User: "Run the deploy workflow"
Workflow:
1. List workflows: gh workflow list
2. Find deploy workflow
3. Trigger: gh workflow run deploy.yml
4. Get run ID
5. Monitor progress
6. Return run status and URL
IMPORTANT: This skill requires GitHub CLI (gh). The skill will automatically:
gh is installedAutomatic Check:
Before any GitHub operation, the skill will verify gh is installed:
gh --version
If not installed, provide instructions based on platform:
Windows:
winget install GitHub.cli
macOS:
brew install gh
Linux (Debian/Ubuntu):
sudo apt install gh
Linux (Fedora/RHEL):
sudo dnf install gh
Linux (Arch):
sudo pacman -S github-cli
After installation, authenticate with GitHub:
gh auth login
# Set default repository (optional)
gh repo set-default owner/repo
# GitHub token (optional, gh auth is preferred)
GITHUB_TOKEN=ghp_your_token_here
# Default repository
GITHUB_REPO=owner/repo
# Ensure git is configured
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"
Topic Format:
claude-code not claude codeRecommended Topics for AI/IDE Projects:
# Primary
claude-code, cursor, anthropic, ai-assistant
# Project Type
project-template, boilerplate, starter-kit
# Technologies
mcp, mcp-server, python, nodejs
# Features
task-management, automation, web-scraping
# Integrations
jira, confluence, github, atlassian
Topic Categories:
Problem: gh not authenticated
gh auth status
# If not authenticated:
gh auth login
Problem: Insufficient permissions
Problem: Can't find repository
Problem: Topics not updating
Problem: Can't create PR
Problem: CI checks failing
gh auth instead of tokens when possible# Add multiple topics at once
gh repo edit --add-topic topic1,topic2,topic3
# Close multiple issues
gh issue list --state open | xargs -I {} gh issue close {}
# Bulk label issues
gh issue list --label needs-triage | xargs -I {} gh issue edit {} --add-label triaged
# Example: Auto-update topics on push
name: Update Topics
on:
push:
paths:
- '.github/topics.txt'
jobs:
update-topics:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Update Topics
run: |
topics=$(cat .github/topics.txt | tr '\n' ',')
gh repo edit --add-topic $topics
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Example: Update repository via API
import requests
def update_repo_topics(owner, repo, topics):
url = f"https://api.github.com/repos/{owner}/{repo}/topics"
headers = {
"Authorization": f"token {token}",
"Accept": "application/vnd.github.mercy-preview+json"
}
data = {"names": topics}
response = requests.put(url, headers=headers, json=data)
return response.json()
For detailed implementation information, see:
Note: Ensure you have proper permissions before performing repository operations. Always follow your organization's policies for repository management.