github-multi-account

Detect GitHub accounts via gh auth status and configure gh-personal and gh-work aliases.

49|6|Updated Aug 24, 2021
One-click install
npx skills add https://github.com/webmaxru/bpm-counter --skill github-multi-account-webmaxru
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-multi-account
Source: https://github.com/webmaxru/bpm-counter/tree/main/.copilot/skills/github-multi-account
Command: npx skills add https://github.com/webmaxru/bpm-counter --skill github-multi-account-webmaxru

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Detect and set up account-locked gh aliases for multi-account GitHub. The AI reads this skill, detects accounts, asks the user which is personal/work, and runs the setup automatically.

Core Features & Use Cases

  • Detect multiple GitHub accounts via gh auth status and list them.
  • Prompt the user to designate personal vs work accounts.
  • Install and configure aliasing by creating functions (gh-personal, gh-work), shell wrappers, and PATH updates for seamless usage.

Quick Start

Provide your personal and work GitHub usernames to configure automatic aliasing.

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 on the same machine?

To switch between multiple GitHub accounts, this Skill detects authenticated users via gh auth status and configures shell wrappers and profile functions to enable seamless account switching. It sets up dedicated aliases for your personal and work accounts.

How do I set up gh aliases for my personal and work GitHub accounts?

You can set up gh aliases by providing your personal and work GitHub usernames. The Skill then creates profile functions like gh-personal and gh-work, adds command wrappers to a local bin, and updates PATH to lock commands to specific accounts.

Does the multi-account GitHub alias setup work with PowerShell?

Yes, the multi-account GitHub alias setup works with PowerShell. The Skill configures shell profile functions and updates the PATH environment variable to support account-locked gh command wrappers.

What is the best way to automate GitHub account switching for DevOps workflows?

The best way to automate GitHub account switching is by configuring shell wrappers and profile functions that map specific aliases to individual accounts. This ensures seamless usage across personal and work profiles without manual reauthentication.

Do I need to manually configure PATH variables to use gh-personal and gh-work commands?

No, you do not need to manually configure PATH variables. The Skill automatically updates PATH and creates command wrappers in a local bin directory to enable the gh-personal and gh-work functions after you designate your accounts.