What problem does it solve?
This skill makes it straightforward for the agent and its user to authenticate with GitHub so repository operations, pull requests, issues, and API calls succeed reliably across machines with different tool availability and permissions.
Core Features & Use Cases
- Automatic detection of available tools and credentials to pick the best auth path (gh, git credential helpers, or token-based curl).
- HTTPS personal access token guidance including scopes, storing tokens with git credential helpers, and extracting tokens for API use.
- SSH key flow with key generation, instructions to add the public key to GitHub, and git URL rewrites for SSH usage.
- gh CLI integration and headless token login with gh auth and gh auth setup-git for unified API and git credentials.
- Troubleshooting and fallbacks such as curl-based API access and methods to extract tokens from stored git credentials.
Use cases include enabling CI pushes from headless servers, allowing the agent to create and manage PRs, and providing a fallback API access method when gh is unavailable.
Quick Start
Run the GitHub authentication detection flow and follow the recommended gh or git token/SSH setup to enable repository and API access.