github-auth

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

13|3|Updated May 12, 2026
One-click install
npx skills add https://github.com/kevinnft/ai-agent-skills --skill github-auth-kevinnft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/kevinnft/ai-agent-skills/tree/main/skills/github/github-auth
Command: npx skills add https://github.com/kevinnft/ai-agent-skills --skill github-auth-kevinnft

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

GitHub authentication is essential for agents to securely access repositories, PRs, issues, and CI workflows. It supports two pathways: git-based authentication using HTTPS tokens or SSH keys, and gh CLI authentication for richer API access.

Core Features & Use Cases

  • Git authentication options: HTTPS with personal access tokens or SSH keys, plus remote URL handling.
  • gh CLI authentication: Interactive login and token-based flow for broader GitHub API access.
  • Verification & persistence: Detects current auth status and persists credentials for future sessions.

Quick Start

Run the assistant's GitHub authentication flow by choosing git HTTPS with a token, SSH, or gh login, then verify authentication status.

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?

Configure GitHub authentication for agents by selecting either git HTTPS with a personal access token, SSH keys, or gh CLI login, then verify the authentication status to ensure secure repository access.

What's the best way to set up gh CLI authentication for remote API access?

The best way to set up gh CLI authentication is using the interactive login or token-based flow, which provides broader GitHub API access for managing PRs, issues, and CI workflows.

Does this GitHub authentication method support both SSH and HTTPS?

Yes, GitHub authentication supports both SSH keys and HTTPS with personal access tokens, handling remote URL configurations to securely access repositories across local machines and remote servers.

Can I use GitHub token authentication in CI environments?

Yes, token-based GitHub authentication is applicable in CI environments, handling credential persistence and detection to verify auth status for automated git operations and API access.

Do I need git or gh installed to authenticate with GitHub?

Yes, you need git and/or gh CLI installed to authenticate with GitHub, as the verification step requires these tools to confirm authentication status and persist credentials for future sessions.