What problem does it solve?
Workflows that run across Enterprise Managed User (EMU) and personal GitHub accounts often default to the EMU identity, causing operations to fail on personal repos or forks. This skill provides a reliable strategy to detect the active identity and isolate credentials so each operation runs with the intended account.
Core Features & Use Cases
- Detect current identity and confirm which GitHub account is active before any operation.
- Extract and use a specific account's token for targeted actions without changing the global default.
- Create safe, isolated contexts (config directories and environment variables) to prevent cross-account credential leakage.
- Provide practical patterns for common tasks: pushing to personal forks, creating PRs from personal branches, and working with multiple repos in parallel.
- Support shell-level aliases and per-session isolation to simplify multi-account workflows for agents.
Quick Start
Switch to the appropriate GitHub identity for the current operation using gh config and temporary environment isolation.