Update Skills
This skill keeps your local skill repositories up to date by pulling the latest changes from a remote GitHub repository.
Canonical skills repository (public)
Use the public repo so scripts work without access to a private organization:
| Repo | Snyk-General-Support/gemini-cli-support-skills |
| HTTPS | https://github.com/Snyk-General-Support/gemini-cli-support-skills.git |
Clone or point origin at that URL. Details: references/remote.md.
Assumptions
- You have a Git clone of the skills repo locally (for example
~/Documents/Snyk/gemini-cli-support-skills). originpoints at GitHub (HTTPS or SSH).- For private remotes only: set
GITHUB_TOKENorGH_TOKEN. Public remotes do not require a token.
Configuration
- Target directory (required): local path to the skills repo →
SKILL_REPO. - Optional:
GIT_REMOTE_NAME(default:origin). - Token (optional for public repos):
GITHUB_TOKENorGH_TOKEN. - Install directory (optional): where to sync skills into Cursor →
INSTALL_DIR(default:~/.cursor/skills).
Workflow
Ensure
originuses the public repo (if migrating from a private remote): see references/remote.md.Set
SKILL_REPOto your local clone path.Token: export
GITHUB_TOKENonly iforiginis private or your environment requires auth.Run the update script:
chmod +x update/scripts/update_skills.sh SKILL_REPO=~/Documents/Snyk/gemini-cli-support-skills ./update/scripts/update_skills.shVerify: script prints branch, remote URL, fetch/pull result, and then syncs (installs/updates) any skills found as top-level directories containing a
SKILL.md.
Script location
update/scripts/update_skills.sh
Behavior:
- Validates
SKILL_REPOis a git repo. - For HTTPS
https://github.com/...without embedded credentials: if a token is set, temporarily setsorigintohttps://TOKEN@github.com/...forfetch/pull, then restores the original URL. - If no token is set: runs normal
git fetch/git pull --ff-only(works for public repos). - Then syncs skills:
- For each top-level directory under
SKILL_REPOthat contains aSKILL.md, copies/syncs that directory intoINSTALL_DIR. - This ensures newly added skills are installed and existing ones are updated.
- For each top-level directory under
References
- Remote URL, clone, and
git remote set-url: references/remote.md