gh-auth-isolation

Manage GitHub identity contexts and switch between EMU and personal accounts.

Updated May 10, 2026
One-click install
npx skills add https://github.com/AshleyHollis/agentic-identity-lab --skill gh-auth-isolation-ashleyhollis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-auth-isolation
Source: https://github.com/AshleyHollis/agentic-identity-lab/tree/main/.copilot/skills/gh-auth-isolation
Command: npx skills add https://github.com/AshleyHollis/agentic-identity-lab --skill gh-auth-isolation-ashleyhollis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill helps avoid credential mix-ups in agent workflows when managing multiple GitHub identities.

Core Features & Use Cases

  • Detect and Switch Identities: Identifies active GitHub account and securely switches contexts between accounts like EMU and personal.
  • Push to Personal Repos from EMU Shell: Allows pushing to personal repositories without exposing credentials.
  • Create PRs on Personal Forks: Supports creating pull requests on forks using the correct GitHub account.
  • Config Directory Isolation: Implements advanced isolation techniques to maintain account-specific settings.
  • Shell Aliases for Quick Switching: Provides convenient command aliases for switching accounts.

Quick Start

Extract and use your personal GitHub account token to interact with your repositories safely.

Frequently Asked Questions about gh-auth-isolation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage multiple GitHub accounts in an agent workflow without credential mix-ups?

Managing multiple GitHub accounts in an agent workflow requires isolating identity contexts to prevent credential mix-ups. This skill provides scripts to securely switch between EMU and personal accounts without exposing credentials.

What is the best way to push to personal repositories from an EMU shell?

Pushing to personal repositories from an EMU shell requires strict identity isolation to avoid using the wrong credentials. The skill detects the active GitHub account and safely switches contexts to enable pushing without exposing tokens.

How do I create pull requests on personal forks using the correct GitHub account?

Creating pull requests on personal forks requires authenticating the correct GitHub account context. The skill securely switches identity contexts to ensure your personal account is used for fork interactions without compromising EMU security.

Does this approach support Enterprise Managed Users (EMU) alongside personal GitHub tokens?

Yes, supporting Enterprise Managed Users (EMU) alongside personal GitHub tokens is the core design. The skill implements advanced config directory isolation to maintain separate account-specific settings within agent environments.

How do I quickly switch GitHub identities during automated agent tasks?

Quickly switching GitHub identities during automated agent tasks is handled through provided shell aliases. These command aliases activate secure identity context switching, allowing rapid account changes without manual re-authentication.