github-auth

Configure GitHub authentication for agents using gh CLI or git credentials.

1|Updated Apr 24, 2026
One-click install
npx skills add https://github.com/automatedigital/spark --skill github-auth-automatedigital
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/automatedigital/spark/tree/main/skills/github/github-auth
Command: npx skills add https://github.com/automatedigital/spark --skill github-auth-automatedigital

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill eliminates the hassle of manually configuring GitHub authentication for the Spark agent, ensuring it can securely interact with repositories, pull requests, issues, and CI/CD workflows without repeated credential prompts.

Core Features & Use Cases

  • Multi-Method Authentication: Supports setup via gh CLI (for full GitHub API access) or native git (using HTTPS personal access tokens or SSH keys) to work on any machine without sudo privileges.
  • Automatic Detection Flow: Automatically checks for available tools and existing credentials to select the optimal authentication path without user intervention.
  • Use Case: A software developer can use this Skill to quickly configure their Spark agent to push code changes, review PRs, and trigger GitHub Actions as part of their daily workflow.

Quick Start

Use the github-auth skill to configure GitHub authentication for your Spark agent so it can access your repositories and GitHub APIs without manual re-login.

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?

Set up GitHub authentication for an AI agent by configuring credentials via gh CLI or native git using HTTPS personal access tokens and SSH keys. This enables secure agent interactions with repositories without repeated manual login prompts.

Can I use SSH keys or personal access tokens for git authentication?

Yes, you can use SSH keys or HTTPS personal access tokens for git authentication. The setup supports native git methods alongside gh CLI, allowing flexible credential storage and persistent API access on any machine.

Does this GitHub auth setup work without sudo privileges?

Yes, this GitHub auth setup works without sudo privileges. It supports configuration via gh CLI or native git using HTTPS personal access tokens and SSH keys, allowing you to establish persistent API access on any machine.

What is the best way to configure gh CLI for developer workflows?

The best way to configure gh CLI for developer workflows is to use an automatic detection flow that checks for existing credentials and available tools. This selects the optimal authentication path for interacting with pull requests and CI/CD workflows without user intervention.

Why does my AI agent keep prompting for GitHub credentials?

Your AI agent keeps prompting for GitHub credentials because it lacks persistent API access. Configuring credential storage via gh CLI or native git with SSH keys and personal access tokens resolves this by enabling automatic auth method detection.