github-auth

Configure GitHub authentication using personal access tokens, SSH keys, or gh CLI login.

Updated Apr 11, 2026
One-click install
npx skills add https://github.com/musical-basics/hermes-build-2 --skill github-auth-musical-basics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/musical-basics/hermes-build-2/tree/main/skills/github/github-auth
Command: npx skills add https://github.com/musical-basics/hermes-build-2 --skill github-auth-musical-basics

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, git, curl, python3, and includes scripts (resource) components.

What problem does it solve?

Agents interacting with GitHub often lack proper authentication, leading to failed pushes, pulls, and API requests.

Core Features & Use Cases

  • Detects whether the gh command line tool or only git is available and selects the appropriate authentication method.
  • Guides the user through setting up a personal access token for HTTPS, generating and registering an SSH key, or logging in with the gh CLI.
  • Includes a helper script that exposes authentication details and repository information for downstream skills.

Quick Start

Ask the agent to set up GitHub authentication 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 an agent to access repositories?

GitHub authentication for an agent is set up by configuring personal access tokens for HTTPS, generating and registering SSH keys, or logging in via the gh CLI to enable repository pushes, pulls, and API operations.

What's the best way to authenticate with GitHub using gh CLI or git?

Authenticating with GitHub is handled by detecting whether the gh CLI or only git is available, then selecting the appropriate method: gh CLI login, SSH keys, or personal access tokens with git credential helpers.

Do I need the gh CLI installed to configure GitHub personal access tokens?

You do not need the gh CLI installed to configure GitHub personal access tokens; the setup process detects if only git is available and guides you through HTTPS token configuration and credential helper setup.

Why does GitHub authentication fail when my agent attempts pushes or pulls?

GitHub authentication fails during pushes, pulls, or API requests when the environment lacks proper credentials, which requires setting up personal access tokens, SSH keys, or gh CLI login to resolve.

Can I use SSH keys for GitHub repository access without gh CLI?

You can use SSH keys for GitHub repository access without the gh CLI by generating an SSH key, registering it with GitHub, and configuring your environment to enable agent pushes and pulls over SSH.

How does the git credential helper work with GitHub authentication?

The git credential helper works with GitHub authentication by storing and exposing personal access token details locally, allowing downstream skills and agents to seamlessly perform pushes, pulls, and API operations.