update
Pull latest changes from skills repository git remote.
Platform Support
- •Windows:
script.ps1(PowerShell) - •Unix/Linux/Mac:
script.sh(bash)
Both scripts provide identical functionality.
Path Resolution
Resolves repository path using environment variables:
- •
$MY_SKILLS_REPO(or$env:MY_SKILLS_REPOon Windows) — direct path to repo root - •
$SKILLS_GROUP_DIR/{repo-name}(or$env:SKILLS_GROUP_DIRon Windows) — derive from parent directory
Works identically across all platforms.
Git Detection
Checks for .git directory to determine if path is a git repository.
If .git exists at resolved path: single repo update.
If resolved path is a group directory: check each subdirectory for git repos.
Single Repo Update
For a single repository:
- •Hash
about.mdbefore pull - •Execute
git pull - •Hash
about.mdafter pull - •Compare hashes to detect changes
Group Update
For skills group directory: Iterate immediate subdirectories, update each git repository independently. Skip non-git directories.
Context Refresh
If about.md changes after pull:
- •Agent should re-read the instruction file
- •User should refresh context in their AI assistant
- •Notification is displayed to user
Usage
powershell
# Windows (PowerShell) use-skill/update # or .\skills\use-skill\update\script.ps1
bash
# Unix/Linux/Mac (bash) use-skill/update # or ./skills/use-skill/update/script.sh