github-auth

Configure GitHub authentication for git and gh across environments.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill sets up and maintains GitHub authentication for an agent by supporting git HTTPS tokens and SSH keys, plus gh CLI authentication, with automatic detection and fallback flows.

Core Features & Use Cases

  • Detects available authentication methods (git HTTPS tokens, SSH keys, gh auth) and selects the best path.
  • Configures credentials and identity for Git operations, including token storage or SSH key setup, and gh authentication when the CLI is present.
  • Provides a detection script (gh-env.sh) to surface current auth state and repo context for downstream skills.

Quick Start

Source the gh-env.sh script to load authentication state into your shell or skill context.

Frequently Asked Questions about github-auth

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

FAQPage Schema
How do I authenticate an agent with GitHub for git operations and API access?

GitHub authentication for agents is configured by detecting available git HTTPS tokens, SSH keys, or gh CLI credentials, then automatically selecting and applying the best method to enable repository operations and API access.

Does GitHub authentication work with both SSH keys and HTTPS tokens?

Yes, GitHub authentication supports both SSH keys and HTTPS tokens. It automatically detects which method is available in your environment and configures the credentials accordingly, using safe fallbacks when needed.

How do I configure gh CLI authentication for automated repository operations?

To configure gh CLI authentication, the skill detects the CLI presence and initiates gh auth, configuring credentials and identity to enable downstream repository operations, PRs, and API access automatically.

What is the best way to check GitHub auth state and repository context in scripts?

The best way to check GitHub auth state is by sourcing the gh-env.sh detection script, which surfaces current authentication status and repository context for downstream skills or shell environments.

Do I need git and curl installed to set up GitHub authentication?

Yes, you need git, curl, and python3 installed as dependencies to set up GitHub authentication. These tools enable the detection script to evaluate auth methods and configure credentials.

Why does my GitHub authentication fallback instead of using my SSH key?

GitHub authentication falls back to alternative methods like HTTPS tokens when the detection script cannot validate SSH key availability, ensuring safe defaults and maintaining access for repository operations.