github-auth

Configure GitHub authentication for git HTTPS tokens, SSH keys, and gh CLI.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Designed to streamline access to GitHub from the Hermes Agent, this skill configures authentication across HTTPS tokens, SSH keys, and the gh CLI, and it automatically selects the most appropriate method based on the environment.

Core Features & Use Cases

  • Unified setup for git-based and gh-based authentication to cover diverse environments and workflows.
  • Automatic detection flow to choose gh when authenticated, with a robust fallback to git authentication when needed.
  • Credential guidance and tooling support for token creation, SSH key management, and credential helpers to enable reproducible deployments.

Quick Start

Install the required tools and run an authentication flow to verify access.

Frequently Asked Questions about github-auth

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

FAQPage Schema
How do I configure GitHub authentication for an automated agent environment?

To configure GitHub authentication, you can set up git HTTPS tokens, SSH keys, or gh CLI credentials. This skill automates that setup by detecting the environment and selecting the most appropriate method to enable repository access.

What's the best way to authenticate gh CLI versus standard git for workflows?

Authenticating via gh CLI offers an integrated workflow experience, while standard git relies on SSH keys or HTTPS tokens. This setup uses an automatic detection flow that prefers gh when available, with a fallback to git authentication.

Do I need to install gh and git before setting up GitHub authentication?

Yes, you need git as a required dependency for GitHub authentication, while gh is optional. The detection flow checks for gh availability to choose the optimal method, but it falls back to git authentication when gh is absent.

How does automatic authentication detection work for SSH and HTTPS tokens?

Automatic authentication detection works by evaluating the environment for gh CLI availability and authenticated state. If gh is authenticated, it is used; otherwise, the flow falls back to configuring git via SSH keys or HTTPS tokens.

Why does git authentication fail when gh CLI is not authenticated?

Git authentication may fail if gh CLI is not authenticated because the detection flow cannot leverage gh credentials. In this case, it falls back to standard git methods, requiring manual setup of SSH keys or HTTPS tokens.

Can I use SSH keys and HTTPS tokens for reproducible GitHub deployments?

Yes, you can use SSH keys and HTTPS tokens for reproducible GitHub deployments. This skill provides credential guidance and tooling support for token creation and SSH key management to ensure consistent access.