From sasam-core
Check for and apply updates to SASAMClaudeCodeSkills marketplace plugins. Shows changelog, backs up local modifications, and updates all plugins.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sasam-core:sasam-updateThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Check for updates, view changelog, and update all SAS-AM plugins.
Check for updates, view changelog, and update all SAS-AM plugins.
This skill manages updates for the SASAMClaudeCodeSkills marketplace. It compares local and remote versions, displays changelogs, and handles the update process.
| Command | Action |
|---|---|
check | Check if updates are available (default) |
changelog | View recent changelog entries |
apply | Apply available updates |
version | Show current installed version |
/sasam-update # Check for updates (default)
/sasam-update check # Same as above
/sasam-update changelog # View changelog
/sasam-update apply # Apply updates
/sasam-update version # Show current version
LOCAL_VERSION=$(cat ~/.claude/SASAMClaudeCodeSkills/VERSION 2>/dev/null || echo "unknown")
echo "Local version: $LOCAL_VERSION"
REMOTE_VERSION=$(curl -s "https://raw.githubusercontent.com/SAS-Asset-Management/SASAMClaudeCodeSkills/main/VERSION" 2>/dev/null || echo "error")
echo "Remote version: $REMOTE_VERSION"
if [ "$LOCAL_VERSION" = "$REMOTE_VERSION" ]; then
echo "You are up to date (v$LOCAL_VERSION)"
else
echo "Update available: $LOCAL_VERSION -> $REMOTE_VERSION"
fi
# Fetch changelog from GitHub
CHANGELOG=$(curl -s "https://raw.githubusercontent.com/SAS-Asset-Management/SASAMClaudeCodeSkills/main/CHANGELOG.md")
# Display recent entries (first 50 lines)
echo "$CHANGELOG" | head -50
When updating, show only the relevant changelog entries between the installed version and the latest version.
Before updating, compare local files against the manifest to detect modifications:
cd ~/.claude/SASAMClaudeCodeSkills
# Load manifest
MANIFEST="sasam-file-manifest.json"
# Check each file against its stored hash
MODIFIED_FILES=()
while IFS= read -r file; do
STORED_HASH=$(jq -r --arg f "$file" '.files[$f]' "$MANIFEST")
CURRENT_HASH=$(shasum -a 256 "$file" 2>/dev/null | cut -d' ' -f1)
if [ "$STORED_HASH" != "$CURRENT_HASH" ]; then
MODIFIED_FILES+=("$file")
fi
done < <(jq -r '.files | keys[]' "$MANIFEST")
if [ ${#MODIFIED_FILES[@]} -gt 0 ]; then
echo "Modified files detected:"
printf ' - %s\n' "${MODIFIED_FILES[@]}"
fi
BACKUP_DIR="sasam-local-patches/$(date +%Y%m%d_%H%M%S)"
mkdir -p "$BACKUP_DIR"
for file in "${MODIFIED_FILES[@]}"; do
mkdir -p "$BACKUP_DIR/$(dirname "$file")"
cp "$file" "$BACKUP_DIR/$file"
done
echo "Backed up ${#MODIFIED_FILES[@]} modified files to $BACKUP_DIR"
cd ~/.claude/SASAMClaudeCodeSkills
git pull origin main
cd ~/.claude/SASAMClaudeCodeSkills
./register-commands.sh
cd ~/.claude/plugins/marketplaces/SASAMClaudeCodeSkills
git pull origin main
cd ~/.claude/SASAMClaudeCodeSkills
./generate-manifest.sh
SASAMClaudeCodeSkills updated to v{NEW_VERSION}
Changes in this update:
{CHANGELOG_EXCERPT}
{N} modified files were backed up to:
sasam-local-patches/{TIMESTAMP}/
To restore your modifications, copy files from the backup directory.
When showing version info:
SASAMClaudeCodeSkills v1.1.0
Installed plugins:
- sas-presentation v1.0.0
- data-quality-analysis v1.0.0
- b2b-research-agent v1.0.0
- beam-selling v1.0.0
- linkedin-post-generator v1.0.0
- tender-assessment v1.0.0
- push-notifications v1.0.0
- nano-banana-2 v1.1.0
- sasam-core v1.0.0
Last manifest: 2026-02-27T10:30:00Z
Files tracked: 67
Unable to check for updates
Could not reach GitHub to check for latest version.
Please check your internet connection and try again.
To force update from local git:
cd ~/.claude/SASAMClaudeCodeSkills && git pull
Update failed due to git conflict
Your local changes conflict with the update.
Modified files have been backed up to:
sasam-local-patches/{TIMESTAMP}/
To resolve:
1. Review the conflicts in git
2. Resolve and commit, or reset
3. Run /sasam-update apply again
npx claudepluginhub sas-asset-management/sasamclaudecodeskills --plugin sasam-coreChecks for skills-for-fabric marketplace updates at session start, compares local version against GitHub releases, and shows changelog if updates are available.
Upgrades Claude Code plugins by aligning skills, hooks, and patterns with latest capabilities and best practices. Use after updates, for modernization, or on user request.
Checks for updates to the skills-for-fabric marketplace at session start. Compares local version against GitHub releases and shows changelog if updates are available. Useful for staying up-to-date with skill changes.