github-auth

Configure GitHub authentication via git or gh CLI with token, SSH, or interactive login.

2.8k|332|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/moltis-org/moltis --skill github-auth-moltis-org
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/moltis-org/moltis/tree/main/crates/skills/src/assets/github/github-auth
Command: npx skills add https://github.com/moltis-org/moltis --skill github-auth-moltis-org

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Configure reliable GitHub authentication for automated workflows, enabling the agent to operate with Git and gh-based interactions securely.

Core Features & Use Cases

  • Supports both git-based and gh CLI authentication flows, including token, SSH, and interactive login.
  • Detects available methods in your environment and applies the best authentication path automatically.
  • Guides secure credential storage and identity configuration for seamless repository operations.

Quick Start

Source the gh-env.sh script to detect GitHub authentication and export the relevant environment variables.

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 environment?

To configure GitHub authentication for an agent, the skill detects available methods like git or gh CLI and automatically applies the best path. It handles token, SSH, and interactive login flows to establish secure repository access.

What's the best way to authenticate GitHub CLI access using a token or SSH?

Authenticating GitHub CLI access is handled by evaluating available credentials and selecting the optimal method. The skill guides secure credential storage and identity configuration for both token and SSH-based gh CLI login flows.

Can I use both git and gh CLI authentication flows in the same environment?

Yes, both git and gh CLI authentication flows are supported in the same environment. The skill implements environment detection to identify whether git or gh is available, applying the appropriate authentication path automatically.

How does environment detection work for setting up GitHub credentials?

Environment detection for GitHub credentials works by checking for installed git or gh CLI tools. It evaluates the available authentication methods in your environment to apply the most suitable credential setup without manual intervention.

Do I need to install gh CLI to set up GitHub authentication for repository operations?

No, you do not need to install gh CLI exclusively, as the skill applies to environments with standard git installed. It supports both git-based and gh CLI flows to ensure smooth repository operations.

Why does my GitHub authentication fail during automated workflow setup?

GitHub authentication may fail if credentials are not properly configured for the detected environment. The skill solves this by guiding secure credential storage and identity configuration to ensure seamless automated workflows.