gh-auth-isolation

Detect active GitHub identities and isolate gh configurations per task.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/lbouriez/Squad-Templates --skill gh-auth-isolation-lbouriez
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-auth-isolation
Source: https://github.com/lbouriez/Squad-Templates/tree/main/Nectari-Devops-Squad/.copilot/skills/gh-auth-isolation
Command: npx skills add https://github.com/lbouriez/Squad-Templates --skill gh-auth-isolation-lbouriez

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Safely manage multiple GitHub identities (EMU + personal) in agent workflows to prevent cross-account mix-ups.

Core Features & Use Cases

  • Identity detection: determine which GitHub account is active and its scopes before performing actions.
  • Context isolation: create and switch isolated gh configurations and tokens for each task.
  • Safe operation guidance: provide best practices for token handling, status checks, and reversible context changes.

Quick Start

Switch to a specific GitHub identity by isolating gh configurations and using the appropriate token for the task.

Frequently Asked Questions about gh-auth-isolation

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

FAQPage Schema
How do I switch GitHub accounts in workflows to prevent cross-account contamination?

To switch GitHub accounts safely, you isolate gh configurations and tokens per task, creating reversible context changes before performing any operations. This prevents cross-account contamination and accidental pushes to personal repos from agent workflows.

How does identity detection work for multiple GitHub accounts?

Identity detection determines which GitHub account is active and checks its specific scopes before performing actions. It identifies whether the active context is an EMU or personal account to ensure safe context switching.

What is the best way to manage multiple GitHub identities in automated agent tasks?

The best way to manage multiple GitHub identities is isolating gh configurations and tokens for each task. This enforces best practices with explicit prompts and safe defaults for token handling and reversible context changes.

Can I switch between EMU and personal GitHub accounts without losing my current token?

Yes, you can switch between EMU and personal GitHub accounts safely by isolating gh configurations per task. The process enforces reversible context changes and authentication status checks to preserve token handling integrity.

Why does my agent workflow accidentally push to my personal GitHub repository?

Accidental pushes to personal GitHub repositories occur due to cross-account contamination when contexts are not isolated. You need to isolate gh configurations and tokens per task and enforce safe defaults before operations.