github-multi-account

Detect GitHub accounts with gh auth status and create gh-personal/gh-work aliases.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps users manage multiple GitHub accounts by automatically detecting available accounts and creating robust, easy-to-use aliases that switch between personal and work environments.

Core Features & Use Cases

  • Detects multiple GitHub accounts using gh auth status and prompts the user to designate personal vs work.
  • Creates environment wrappers and PowerShell profile updates to switch accounts with a single command.
  • Installs small CMD/PowerShell wrappers so you can run ghp or ghw to operate under the selected account in any repo.

Quick Start

Create personal/work aliases and start using ghp and ghw to operate in their respective environments.

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 personal and work GitHub accounts using gh CLI?

Switch GitHub accounts by creating deterministic aliases that detect accounts with gh auth status, prompt for personal or work designation, and apply PowerShell profile updates to enable single-command switching. You get dedicated shell wrappers like ghp and ghw to operate under the selected account in any repository.

Does GitHub multi-account aliasing work with PowerShell profile updates?

Yes, GitHub multi-account aliasing works by applying PowerShell profile updates and PATH modifications to install CMD and PowerShell wrappers. These wrappers create environment-specific commands that let you execute GitHub operations under your designated personal or work account automatically.

What do I need to set up GitHub account switching for multiple accounts?

To set up GitHub account switching, you need the gh CLI installed and two or more authenticated GitHub accounts. The setup process detects available accounts using gh auth status and prompts you to designate which account is personal and which is work before configuring the aliases.

Can I use ghp and ghw commands to operate in different GitHub environments?

Yes, you can use ghp and ghw commands to operate in different GitHub environments. The setup installs small CMD and PowerShell wrappers that act as shell wrappers, allowing you to run operations under your personal or work account in any repository with a single command.

Why does my GitHub account switching fail when using aliases in PowerShell?

GitHub account switching via aliases can fail if the gh CLI is not installed or if the PowerShell profile updates and PATH modifications were not applied correctly. The setup relies on detecting authenticated accounts with gh auth status before creating the environment wrappers.