github-auth

Configure git or gh authentication for GitHub repositories and CI.

27|2|Updated Jan 15, 2024
One-click install
npx skills add https://github.com/erfanzar/Xerxes-Agents --skill github-auth-erfanzar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/erfanzar/Xerxes-Agents/tree/main/src/python/xerxes/skills/github/github-auth
Command: npx skills add https://github.com/erfanzar/Xerxes-Agents --skill github-auth-erfanzar

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

The agent needs reliable GitHub authentication to work with repositories, PRs, issues, and CI. This skill provides flexible setups using either modern git-based HTTPS credentials or SSH keys, with automatic detection to pick the best method.

Core Features & Use Cases

  • Git/gh authentication setup: supports HTTPS tokens, SSH keys, and gh auth flows.
  • Automatic detection: checks for gh availability and authentication status, falling back to git when necessary.
  • Guidance and onboarding: instructs users on token creation, credential storage, and identity configuration.
  • Use Case: configure a local machine or CI runner to enable seamless GitHub operations for Xerxes.

Quick Start

Run the agent to detect and configure GitHub authentication automatically.

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 automated agent or CI runner?

GitHub authentication for an automated agent or CI runner is configured by applying git credentials or gh authentication. This skill detects available tools and applies the best method, using HTTPS tokens or SSH keys, to enable repository access.

What is the best way to configure git credentials when gh-cli is not installed?

The best way to configure git credentials without gh-cli is to fall back to standard git authentication. This skill detects unavailable gh-cli tools and safely defaults to git credential configuration using HTTPS tokens or SSH keys.

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

Yes, this GitHub authentication method supports both SSH keys and HTTPS tokens. It automatically detects available credential types and applies safe defaults to configure either modern git-based HTTPS credentials or SSH keys for repository access.

How do I validate my GitHub authentication status before running repository operations?

To validate your GitHub authentication status before repository operations, the skill checks for gh availability and current authentication state. It detects installed tools, validates authentication status, and provides fallback methods with safe defaults if validation fails.

Why does my automated agent need separate GitHub authentication configuration?

An automated agent needs separate GitHub authentication configuration to securely access repositories, PRs, issues, and CI interactions. This skill provides flexible HTTPS or SSH setups, ensuring the agent has reliable, validated credentials across local, remote, and CI environments.