github-auth

Automate GitHub authentication setup using git or gh CLI.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/HuskyDanny/hermes-agent-config --skill github-auth-huskydanny
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/HuskyDanny/hermes-agent-config/tree/main/skills/github/github-auth
Command: npx skills add https://github.com/HuskyDanny/hermes-agent-config --skill github-auth-huskydanny

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the setup of GitHub authentication for the agent, ensuring seamless integration with GitHub repositories, PRs, issues, and CI.

Core Features & Use Cases

  • Authentication Setup: Automates the configuration of GitHub authentication using git or the gh CLI.
  • Detection Flow: Identifies the optimal authentication method based on the availability of git, gh CLI, and authentication status.
  • Method Options: Offers multiple methods for authentication, including HTTPS tokens, SSH keys, and credential helpers.
  • gh CLI Support: Utilizes the gh CLI for richer GitHub API access and a simpler auth flow.
  • API Access: Provides access to the full GitHub API without gh CLI using curl with a personal access token.

Quick Start

Set up GitHub authentication using the github-auth skill.

Frequently Asked Questions about github-auth

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

FAQPage Schema
How do I automate GitHub authentication setup for an agent using git or gh CLI?

Automating GitHub authentication setup for an agent utilizes a detection flow to identify the optimal method. It configures HTTPS tokens, SSH keys, or credential helpers using git or gh CLI to ensure seamless integration with repositories and services.

What is the best way to configure GitHub authentication using gh CLI?

Configuring GitHub authentication using gh CLI provides richer API access and a simpler auth flow. The detection flow automatically selects gh CLI if available, managing tokens and credential helpers for seamless repository integration.

Do I need gh CLI installed to set up GitHub authentication with this method?

You do not strictly need gh CLI installed to set up GitHub authentication, as git is also supported. However, having gh CLI provides richer GitHub API access and a simpler authentication flow compared to using git alone.

Can I access the GitHub API without gh CLI using a personal access token?

You can access the full GitHub API without gh CLI by using curl with a personal access token. This method provides an alternative for API access when gh CLI is not installed on the system.

How does the detection flow choose between SSH keys and HTTPS tokens for GitHub authentication?

The detection flow chooses between SSH keys and HTTPS tokens by evaluating the availability of git, gh CLI, and current authentication status. It automatically identifies and configures the optimal authentication method for the agent.