github-auth

Configure GitHub authentication for repository, pull request, issue, and CI access.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill removes the friction of getting an agent authenticated to GitHub so it can safely work with repositories, pull requests, issues, and CI without repeated login failures.

Core Features & Use Cases

  • Automatic detection: Checks whether gh, git credentials, or environment tokens are already available and chooses the best path.
  • Flexible setup paths: Supports HTTPS personal access tokens, SSH keys, credential helpers, and gh CLI authentication.
  • Operational readiness: Verifies access, configures git identity, and provides troubleshooting guidance for common authentication errors.
  • Use case: A developer can quickly prepare a headless agent or desktop session to clone, push, and manage GitHub work without manual trial and error.

Quick Start

Ask the skill to detect your current GitHub authentication method and set up the most appropriate login flow for this machine.

Frequently Asked Questions about github-auth

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

FAQPage Schema
How do I authenticate GitHub CLI in a headless environment?

This Skill sets up GitHub authentication in headless environments by detecting existing credentials and configuring access via HTTPS tokens, SSH keys, or git credential helpers. It verifies operational readiness and provides troubleshooting guidance for login failures.

What's the best way to configure git credentials for automated agents?

The best way to configure git credentials for automated agents is using this Skill to detect available tokens or SSH keys and apply the optimal path. It supports gh CLI login, credential helpers, and environment tokens to ensure agents can clone and push repositories without manual trial and error.

Does this GitHub authentication method support both SSH keys and HTTPS tokens?

Yes, this GitHub authentication method supports both SSH keys and HTTPS personal access tokens. It evaluates your environment to choose the best path, configuring git identity and verifying access for repository and pull request operations.

Why does my git push to GitHub fail with authentication errors?

Your git push fails with authentication errors when credentials are missing or misconfigured. This Skill detects existing gh CLI or environment token states, sets up the correct authentication flow, and provides troubleshooting guidance to resolve login failures.

Do I need gh CLI installed to set up GitHub authentication?

While gh CLI is a supported dependency for login paths, you do not strictly need it as this Skill also configures access via SSH keys and HTTPS tokens. It checks for available tools including git and curl to satisfy detection and verification requirements across environments.