What problem does it solve?
Enterprise-level automation often runs with a single default GitHub auth, which breaks when agents need to operate as a personal account or a different corporate identity. This skill teaches how to detect the active identity, switch contexts safely, and isolate credentials so actions stay within the intended account.
Core Features & Use Cases
- Detect and report the currently active GitHub identity before any operation.
- Safely switch context to a target account (EMU or personal) using isolated gh config directories and runtime token extraction.
- Provide best practices for avoiding token leakage, including non-persistent token usage and explicit remote URL handling.
- Real-world use case: agents push to a personal fork while the default context is an enterprise account, or run privileged actions in a controlled, auditable way.
Quick Start
Run a check to identify the active identity, then switch context using isolated configuration and on-demand token retrieval for the target account.