github-multi-account

Automate GitHub multi-account alias setup in PowerShell with gh.

619|188|Updated Jul 4, 2024
One-click install
npx skills add https://github.com/CommunityToolkit/Aspire --skill github-multi-account-communitytoolkit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-multi-account
Source: https://github.com/CommunityToolkit/Aspire/tree/main/examples/squad/CommunityToolkit.Aspire.Hosting.Squad.AppHost/dev-squad/.squad/templates/skills/github-multi-account
Command: npx skills add https://github.com/CommunityToolkit/Aspire --skill github-multi-account-communitytoolkit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, and includes scripts (resource) components.

What problem does it solve?

This Skill automatically detects and sets up GitHub account aliases, allowing users to seamlessly switch between personal and work accounts.

Core Features & Use Cases

  • Multi-Account Detection: Automatically identifies multiple GitHub accounts associated with the current user.
  • User Prompting: Asks the user to identify their personal and work accounts.
  • Alias Setup: Automatically configures PowerShell profiles, command line wrappers, and environment variables to switch accounts without manual auth switches.
  • Use Case: If you have multiple GitHub accounts and want an efficient way to switch between them without manually switching auth tokens, this Skill is for you.

Quick Start

Ask: "Which GitHub account is personal and which is for work?"

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 without manual auth switches?

You can automate GitHub multi-account switching by configuring PowerShell profiles and command line wrappers to set up distinct aliases. This approach prevents the need to manually switch authentication tokens when moving between personal and work accounts.

Can I set up GitHub account aliases using PowerShell on my system?

Yes, you can set up GitHub account aliases using PowerShell by configuring command line wrappers and environment variables. This process automatically detects multiple GitHub accounts and prompts you to designate them as personal or work.

Does GitHub multi-account alias setup require the gh tool installed?

Yes, GitHub multi-account alias setup requires the 'gh' command line tool to be installed on your system. The 'gh' tool is a necessary dependency for detecting accounts and configuring the environment variables.

What is the best way to manage multiple GitHub accounts on Windows?

The best way to manage multiple GitHub accounts is by automating alias configuration through PowerShell. This method identifies your personal and work accounts, automatically configuring your profile to switch contexts without manual token updates.

Why does my GitHub multi-account setup need environment variables?

Your GitHub multi-account setup needs environment variables to seamlessly switch contexts between personal and work accounts. Configuring these variables within your PowerShell profile allows the command line wrappers to authenticate correctly without manual intervention.