Loading...
Loading...
Orchestrates comprehensive GitHub API access across all services. Intelligently routes API operations to specialized resource files covering authentication, repositories, issues/PRs, workflows, security, and more. Use when implementing GitHub integrations, automating operations, or building applications that interact with GitHub.
npx skill4agent add markpitt/claude-skills github-api| Use Case | Load Resource | Key Concepts |
|---|---|---|
| Setting up authentication, checking rate limits, handling errors, pagination | | Auth methods, rate limits, error codes, ETags, conditional requests |
| Creating/managing repos, branches, commits, releases, tags, Git objects | | Repo CRUD, branch protection, file operations, releases, Git data |
| Working with issues, PRs, reviews, comments, labels, milestones | | Issue tracking, code review, approvals, merging, reactions |
| Managing users, organizations, teams, permissions, membership | | User profiles, org operations, team management, collaborators |
| Automating workflows, CI/CD runs, artifacts, secrets, runners | | Workflow triggers, run management, artifacts, env secrets, runners |
| Searching repositories, code, issues, commits, users | | Repository discovery, code search, issue search, user lookup |
| Security scanning, packages, webhooks, notifications, gists, projects, apps | | Dependabot, code scanning, packages, webhooks, notifications, apps |
rest-api-basics.mdrepositories.mdissues-pull-requests.mdworkflows-actions.mdusers-organizations-teams.mdsearch-content.mdsecurity-webhooks.mdrest-api-basics.mdhttps://api.github.comhttps://api.github.com/graphql# Repository operations
gh repo create NAME
gh repo view owner/repo
gh repo clone owner/repo
# Issues
gh issue list
gh issue create
gh issue close NUMBER
# Pull requests
gh pr list
gh pr create
gh pr merge NUMBER
# Actions
gh workflow run WORKFLOW
gh run list
gh run view RUN_ID
# Search
gh api search/repositories -f q="QUERY"
gh api search/code -f q="QUERY"
gh api search/issues -f q="QUERY"
# Authentication
gh auth login
gh auth status
gh auth tokengh auth login
gh api /user # Test authenticationcurl -H "Authorization: Bearer YOUR_TOKEN" https://api.github.com/userresources/rest-api-basics.md# Add label to multiple issues
for issue in 1 2 3; do
gh api repos/owner/repo/issues/$issue/labels -X POST -f labels[]=bug
sleep 1 # Rate limiting
done# Trigger workflow with inputs
gh workflow run build.yml -f environment=production
# Monitor run status
gh api repos/owner/repo/actions/runs -f per_page=1 \
--jq '.workflow_runs[0].conclusion'# Check response status
response=$(gh api repos/owner/repo -i 2>&1)
if echo "$response" | grep -q "HTTP/2 404"; then
echo "Not found"
firesources/rest-api-basics.mdrate_limitghresources/rest-api-basics.md| Problem | Resource | Section |
|---|---|---|
| "403 rate limited" | rest-api-basics.md | Rate Limiting |
| "401 unauthorized" | rest-api-basics.md | Authentication Methods |
| "422 validation failed" | rest-api-basics.md | Error Response Format |
| Cannot push to branch | repositories.md | Branch Protection |
| Merge conflicts in PR | issues-pull-requests.md | Merging |
| Workflow not triggering | workflows-actions.md | Workflow Management |
| Results not searchable yet | search-content.md | Search Code/Repositories |