What problem does it solve?
This skill solves the problem of GitHub identity management in workflows, ensuring that multiple accounts, especially Enterprise Managed Users (EMU) and personal accounts, can operate safely and separately without credential leakage or permissions conflicts.
Core Features & Use Cases
- Identity Detection: Automatically identify the active GitHub account before operations to prevent credential misuse.
- Context Switching: Securely switch between GitHub account contexts (EMU, personal, etc.) without credential persistence.
- Token Extraction: Safely extract tokens for specific accounts without compromising credentials.
- Push to Personal Repos: Enable pushing to personal repositories while using an EMU account.
- PR Creation on Forks: Create pull requests on personal forks without interference from EMU accounts.
- Config Directory Isolation: Use separate configuration directories for each account to maintain strict separation of environments.
- Shell Aliases: Provide quick switching between accounts with shell aliases for convenience.
- Use Case: In a scenario where AI agents are used across multiple GitHub accounts for work and open-source projects, this skill ensures secure, conflict-free interactions and seamless operation across all accounts.
Quick Start
Use the gh-auth-isolation skill to switch to your personal GitHub account and push changes to a repository using a specific token.