gh-switch SKILL.md skillB

gh-switch from sentimony/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add sentimony/skills/gh-switch@v1.1.6

Pins v1.1.6 in mdr.lock. Pin the fingerprint instead.

Audit grade
B, 16 of 17 checks passed
Kind
SKILL.md skill
Repository
sentimony/skills
Path
plugins/skills/skills/gh-switch/SKILL.md
Versions recorded
7
Latest version
v1.1.6, committed Oct 27, 2026
First version recorded
Oct 10, 2026
Size
11,206 bytes
Repository stars
6
License
MIT

You MUST use this when a project-scoped GitHub CLI (gh) command is about to run on github.com, including every subsequent command in the same session, or when checking or switching the project's GitHub account, and before the first project-scoped GitLab API or glab call in a project whose .env/.env names GL_ACC. Also applies after gh or GitLab access failures. Not for plain git, SSH, gh help or version output, authentication setup, or GitHub hosts other than github.com.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# 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.
Before GitLab API calls, check that the project's GitLab token belongs to GL_ACC.

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

```dotenv
GH_ACC=<login>
```

Without that line the helper adds it itself when the account is unambiguous and
`.env/.env` is gitignored: the only github.com remote owner that is a logged-in `gh`
account, or else the one GH_ACC that every sibling clone of the same owner (other Git
repositories in the parent directory) names. It writes `# used by gh-switch skill` and
`GH_ACC=<login>` at the top and keeps every other line as is. Otherwise it switches
nothing; `gh` keeps whatever account is active, and the helper says so whenever the
project has a github.com remote.

A project on a GitLab host names its account and token in the same file:

```dotenv
GL_ACC=<username>
GITLAB_TOKEN=<GITLAB_TOKEN>
```

For GitLab nothing is switched: the token is the only credential, so the helper checks
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add sentimony/skills/gh-switch@sha256:9d8a81acba4a3619

The line at the top of this page pins the label v1.1.6, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_rligvkyivddbcxr5.svg)](https://markdownregistry.com/a/art_rligvkyivddbcxr5)

1 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 7 versions of this file, between Oct 10, 2026 and Oct 27, 2026, about one every 3 days.

versioncommittedcommitsizeaudit
v1.1.6 latest2026-10-27 6191961 11,206 BB view · diff
v1.1.52026-10-27 d01ddad 10,690 BB view · diff
v1.1.42026-10-21 17d9e3a 9,704 BB view · diff
v1.1.32026-10-17 a59fd2e 8,057 BB view · diff
v1.1.22026-10-12 bad2d40 5,783 BB view · diff
v1.1.12026-10-12 1ab0b92 6,023 BB view · diff
git:20261010.2adc8d82026-10-10 2adc8d8 5,981 BB view

Audit of the latest version

B  16 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • fail: No instruction to read or print local credentials (matched: print the environment or the contents of `.env)
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (11206 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.

Source

GitHub

sentimony/skills · 6 stars · license MIT · pushed 2026-10-27 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_rligvkyivddbcxr5
GET https://markdownregistry.com/api/v1/resolve?ref=sentimony/skills/gh-switch
GET https://markdownregistry.com/api/v1/blob/9d8a81acba4a3619b10c36c41f815b210e3fe81073fe14697cc832f6d2c26aad

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from sentimony/skills

AGENTS.md AGENTS.md file
sentimony/skills · AGENTS.md
git:20261027.c57ded4 · audit A · 6 stars
CLAUDE.md CLAUDE.md file
sentimony/skills · CLAUDE.md
git:20260705.8649428 · audit B · 6 stars
branch-finish SKILL.md skill
sentimony/skills · plugins/skills/skills/branch-finish/SKILL.md · You MUST use this when verified development work is ready for an integration or handoff decision - merging, pushing…
v1.1.6 · audit A · 6 stars
commit-all SKILL.md skill
sentimony/skills · plugins/skills/skills/commit-all/SKILL.md · You MUST use this when the user asks to commit all current changes at once, via /commit-all or in words ("commit…
v1.4.4 · audit A · 6 stars
cross-review SKILL.md skill
sentimony/skills · plugins/skills/skills/cross-review/SKILL.md · You MUST use this when an implementation plan or a finished implementation needs an independent review by other agent…
v1.4.2 · audit A · 6 stars
dashfix SKILL.md skill
sentimony/skills · plugins/skills/skills/dashfix/SKILL.md · You MUST use this when writing or substantively editing prose in a project (docs, READMEs, UI copy) and when asked to…
v2.2.3 · audit A · 6 stars
debugging SKILL.md skill
sentimony/skills · plugins/skills/skills/debugging/SKILL.md · You MUST use this when investigating bugs, regressions, failing tests, build or integration failures, flaky behavior…
v1.1.2 · audit A · 6 stars
echarts SKILL.md skill
sentimony/skills · plugins/skills/skills/echarts/SKILL.md · You MUST use this when building, styling, debugging, or optimizing Apache ECharts charts in JavaScript, React, or Vue -…
v1.3.1 · audit A · 6 stars
frontend-crafting SKILL.md skill
sentimony/skills · plugins/skills/skills/frontend-crafting/SKILL.md · You MUST use this when building, implementing, redesigning, reviewing, or refining user-facing interfaces - including…
v1.5.0 · audit A · 6 stars
git-worktree-isolation SKILL.md skill
sentimony/skills · plugins/skills/skills/git-worktree-isolation/SKILL.md · You MUST use this when deciding whether development work needs workspace isolation - before implementing plans, risky…
v1.3.2 · audit A · 6 stars
inline-plan-dev SKILL.md skill
sentimony/skills · plugins/skills/skills/inline-plan-dev/SKILL.md · You MUST use this when executing an existing implementation plan directly in the current agent session, including…
v1.3.4 · audit A · 6 stars
maintaining-agent-context SKILL.md skill
sentimony/skills · plugins/skills/skills/maintaining-agent-context/SKILL.md · You MUST use this when creating, auditing, optimizing, or maintaining repository agent instructions - AGENTS.md…
v1.9.1 · audit A · 6 stars

Every file in sentimony/skills

Browse by kind, by grade B, or by owner.