github-auth

Automates GitHub authentication setup for git, SSH, gh CLI, and API access.

247|22|Updated Dec 11, 2024
One-click install
npx skills add https://github.com/graniet/kheish --skill github-auth-graniet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/graniet/kheish/tree/main/skills/github/github-auth
Command: npx skills add https://github.com/graniet/kheish --skill github-auth-graniet

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Manually configuring GitHub authentication for AI agents is time-consuming and error-prone, with different setup steps required for git HTTPS tokens, SSH keys, and the gh CLI that vary by operating system and environment. This Skill removes that friction with a universal, auto-detecting flow that works on any machine with git installed, no sudo access required.

Core Features & Use Cases

  • Multi-Method Auth Support: Covers git HTTPS personal access tokens, SSH keys, and gh CLI authentication to fit any user preference or environment constraint.
  • Auto-Detection Flow: Automatically checks for available tools (gh CLI, existing credentials) and selects the optimal authentication method without user intervention.
  • Fallback API Access: Enables full GitHub API access via curl with a personal access token even when the gh CLI is not installed.
  • Use Case: A software engineer can use this Skill to quickly configure their AI agent to push code, open pull requests, and manage GitHub issues across multiple repositories without repeating manual credential setup for each project or environment.

Quick Start

Use the github-auth skill to automatically detect and configure the correct GitHub authentication method for your agent's GitHub development workflow.

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 AI agent in a headless environment?

To configure GitHub authentication for a headless AI agent, an auto-detecting flow supports git HTTPS personal access tokens, SSH keys, and gh CLI login without requiring sudo privileges.

What's the best way to set up git HTTPS tokens and SSH keys for automated repository access?

An auto-detection flow checks for existing credentials and selects the optimal authentication method for git HTTPS tokens or SSH keys based on your environment constraints.

Can I access the GitHub API with curl if the gh CLI is not installed?

Yes, you can access the GitHub API via curl using a personal access token, enabling full API interactions even when the gh CLI is not installed.

Do I need sudo access to configure gh CLI login flows on local machines?

No, you do not need sudo access to configure gh CLI login flows or SSH keys; the authentication setup works on any local machine with git installed.

Why does GitHub authentication setup vary between different operating systems and environments?

GitHub authentication setup varies because operating systems require distinct steps for git HTTPS tokens, SSH keys, and gh CLI, which an auto-detecting flow unifies.