github-auth

Detect available methods and configure GitHub authentication for git and gh CLI.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/CHENyiru3/AI-Skills-Collections --skill github-auth-chenyiru3
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/CHENyiru3/AI-Skills-Collections/tree/main/skills-market/platforms/github/github-auth
Command: npx skills add https://github.com/CHENyiru3/AI-Skills-Collections --skill github-auth-chenyiru3

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Set up GitHub authentication for the agent using git (universally available) or the gh CLI. It covers HTTPS tokens, SSH keys, credential helpers, and gh auth, with an automatic detection flow to pick the right method.

Core Features & Use Cases

  • Git-based authentication (HTTPS tokens or SSH keys) and gh CLI authentication, with credential helper support.
  • Automatic detection flow to select the best available method and configure credentials for seamless GitHub access.
  • Use case: An agent can push commits, open PRs, and interact with GitHub Actions across repositories without manual credential setup.

Quick Start

Detect available authentication methods and configure GitHub credentials automatically for the current environment.

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 an automated agent?

To set up GitHub authentication for an automated agent, you can use PATs, SSH keys, or the gh CLI. This Skill detects the available method automatically and configures git and gh credentials for seamless access.

How does automatic GitHub credential detection work for git and gh CLI?

Automatic GitHub credential detection works by checking the current environment for available tools like git or gh CLI. It then selects the best method, applies HTTPS tokens or SSH keys, and validates the configuration.

Do I need the gh CLI installed to authenticate with GitHub via SSH?

No, you do not need the gh CLI installed to authenticate with GitHub via SSH. The Skill configures git-based SSH keys and credential helpers universally, using gh CLI only as an alternative detection method if available.

What is the best way to configure GitHub PATs for agent automation?

The best way to configure GitHub PATs for agent automation is using the built-in detection flow, which applies HTTPS tokens to credential helpers securely and provides fallback logic and troubleshooting for robust access.

Why does my automated git push fail despite having GitHub credentials configured?

Automated git pushes may fail due to invalid credentials or missing SSH keys. This Skill includes validation and fallback logic to troubleshoot authentication, ensuring secure access via PATs, SSH keys, or gh auth.

Can I use this Skill to configure GitHub authentication across different environments?

Yes, you can use this Skill to configure GitHub authentication across different environments. It enables automated setup for agents, applying detection flows to choose available methods and configure credentials accordingly.