git.repo-manager
Installation
SKILL.md
Manages a local repository cache at temp/repo-cache/. Use these patterns for repo lifecycle operations.
Ensure a repo is available and up to date
-
Check whether the repo directory already exists:
test -d temp/repo-cache/<name> && echo "exists" || echo "missing" -
If missing — clone a shallow copy of the default branch:
git clone --depth 1 <repo-url> temp/repo-cache/<name> --quiet