gh-switch

Installation
SKILL.md

gh-switch

Before a project-scoped GitHub CLI operation, ensure that the active github.com account matches the project's GH_ACC row in accounts.md, and report a confirmed switch in one line. Before GitLab API calls, check that the project's GitLab token belongs to its GL_ACC row.

A project names its account with one row in ~/.sentimony/skills/gh-switch/accounts.md, a table keyed by the absolute path of the main checkout (a worktree uses its main checkout; the match is exact, with a trailing slash and no ~):

/Users/me/work/github/acme/app/ | GH_ACC=<login>
/Users/me/work/github/acme/app/ | GL_ACC=<username>

A project with both accounts has two rows. Lines starting with # are comments; any other malformed row, an unknown variable, or a duplicate row stops the helper (exit 2) with the line number. You may edit the file by hand.

Installs
2.3K
GitHub Stars
8
First Seen
Sep 30, 2026