github-auth

Configure GitHub authentication via gh CLI or Git credential helpers.

Updated May 5, 2026
One-click install
npx skills add https://github.com/iani-kuli/harness_bro --skill github-auth-iani-kuli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/iani-kuli/harness_bro/tree/main/.claude/skills/ported/github-auth
Command: npx skills add https://github.com/iani-kuli/harness_bro --skill github-auth-iani-kuli

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill resolves authentication hurdles when connecting to GitHub, ensuring the agent can securely manage repositories, pull requests, and issues without manual intervention.

Core Features & Use Cases

  • Multi-Method Auth: Supports both gh CLI for interactive flows and Git-based HTTPS/SSH tokens for headless environments.
  • Environment Detection: Automatically identifies the best available authentication method based on system configuration.
  • Use Case: When the agent needs to push code to a private repository, this skill verifies the current auth status and configures the necessary credentials to enable seamless git operations.

Quick Start

Use the github-auth skill to detect and configure the best available authentication method for this repository.

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?

GitHub authentication for automated agents is configured by detecting the best available method and establishing persistent identity using either the gh CLI or Git credential helpers for seamless repository access.

What is the best way to authenticate git in a headless CI/CD environment?

Authenticating git in a headless CI/CD environment is best handled using Git-based HTTPS or SSH tokens, which this skill configures to provide persistent access without requiring interactive login flows.

Do I need the gh CLI installed to set up secure GitHub access?

You do not need the gh CLI installed to set up secure GitHub access, as the skill supports Git credential helpers for headless environments, though gh CLI is required for interactive authentication flows.

How does environment detection work when configuring GitHub credentials?

Environment detection works by automatically identifying the current system configuration to select the optimal authentication method, ensuring the agent can securely manage repositories and pull requests without manual intervention.

Why does my agent fail to push code to a private GitHub repository?

An agent fails to push code to a private GitHub repository when authentication credentials are missing or invalid, which this skill resolves by verifying auth status and configuring the necessary tokens.

Can I use SSH tokens for GitHub API-based interactions in automated workflows?

You can use Git-based HTTPS or SSH tokens for GitHub API-based interactions in automated workflows, allowing the agent to establish persistent identity and access tokens for headless repository management.