github-auth

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

GitHub authentication setup so you can reliably access repositories, pull requests, issues, and GitHub Actions without getting blocked by missing credentials.

Core Features & Use Cases

  • Git-only authentication: Configure HTTPS personal access tokens (or cached/store credentials) and SSH keys without installing extra tools.
  • gh CLI authentication: Use gh for a simpler login flow and richer GitHub API access when gh is available.
  • API fallback support: Use curl with a personal access token when gh is not installed, enabling other GitHub skills to function.

Use case: You want the agent to update files, open PRs, and manage workflows for one or more GitHub repos from a server or laptop, even if you can’t use interactive browser login.

Quick Start

Set a GitHub personal access token with scopes including repo and workflow, then configure git credential helper (store or cache) and set your git user.name and user.email so the agent can authenticate for Git operations and API calls.

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 using a personal access token for headless servers?

To set up GitHub authentication using a personal access token on headless servers, configure the git credential helper to store or cache the token, and set your git user.name and user.email. This enables consistent credential access for Git and API operations without interactive browser login.

Can I authenticate with the GitHub API if gh CLI is not installed?

You can authenticate with the GitHub API without the gh CLI by using curl with a personal access token. This fallback method provides the necessary authenticated access for other GitHub skills to function and perform repository operations.

What is the best way to configure SSH keys for GitHub repository access?

Configuring SSH keys for GitHub repository access involves setting up local SSH keys and validating existing auth state via git configuration. This method provides reliable authenticated access to repositories, pull requests, and workflows without requiring additional tools.

Does GitHub authentication work for both local development and automated workflows?

GitHub authentication works for both local development and headless servers by applying consistent credentials across multiple skills and sessions. It supports HTTPS tokens and SSH keys to enable repository, PR, issue, and workflow operations.

Do I need to validate existing git configuration before setting up GitHub authentication?

You need to validate existing auth state via gh status and git configuration before setting up GitHub authentication. This validation process ensures the agent correctly exports or derives token and user context for downstream API usage.