github-auth

Configure GitHub authentication for git, PRs, issues, and API calls.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps you set up reliable GitHub authentication so the agent can interact with repositories, pull requests, issues, and GitHub Actions without repeated logins failing.

Core Features & Use Cases

  • Detects the available auth method: prefers gh when installed and authenticated, otherwise falls back to HTTPS token-based flows.
  • Supports two setup paths: HTTPS using a personal access token and SSH using an ed25519 key.
  • Enables GitHub API usage without gh: uses curl with GITHUB_TOKEN when gh is unavailable.

Use case: you want the agent to create PRs and manage workflows in a repo from a clean VPS or serverless environment where you may not have gh installed yet.

Quick Start

Tell the agent to set up GitHub authentication for working with repository PRs using the most portable method available.

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 operations without gh cli installed?

GitHub authentication can be set up without gh cli by using HTTPS personal access tokens via git credential helpers or by generating ed25519 SSH keys. This Skill detects available methods and falls back to token-based flows when gh is unavailable.

What is the best way to authenticate to GitHub in a headless server environment?

Authenticating to GitHub in a headless server environment is best handled through deterministic fallback flows supporting HTTPS tokens or SSH keys. This Skill enables GitHub API usage without gh by utilizing curl with GITHUB_TOKEN for automated scenarios.

Can I use SSH keys instead of a personal access token for GitHub authentication?

You can use SSH keys instead of a personal access token for GitHub authentication. This Skill supports two distinct setup paths: HTTPS using a personal access token and SSH using an ed25519 key, allowing you to choose your preferred method.

How do I configure git credential helpers for GitHub API calls?

Git credential helpers for GitHub API calls are configured using HTTPS personal access token injection. When gh is not installed, this Skill enables API interactions through curl using the GITHUB_TOKEN environment variable.

Does GitHub authentication work for pull requests and issues when gh is unavailable?

GitHub authentication works for pull requests and issues when gh is unavailable by applying HTTPS token-based flows or SSH keys. This Skill sets up reliable authentication for PRs, issues, and GitHub Actions across various environments.

Why does GitHub authentication fail on a clean VPS when using gh cli?

GitHub authentication may fail on a clean VPS if gh is not yet installed or authenticated. This Skill resolves this by detecting available auth methods and providing deterministic fallback flows using HTTPS tokens or SSH keys.