github-multi-account

Detect multiple GitHub accounts and configure account-specific gh aliases.

Updated Jan 5, 2026
One-click install
npx skills add https://github.com/Golnaz89/golnaz89.github.io --skill github-multi-account-golnaz89
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-multi-account
Source: https://github.com/Golnaz89/golnaz89.github.io/tree/main/.copilot/skills/github-multi-account
Command: npx skills add https://github.com/Golnaz89/golnaz89.github.io --skill github-multi-account-golnaz89

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Detect and manage multiple GitHub identities by creating account-specific gh aliases that you can switch between seamlessly.

Core Features & Use Cases

  • Detects multiple GitHub accounts using gh auth status.
  • Prompts you to designate personal vs work accounts and configures automatic switching.
  • Installs PowerShell profile blocks and CMD wrappers to route gh commands to the correct account.

Quick Start

Run this skill to detect your GitHub accounts and guide you through setting up personal and work aliases.

Frequently Asked Questions about github-multi-account

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I switch between multiple GitHub accounts in PowerShell?

To set up GitHub multi-account aliases, run the skill to detect your accounts using gh auth status. It then prompts you to designate personal and work accounts, creating aliases and modifying your PowerShell profile to enable in-session switching.

How does gh auth status detect multiple GitHub accounts?

The gh auth status command detects multiple GitHub accounts by checking active authentication sessions. The skill uses this status output to identify your accounts and prompts you to designate personal versus work profiles for alias configuration.

Can I configure automatic switching for personal and work GitHub accounts?

Yes, you can configure automatic switching for personal and work GitHub accounts. The skill prompts you to identify each account and installs PowerShell profile blocks and CMD wrappers to route gh commands to the correct profile automatically.

Do I need to update the PATH for GitHub multi-account aliases?

Yes, updating the PATH is required for GitHub multi-account aliases to ensure in-session alias availability. The skill handles PATH updates alongside modifying your PowerShell profile to route commands to the correct account.

Does this GitHub alias configuration work with CMD wrappers?

Yes, this GitHub alias configuration works with CMD wrappers. The skill installs PowerShell profile blocks and CMD wrappers to route gh commands to the correct account, ensuring multi-account management across command-line environments.

Why are my gh commands using the wrong GitHub account?

Your gh commands may use the wrong GitHub account if you lack account-specific aliases. This skill solves the problem by detecting accounts via gh auth status and configuring automatic switching through PowerShell profile modifications and PATH updates.