github-auth

Configure GitHub authentication for git and gh CLI workflows.

19|4|Updated Apr 22, 2026
One-click install
npx skills add https://github.com/carterwayneskhizeine/hermes-agent-windows-R --skill github-auth-carterwayneskhizeine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/carterwayneskhizeine/hermes-agent-windows-R/tree/main/skills/github/github-auth
Command: npx skills add https://github.com/carterwayneskhizeine/hermes-agent-windows-R --skill github-auth-carterwayneskhizeine

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill solves GitHub authentication setup friction so you can reliably access GitHub for repository operations, pull requests, issues, and GitHub Actions.

Core Features & Use Cases

  • Supports multiple auth paths: HTTPS personal access tokens and SSH keys for git, plus optional richer authentication via the gh CLI.
  • Detects existing authentication automatically: uses gh auth status when available, otherwise falls back to git credential storage or an environment-based token (GITHUB_TOKEN / ~/.hermes/.env).
  • Works without sudo and across environments: provides a practical “git-only” workflow and a gh workflow depending on what’s installed and authenticated.

What problem does it solve?

  • Uses the right credentials for the right task: ensures git push permissions (using tokens with proper scopes) and enables API usage without requiring gh.

Quick Start

Ask: "Set up GitHub authentication for me using HTTPS with a personal access token, then verify it works for git operations."

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 git and gh CLI?

To set up GitHub authentication, the system detects existing credentials via `gh auth status`, git credential storage, or environment tokens, then configures HTTPS personal access tokens or SSH keys for repository operations. It automatically determines the best available auth method for your environment.

Can I use a personal access token for GitHub API access without gh installed?

Yes, GitHub API access works without the `gh` CLI by using a personal access token from environment variables or git credential helpers. The system enables token-based API requests and git push permissions without requiring `gh` to be installed.

Does GitHub authentication work in CI environments using only git?

GitHub authentication works in CI-like environments using a git-only workflow with environment tokens like `GITHUB_TOKEN` or stored git credentials. It requires no sudo access and configures git credential helpers directly for automated repository operations.

What's the best way to configure SSH keys for GitHub git operations?

Configuring SSH keys for GitHub involves secure key handling and detection of existing authentication methods. The system supports SSH keys alongside HTTPS personal access tokens, automatically selecting the appropriate credential type for your git push and pull request workflows.

Why does my GitHub authentication fail when using environment tokens?

GitHub authentication with environment tokens fails when the `GITHUB_TOKEN` lacks proper scopes for git push permissions or API requests. The system requires tokens with correct scopes and can fall back to `gh auth status` or git credential storage if environment tokens are insufficient.

Do I need gh CLI to manage GitHub pull requests and issues?

You do not need the `gh` CLI to manage GitHub pull requests and issues, as token-based API access handles these workflows. However, installing `gh` provides richer authentication and workflow capabilities compared to the git-only path.