github-auth

Automate GitHub authentication setup for Git and gh CLI clients.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Manually configuring GitHub authentication across various tools can be cumbersome. This skill provides an automated, unified authentication method for GitHub.

Core Features & Use Cases

  • Automated Git Setup: Offers an interactive process to set up GitHub authentication using git.
  • SSH and Token Support: Allows configuration of both SSH keys and HTTPS personal access tokens.
  • gh CLI Integration: For those with the gh CLI installed, it supports richer API access.
  • Detection and Configuration: It checks the availability and configuration of gh, and provides an alternative for git users.
  • Environment Variable Management: Automatically manages environment variables and Git credentials for gh CLI.
  • Repository Detection: When working within a GitHub repository, the skill identifies the owner and repository name.

Quick Start

Run 'source scripts/gh-env.sh' in the root directory of the skill to automatically detect your GitHub auth method and repository information.

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 automatically?

To set up GitHub authentication automatically, you can run a single command that detects your available tools and configures Git and gh CLI credentials interactively. It unifies the setup process across both clients without manual configuration.

What's the best way to configure SSH keys and HTTPS tokens for GitHub?

The best way to configure SSH keys and HTTPS tokens for GitHub is using an automated setup tool that handles both credentials interactively. This streamlines the process and ensures your Git credentials are correctly managed.

Do I need the gh CLI installed to automate Git authentication setup?

No, you do not need the gh CLI installed to automate Git authentication setup. The process checks for gh CLI availability to provide richer API access, but it provides a full alternative configuration for standard Git users.

How does GitHub repository detection work when configuring Git credentials?

GitHub repository detection works by automatically identifying the owner and repository name when you run the setup script within a repository directory. This helps accurately apply the Git credentials and environment variables for your specific project.

Can I manage environment variables for gh CLI during GitHub authentication?

Yes, you can manage environment variables for gh CLI during GitHub authentication. The automated setup process handles environment variable management and configures Git credentials automatically to ensure seamless API access.

Why does configuring GitHub authentication across multiple tools fail manually?

Configuring GitHub authentication manually across multiple tools often fails due to misaligned credentials and environment variables. An automated, unified authentication method prevents these errors by interactively setting up both SSH and HTTPS tokens.