github-auth

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

Updated Feb 21, 2026
One-click install
npx skills add https://github.com/Gitnapp/Skills --skill github-auth-gitnapp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/Gitnapp/Skills/tree/main/github/github-auth
Command: npx skills add https://github.com/Gitnapp/Skills --skill github-auth-gitnapp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill solves the challenge of configuring reliable GitHub authentication so AI agents and users can access repositories, pull requests, issues, and APIs without repeated credential problems.

Core Features & Use Cases

  • Git Authentication Setup: Configure HTTPS personal access tokens or SSH keys for Git operations across different environments.
  • gh CLI Authentication: Set up and verify GitHub CLI login for enhanced repository and API workflows.
  • Authentication Detection: Identify available authentication methods and provide fallback paths using git credentials, tokens, or GitHub API access.
  • Use Case: Help an agent prepare a development machine for repository management tasks by selecting and validating the appropriate GitHub authentication method.

Quick Start

Ask the github-auth skill to configure GitHub authentication for this machine and verify access to repositories.

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?

GitHub authentication configuration validates credentials like personal access tokens, SSH keys, or gh CLI logins. This setup allows AI agents and users to access repositories, pull requests, issues, and APIs without encountering repeated credential problems.

How do I set up gh CLI authentication for git repository operations?

Setting up gh CLI authentication involves logging in and verifying the GitHub CLI connection. This provides a reliable access method for agent-driven repository management tasks, pulling credentials, and interacting with the GitHub API.

Can I use SSH keys instead of personal access tokens for GitHub API access?

Yes, SSH keys are fully supported as an alternative to personal access tokens for git operations. The authentication setup identifies available methods and implements fallback handling, allowing you to choose the most suitable credential type for your automated workflows.

What is the best way to handle GitHub authentication fallbacks across different environments?

Handling GitHub authentication fallbacks requires environment detection to identify available credential methods. The system then applies fallback paths using git credentials, tokens, or gh CLI, ensuring continuous API access and repository management across different setups.

Why does my git authentication fail when an agent tries to access GitHub repositories?

Git authentication fails when valid credentials are not properly configured for the operating environment. Resolving this requires setting up personal access tokens, SSH keys, or gh CLI, and relying on environment detection to apply appropriate fallback handling.