git_checkout SKILL.md skillA
git_checkout from theafh/ai-modules is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add theafh/ai-modules/git_checkout@v1.0.0Pins v1.0.0 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- theafh/ai-modules
- Path
plugins/ai_dev/skills/git_checkout/SKILL.md- Versions recorded
- 1
- Latest version
- v1.0.0, committed Sep 2, 2026
- Size
- 8,781 bytes
- Repository stars
- 38
- License
- MIT
Put the repository onto an existing branch wherever it lives: fetch every remote without pruning, switch when the branch is already local, create a local branch with an explicit upstream when one remote carries the name, ask which remote to track when several do, and separate a nonexistent branch from one hidden by a narrow fetch refspec. Use when the user asks to check out or switch to a branch, get onto a branch somebody just pushed, track a remote branch locally, or diagnose a…
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
# git_checkout
<git_checkout_skill>
<objective>Leave the repository checked out on a named local branch for the branch the user asked for, creating a tracking branch when the branch lives only on a remote, and holding for the user's choice when the name is ambiguous.</objective>
<command_intent>normalize the branch argument, fetch every remote without pruning, enumerate the matching refs, then switch, create a tracking branch, ask which remote to track, or report why the name resolves nowhere</command_intent>
<path_resolution>
Bundled scripts live in `scripts/` next to this `SKILL.md`. Resolve the helper path by combining the directory of this `SKILL.md` with `scripts/checkout_branch.sh` and invoke the absolute path. If the first invocation reports a missing file, re-resolve the absolute path once before treating the script as failed. Open `references/manual_fallback.md` only after the script exits non-zero for a missing-file or environment reason after that retry; the helper's own outcome codes 3, 4, and 5 are reported results rather than script failures.
</path_resolution>
<primary_workflow>
…Read the whole file at its exact version.
How to install
mdr add theafh/ai-modules/git_checkout@sha256:35ae3fc3e2b76494The line at the top of this page pins the label v1.0.0, 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.
[](https://markdownregistry.com/a/art_h4r4jlzdmdqynad7)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Sep 2, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (8781 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 instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
theafh/ai-modules · 38 stars · license MIT · pushed 2026-10-18 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_h4r4jlzdmdqynad7 GET https://markdownregistry.com/api/v1/resolve?ref=theafh/ai-modules/git_checkout GET https://markdownregistry.com/api/v1/blob/35ae3fc3e2b764946f922fc2fa19648a3ffec3c5848752bbb96f44ec7b53460b
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.