github-auth

Configure GitHub authentication via HTTPS tokens, SSH keys, or gh CLI login.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/KarlinskyS/hermesSkills --skill github-auth-karlinskys
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/KarlinskyS/hermesSkills/tree/main/github/github-auth
Command: npx skills add https://github.com/KarlinskyS/hermesSkills --skill github-auth-karlinskys

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

The skill automates the setup of GitHub authentication for an agent, eliminating manual configuration of tokens, SSH keys, or gh CLI credentials.

Core Features & Use Cases

  • Detects whether git and the gh CLI are installed and whether existing credentials are present.
  • Guides the user through HTTPS personal access token setup and configures git credential storage.
  • Generates and registers an SSH key when needed and configures git to use SSH URLs.
  • Performs interactive gh CLI login when the tool is available, handling both browser and token based flows.
  • Provides fallback methods using curl and environment variables for API access.

Quick Start

Ask the agent to set up GitHub authentication for the current machine.

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 automated agent?

To set up GitHub authentication for an agent, this skill detects existing git and gh CLI credentials, then guides you through configuring HTTPS tokens, SSH keys, or gh CLI login to enable repository access.

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

Yes, GitHub authentication supports both SSH keys and HTTPS tokens. The skill configures git credential storage for HTTPS personal access tokens and can generate, register, and configure SSH keys for git SSH URLs.

Can I use gh CLI to login to GitHub in a CI environment?

Yes, you can use gh CLI to login in a CI environment. The skill performs interactive gh CLI login when the tool is available, handling both browser-based and token-based authentication flows.

What is the fallback method for GitHub API access without gh CLI?

The fallback method for GitHub API access without gh CLI uses curl and environment variables. This approach ensures you can still configure repository access when the gh CLI is not installed.

Do I need git installed to configure GitHub authentication?

Yes, you need git installed to configure GitHub authentication. The skill requires git to be present in the environment to apply HTTPS token, SSH key, or gh CLI credential workflows.

What's the best way to automate GitHub credential storage for git operations?

The best way to automate GitHub credential storage is by using git credential helpers or environment variables. This skill automates that setup by detecting existing credentials and configuring storage for tokens or SSH keys.