github-auth

Configure GitHub authentication using HTTPS tokens or SSH keys.

Updated Sep 1, 2021
One-click install
npx skills add https://github.com/unclehowell/unclehowell --skill github-auth-unclehowell
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/unclehowell/unclehowell/tree/main/skills/github/github-auth
Command: npx skills add https://github.com/unclehowell/unclehowell --skill github-auth-unclehowell

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Agents need authenticated access to GitHub to clone repositories, create pull requests, and use the GitHub API, but setting up credentials manually can be error‑prone and varies between HTTPS tokens and SSH keys.

Core Features & Use Cases

  • Automatic detection of available tools (git and gh) and existing authentication state.
  • Two setup paths: a git‑only flow using HTTPS personal access tokens or SSH keys, and a richer gh CLI flow.
  • Credential storage via Git credential helpers or environment variables for API calls.
  • Troubleshooting guidance for common failures such as missing scopes or SSH connectivity issues.
  • Applicable scenarios: initializing new agent environments, CI/CD runners, or any workstation that requires GitHub access without manual configuration.

Quick Start

Use the github-auth skill to automatically configure GitHub authentication 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 configure GitHub authentication for an automated agent environment?

To configure GitHub authentication, the setup detects existing credentials and selects either an HTTPS personal access token or SSH key flow. Credentials are then stored securely using Git credential helpers or environment variables for API access.

What is the best way to set up Git credentials for both cloning and API access?

The best way to set up Git credentials is using the gh CLI flow, which provides a richer setup path than git alone. It handles repository cloning and GitHub API access by managing credential storage automatically.

Do I need the gh CLI installed to use SSH keys for GitHub access?

No, you do not need the gh CLI to use SSH keys for GitHub access. A git-only flow is available that configures SSH keys independently, making the gh CLI an optional dependency for environments with basic git installed.

Why does my GitHub authentication fail after setting up a personal access token?

GitHub authentication failures with a personal access token often stem from missing scopes or improper credential helper configuration. Troubleshooting guidance for these common failures is included to resolve missing permissions and connectivity issues.

Can I use this GitHub authentication setup for CI/CD runners?

Yes, you can use this GitHub authentication setup for CI/CD runners. It is specifically applicable for initializing new agent environments, CI/CD runners, or any workstation that requires GitHub access without manual configuration.