github-auth

Configure GitHub authentication across git and gh using HTTPS tokens or SSH keys.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/thisismynewfmail-ui/Monika-agent --skill github-auth-thisismynewfmail-ui
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/thisismynewfmail-ui/Monika-agent/tree/main/skills/github/github-auth
Command: npx skills add https://github.com/thisismynewfmail-ui/Monika-agent --skill github-auth-thisismynewfmail-ui

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill removes friction when setting up authentication so the agent can interact with GitHub repositories, the API, and CI systems across different environments.

Core Features & Use Cases

  • Automatic detection and fallbacks: Chooses between gh CLI, HTTPS tokens, or SSH keys based on what is available.
  • Multiple auth flows: Guides users to create and store personal access tokens, configure git credential helpers, or generate SSH keys and test SSH access.
  • Use Case: On a headless server without sudo, use the git-only HTTPS token flow to grant push and API access, or on a desktop use gh auth for streamlined API and git credential setup.

Quick Start

Use the github-auth skill to detect available tools and configure authentication for GitHub using the best method for your environment.

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 gh CLI on a headless server?

GitHub authentication detects available tools and applies the best method for your environment, handling repository operations and API requests across local, headless, and CI systems.

What is the best way to set up GitHub credentials when I don't have gh CLI installed?

Setting up GitHub credentials without gh CLI is handled by configuring an HTTPS personal access token with a git credential helper. This allows repository operations and API requests to proceed without the gh CLI dependency.

Does github-auth work with SSH keys instead of HTTPS personal access tokens?

Yes, github-auth works with SSH keys by generating them and testing SSH access directly. It automatically chooses between SSH keys and HTTPS tokens based on what tools are currently available in your environment.

Can I use this skill to extract tokens from credential stores for downstream CI scripts?

Yes, you can use this skill to extract tokens from existing credential stores. It exports these tokens as environment variables, enabling downstream scripts to execute API requests and trigger workflows in CI-adjacent environments.

Why does my GitHub authentication fail in automated environments without sudo access?

GitHub authentication can fail in automated environments without sudo if the wrong method is forced. The skill resolves this by detecting installed tools and falling back to the git-only HTTPS token flow for headless setups.