What problem does it solve?
GitHub authentication in multi-account environments often mixes Enterprise Managed User (EMU) and personal identities, causing operations to run under the wrong account. This Skill teaches agents how to detect the active identity, switch contexts safely, and avoid credential leakage or unintended cross-account actions.
Core Features & Use Cases
- Detect current identity with gh auth status to determine the active account.
- Safely switch context for operations using separate gh configurations (GH_CONFIG_DIR) without changing the global environment.
- Extract and use per-operation tokens when needed to push, PR, or manage repos from the correct account.
- Provide quick aliases or scripts to streamline switching between EMU and personal accounts during common tasks.
Quick Start
Ensure the active identity is correct, configure an isolated gh context, and perform the desired GitHub operation.