github-auth

Authenticate the agent with GitHub using git HTTPS tokens, SSH keys, or gh CLI.

2|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/CUexter/hermes-agent --skill github-auth-cuexter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/CUexter/hermes-agent/tree/main/skills/github/github-auth
Command: npx skills add https://github.com/CUexter/hermes-agent --skill github-auth-cuexter

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill securely establishes GitHub authentication for the agent, enabling access to repositories, PRs, and CI workflows across environments.

Core Features & Use Cases

  • Git-Only authentication via HTTPS with tokens or SSH keys, suitable for any machine with Git installed.
  • gh CLI authentication for richer API access and simplified credential management when gh is available.
  • Automated detection and selection of the best method based on environment and existing credentials.
  • Verification and guidance to ensure credentials remain valid across sessions and machines.

Quick Start

Run the GitHub authentication setup to configure git and gh credentials 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 automated repository access?

To set up GitHub authentication, you can use git HTTPS tokens, SSH keys, or the gh CLI. The automated detection flow evaluates your environment and existing credentials to select the best method.

What's the best way to authenticate with GitHub for CI environments?

Authenticating with GitHub for CI environments is best handled via git HTTPS tokens or the gh CLI. The setup verifies credentials and provides guided configuration to ensure access remains valid across sessions.

Do I need the gh CLI installed to configure GitHub authentication?

You do not need the gh CLI to configure GitHub authentication, as git with HTTPS tokens or SSH keys works independently. However, installing gh provides richer API access and simplified credential management.

How does automated GitHub authentication detection work?

Automated GitHub authentication detection works by scanning your machine for existing credentials, environment variables, and installed tooling like gh or SSH. It then selects the optimal method to enable repository access and PR handling.

Why does my GitHub SSH key authentication fail in a new environment?

GitHub SSH key authentication fails when credentials are not properly configured for the new environment. The setup process verifies authentication status and offers guided setup to establish valid SSH or HTTPS connections.

Can I use git HTTPS tokens instead of SSH keys for GitHub repository access?

You can use git HTTPS tokens instead of SSH keys for GitHub repository access. The authentication setup supports both methods and will automatically select the appropriate one based on your current environment.