github-auth

Configure git or gh CLI authentication for GitHub repositories.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures your agent can securely interact with GitHub repositories, streamlining workflows for code management, issue tracking, and CI/CD by setting up the correct authentication methods.

Core Features & Use Cases

  • Automated Authentication Setup: Configures both git (HTTPS tokens, SSH keys) and gh CLI for seamless GitHub access.
  • Intelligent Detection: Automatically identifies the best authentication method based on the user's environment.
  • Use Case: When you need the agent to clone a private repository, this skill will first ensure your GitHub credentials (via token or SSH key) are correctly configured so the agent can proceed without manual intervention.

Quick Start

Use the github-auth skill to set up your GitHub authentication for the agent.

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 AI agent to clone private repositories?

Setting up GitHub authentication involves configuring either HTTPS personal access tokens or SSH keys for the git command-line tool. This approach automatically integrates credential helpers to grant your agent seamless repository access.

What is the best way to configure git CLI access for private GitHub repositories?

The best way to configure git CLI access for private GitHub repositories is by utilizing HTTPS personal access tokens or SSH keys. This ensures robust and flexible access control for managing your code securely.

Does this GitHub authentication setup support both SSH keys and HTTPS tokens?

Yes, this GitHub authentication setup supports both SSH keys and HTTPS personal access tokens. It intelligently detects your environment to automatically identify the best authentication method for interacting with your repositories.

How do I use the gh CLI to manage secure access to GitHub repositories?

You can use the gh CLI to manage secure access by configuring it alongside git credential helpers. This combination establishes robust access control for streamlined code management, issue tracking, and CI/CD workflows.

Why do I need credential helpers for GitHub CLI authentication?

Credential helpers are needed for GitHub CLI authentication to securely store and automatically supply your credentials. They prevent manual token entry during repository interactions, ensuring seamless and secure access control.