github-auth

Detect and configure GitHub authentication via HTTPS, SSH, or gh CLI.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Seamless and automatic GitHub authentication for the agent across environments, enabling secure access to repositories, PRs, and workflows without manual setup.

Core Features & Use Cases

  • Automatic detection of authentication method (gh vs git) and credential readiness
  • Supports HTTPS tokens, SSH keys, credential helpers, and gh authentication flows
  • Works across local machines, servers, and containers to enable push, pull, and PR operations

Quick Start

Install or run the detection flow to configure GitHub authentication for your 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 AI agent automatically?

GitHub authentication for an AI agent is set up by running a detection flow that selects between git HTTPS/SSH credentials and the gh CLI, configuring token-based access or SSH keys automatically.

What is the best way to configure git credentials for automated repository access?

Configuring git credentials for automated repository access is best handled by detecting existing SSH keys or HTTPS tokens and applying the appropriate git credential helper without manual setup.

Does this GitHub authentication method work with both SSH keys and gh CLI?

Yes, GitHub authentication works with both SSH keys and the gh CLI by running a detection flow to pick the appropriate method and configure the credential helper or token automatically.

Can I use gh CLI authentication for local machines and servers to enable PR workflows?

Yes, you can use gh CLI authentication on local machines and servers to enable repository access and PR workflows, applying token configuration and git credential helpers across environments.

Do I need git installed to use automatic GitHub credential detection?

Yes, git is required as a dependency for automatic GitHub credential detection, while gh is optional but supports gh authentication flows and PR workflows when present.

Why does my AI agent fail to access GitHub repositories without manual token setup?

AI agents fail to access GitHub repositories without manual token setup because git credential helpers or SSH keys are missing, which this automatic detection flow configures seamlessly.