github-auth

Configure GitHub authentication for git and API automation workflows.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/MarbleSodas/Mavis --skill github-auth-marblesodas
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/MarbleSodas/Mavis/tree/main/skills/github/github-auth
Command: npx skills add https://github.com/MarbleSodas/Mavis --skill github-auth-marblesodas

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill prevents Git and GitHub API operations from failing by helping you configure reliable authentication for accessing repositories, pull requests, issues, and CI workflows.

Core Features & Use Cases

  • Git authentication (HTTPS tokens or SSH keys): Enables git to authenticate for cloning, fetching, pushing, and working with PR-related branches.
  • GitHub CLI authentication (gh auth): Uses gh when installed to simplify login and improve API access.
  • API fallback via curl: Supports GitHub REST API calls using a GITHUB_TOKEN when gh is unavailable.
  • Environment detection script: Uses a sourcing helper to determine the best auth method and expose GH_AUTH_METHOD, GITHUB_TOKEN, and repo context.

Quick Start

Ask the assistant to configure authentication using the GitHub CLI if available, otherwise set up Git-only HTTPS token auth and provide a working token scope list.

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 git and API automation?▼

To configure GitHub authentication, this Skill sets up either the gh CLI or HTTPS token-based git access, detecting your environment and exporting variables like GITHUB_TOKEN and GH_AUTH_METHOD for reliable repository and API operations.

What's the best way to authenticate with GitHub CLI versus SSH keys?▼

The best way to choose between GitHub CLI and SSH keys depends on your setup: this Skill detects gh CLI availability and uses it to simplify login, otherwise falling back to Git-only HTTPS token or SSH authentication methods.

Can I use curl to access the GitHub REST API without the gh CLI installed?▼

Yes, you can use curl to access the GitHub REST API without the gh CLI by configuring a personal access token. This Skill exports the GITHUB_TOKEN environment variable to authenticate your API requests reliably.

Do I need a personal access token for git operations like cloning and pushing?▼

You need a personal access token for git operations like cloning and pushing if you are using HTTPS. This Skill configures Git authentication using HTTPS tokens and provides a working token scope list for accessing repositories.

Why does my GitHub API automation fail to access repositories and pull requests?▼

Your GitHub API automation fails to access repositories and pull requests due to missing or invalid authentication. This Skill solves the problem by detecting your existing auth state and configuring reliable gh or token-based access.