.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-blank 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.
tools
UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 9 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient. Integrations: shadcn/ui MCP for component search and examples.
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.