gh-switch

Installation
SKILL.md

gh-switch

Before a project-scoped GitHub CLI operation, ensure that the active github.com account matches GH_ACC in the project's .env/.env, and report a confirmed switch in one line.

A project names its account with one line in its gitignored .env/.env:

GH_ACC=<login>

Without that line the skill switches nothing; gh keeps whatever account is active.

Tokens stay out of this workflow. Do not run gh auth token, do not pass --show-token, and do not print the environment or the contents of .env/.env.

When to run

Installs
154
GitHub Stars
6
First Seen
Sep 30, 2026