What problem does it solve? Setting up GitHub authentication on a new machine or headless server is error-prone: password auth is disabled, tokens need the right scopes, SSH keys must be registered, and gh CLI login can hang on keyring-less systems. This Skill walks through every authentication path with detection logic and proven workarounds. ## Core Features & Use Cases - Multi-Method Authentication: Set up HTTPS personal access tokens, SSH keys, or gh CLI login (browser, device flow, or token-based) depending on what tools are installed. - Headless & Agent-Driven Support: Includes a manual OAuth device flow and a hosts.yml fallback for servers where gh auth login --with-token hangs on missing keyrings. - Environment Detection Script: Source gh-env.sh to detect the active auth method, resolve the GitHub username, and identify the current repo's owner/name. - Use Case: You are on a fresh VPS with only git installed. The Skill guides you to create a personal access token, configure the credential helper, set git identity, and verify push access — no sudo or gh installation required. ## Quick Start Set up GitHub authentication on this machine so I can clone, push, and work with my repositories.