.cursor/skills/github-api/SKILL.md
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 skillsauth add cooker/wx-mp-article github-apiInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Comprehensive skill for working with the GitHub API across all services and operations. This skill provides intelligent routing to focused resource files covering both REST API v3 and GraphQL API v4.
| Use Case | Load Resource | Key Concepts |
|----------|---------------|--------------|
| Setting up authentication, checking rate limits, handling errors, pagination | resources/rest-api-basics.md | Auth methods, rate limits, error codes, ETags, conditional requests |
| Creating/managing repos, branches, commits, releases, tags, Git objects | resources/repositories.md | Repo CRUD, branch protection, file operations, releases, Git data |
| Working with issues, PRs, reviews, comments, labels, milestones | resources/issues-pull-requests.md | Issue tracking, code review, approvals, merging, reactions |
| Managing users, organizations, teams, permissions, membership | resources/users-organizations-teams.md | User profiles, org operations, team management, collaborators |
| Automating workflows, CI/CD runs, artifacts, secrets, runners | resources/workflows-actions.md | Workflow triggers, run management, artifacts, env secrets, runners |
| Searching repositories, code, issues, commits, users | resources/search-content.md | Repository discovery, code search, issue search, user lookup |
| Security scanning, packages, webhooks, notifications, gists, projects, apps | resources/security-webhooks.md | Dependabot, code scanning, packages, webhooks, notifications, apps |
Before loading a resource, classify your GitHub API needs:
Task Type Indicators:
rest-api-basics.mdrepositories.mdissues-pull-requests.mdworkflows-actions.mdusers-organizations-teams.mdsearch-content.mdsecurity-webhooks.mdComplexity Patterns:
rest-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 token
gh auth login
gh api /user # Test authentication
curl -H "Authorization: Bearer YOUR_TOKEN" https://api.github.com/user
→ See resources/rest-api-basics.md for complete auth details
# 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"
fi
→ See resources/rest-api-basics.md for comprehensive error handling
rate_limit endpoint before batch operationsgh CLI when available→ See resources/rest-api-basics.md for detailed patterns
Use GraphQL API v4 when:
Use REST API v3 when:
| 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 |
Remember: This is a modular reference organized by service area. Load only the resource files relevant to your current task. All major GitHub API operations are covered; use the quick reference table to find the right starting point.
development
MUST be used for Vue.js tasks. Strongly recommends Composition API with `<script setup>` and TypeScript as the standard approach. Covers Vue 3, SSR, Volar, vue-tsc. Load for any Vue, .vue files, Vue Router, Pinia, or Vite with Vue work. ALWAYS use Composition API unless the project explicitly requires Options API.
development
Vitest fast unit testing framework powered by Vite with Jest-compatible API. Use when writing tests, mocking, configuring coverage, or working with test filtering and fixtures.
development
VitePress static site generator powered by Vite and Vue. Use when building documentation sites, configuring themes, or writing Markdown with Vue components.
tools
Vite build tool configuration, plugin API, SSR, and Vite 8 Rolldown migration. Use when working with Vite projects, vite.config.ts, Vite plugins, or building libraries/SSR apps with Vite.