github-multi-account

Detect GitHub accounts and configure gh aliases for personal and work contexts.

413|64|Updated Feb 7, 2023
One-click install
npx skills add https://github.com/christianhelle/refitter --skill github-multi-account-christianhelle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-multi-account
Source: https://github.com/christianhelle/refitter/tree/main/.copilot/skills/github-multi-account
Command: npx skills add https://github.com/christianhelle/refitter --skill github-multi-account-christianhelle

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Detects and configures GitHub aliases for users with multiple accounts, enabling seamless switching between personal and work contexts.

Core Features & Use Cases

  • Detect multiple GitHub accounts with gh auth status and surface the accounts to the user.
  • Prompt the user to designate which account is personal and which is work, then auto-generate and install gh alias functions and wrappers.
  • Ensure consistent workflow by routing commands through personal or work contexts and provide repo-specific binding guidance when applicable.

Quick Start

Run the skill to detect multiple GitHub accounts, choose which is personal and which is work, and apply aliases automatically.

Frequently Asked Questions about github-multi-account

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

FAQPage Schema
How do I manage multiple GitHub accounts on one machine?

Manage multiple GitHub accounts by detecting existing authentications, prompting you to designate personal and work contexts, and auto-generating alias functions to route commands through the correct account context.

How do I switch between personal and work GitHub accounts automatically?

Switch between personal and work GitHub contexts by running a setup that detects your accounts, prompts for role assignment, and installs wrappers to ensure consistent, alias-based context routing for your commands.

Can I use gh CLI aliases to separate work and personal GitHub repositories?

Yes, you can separate work and personal GitHub repositories by auto-generating and installing gh alias functions that route your commands through the specific personal or work context you designate.

What is the best way to configure multi-account GitHub aliases without manual setup?

The best way to configure multi-account GitHub aliases without manual setup is using an automated skill that detects accounts via gh auth status and executes deterministic steps to apply the necessary wrappers.

Does the automated GitHub alias setup require existing gh auth configurations?

Yes, the automated GitHub alias setup requires existing gh auth configurations because it relies on gh auth status to detect multiple accounts before prompting you to assign personal and work roles.

Why do my GitHub commands default to the wrong account in a multi-account setup?

GitHub commands default to the wrong account in a multi-account setup when context routing is not applied, which this skill fixes by generating and installing aliases that bind commands to your designated personal or work context.