github-auth

Configure GitHub authentication for git, SSH, gh CLI, and API access.

Updated May 24, 2026
One-click install
npx skills add https://github.com/anxiety135790/hermes-skills --skill github-auth-anxiety135790
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/anxiety135790/hermes-skills/tree/main/github/github-auth
Command: npx skills add https://github.com/anxiety135790/hermes-skills --skill github-auth-anxiety135790

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill removes the friction of setting up GitHub authentication so you can work with repositories, pull requests, issues, and CI without manual trial and error.

Core Features & Use Cases

  • HTTPS token setup: Configures Git to use personal access tokens for repository access on machines without extra tooling.
  • SSH key setup: Creates and verifies SSH-based authentication for users who prefer key-based access.
  • gh CLI login: Uses GitHub CLI authentication when available for a simpler, unified login and API workflow.
  • Practical fallback guidance: Handles common cases like missing gh, stale credentials, multiple accounts, and GitHub API access through curl.

Quick Start

Ask the assistant to set up GitHub authentication for your machine and choose the best method for your environment.

Frequently Asked Questions about github-auth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up GitHub authentication for git on a headless server?

To set up GitHub authentication on a headless server, you can configure a personal access token for HTTPS or generate an SSH key. The process detects available credentials and applies the best method for environments lacking a browser.

What is the best way to configure GitHub CLI login when gh is unavailable?

When gh CLI is unavailable, the best way to configure GitHub access is using a personal access token with git over HTTPS, or setting up an SSH key. Fallback guidance handles stale credentials and API access via curl.

Does git authentication via SSH key work for GitHub API access and pull requests?

SSH key authentication works for repository operations, but GitHub API access and pull request management typically require a personal access token or gh CLI login to handle API requests properly.

Why does my GitHub personal access token fail on multiple accounts?

GitHub personal access tokens fail on multiple accounts due to credential overlap or stale logins. Authentication setup detects existing credentials, handles multiple accounts, and verifies the correct token or SSH key is applied.

Can I use gh CLI to manage git authentication and API tasks locally?

Yes, you can use gh CLI to manage git authentication and API tasks locally. It provides a unified login workflow that handles repository access, pull requests, issues, and CI tasks securely.