What problem does it solve?
This Skill prevents GitHub authentication mix-ups where an AI agent uses the wrong default GitHub identity, causing failed pushes, incorrect PR authorship, or access-denied errors across enterprise and personal accounts.
Core Features & Use Cases
- Detect the active GitHub identity for the current shell using
gh auth status so the agent knows which account its gh token will represent.
- Extract tokens for a specific account (by username) using
gh auth token --user to perform a single operation under the correct identity without changing global auth state.
- Isolate credentials via separate
GH_CONFIG_DIR directories to avoid cross-account interference in long-running or multi-agent sessions, especially when working with both EMU-managed and personal repos.
Quick Start
Ask the agent to verify the current gh auth status, then extract the correct token for the target GitHub account and run the git or gh pr create action using that token for only that operation.