github-auth

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

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/ChimeraFoundationa/Agentx --skill github-auth-chimerafoundationa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/ChimeraFoundationa/Agentx/tree/main/skills/github/github-auth
Command: npx skills add https://github.com/ChimeraFoundationa/Agentx --skill github-auth-chimerafoundationa

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

GitHub authentication setup for agents across environments, covering git-based HTTPS tokens, SSH keys, and gh authentication, with an automatic detection flow to choose the right method.

Core Features & Use Cases

  • Git-based authentication using HTTPS personal access tokens or SSH keys
  • gh CLI authentication for API access with optional git credential setup
  • Detection flow to select the appropriate method based on environment
  • Guidance to generate tokens, create SSH keys, and configure credential helpers

Quick Start

Run the GitHub authentication setup to automatically detect and configure the best available method (git or gh) for your environment.

Frequently Asked Questions about github-auth

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

FAQPage Schema
How do I configure GitHub authentication for an automated agent across local and CI environments?

GitHub authentication for agents is configured by detecting available methods and applying git-based HTTPS tokens, SSH keys, or gh CLI credentials. The setup automatically selects the appropriate method for your local or CI environment.

What is the best way to set up git credentials when gh CLI is not installed?

Git credentials setup without gh CLI uses HTTPS personal access tokens or SSH keys. The detection flow identifies that gh is absent and guides you to generate tokens or keys, configuring git credential helpers for safe access.

Do I need Python to configure SSH keys and HTTPS tokens for repository access?

Python3 is required to run the authentication setup scripts. The scripts handle the detection logic to configure SSH keys or HTTPS tokens, ensuring safe handling of credentials for repository, PR, and workflow access.

Can I use gh CLI authentication and git credential helpers together for API access?

Yes, gh CLI authentication can be combined with optional git credential setup. This integrates gh auth setup with git credential helpers, allowing agents to access repositories, PRs, issues, and workflow actions seamlessly.

Why does my GitHub authentication setup fail to choose between SSH and HTTPS token methods?

GitHub authentication setup fails if the environment detection logic cannot find a valid method. The setup requires available SSH keys or HTTPS tokens and checks whether gh is installed to properly select and configure the right access method.

How does the GitHub auth setup handle credentials safely across different environments?

GitHub auth setup ensures safe handling of credentials by using git credential helpers and optional gh auth setup integration. It detects the environment to apply the correct HTTPS token or SSH key configuration for secure local and CI access.