Upgrade
Update vault to the latest version of obsidian-claude-pkm.
Install
npx skills add ballred/obsidian-claude-pkm --skill upgrade -g -a claude-code -y- Repository
- ballred/obsidian-claude-pkm1.9k
- Category
- AI and agents
- Updated
- 9mo ago
- License
- MIT
- Context cost
- Lightabout 1,040 tokens
- Runs scripts
- No, instructions only
What it does
Update vault to the latest version of obsidian-claude-pkm. Creates backup, shows diffs, preserves your content. Use when a new version is available.
Upgrade Skill
Updates your vault's system files to the latest version while preserving all your personal content.
Usage
/upgrade # Interactive upgrade with backup and diff review
/upgrade check # Preview what's changed without making modifications
What Gets Updated (System Files)
.claude/skills/*/SKILL.md, Skill definitions.claude/agents/*.md, Agent configurations.claude/hooks/*.sh, Automation scripts.claude/rules/*.md, Convention rules.claude/output-styles/*.md, Output style definitions.claude/settings.json, Permissions and hook configCLAUDE.md, Root context file (merged carefully)Templates/*.md, Note templates
What Never Gets Touched (Your Content)
Daily Notes/**, Your daily journal entriesGoals/**, Your goal files and reviewsProjects/**, Your project folders and CLAUDE.md filesArchives/**, Your archived contentInbox/**, Your captured itemsCLAUDE.local.md, Your personal overridesvault-config.json, Your preferences
Upgrade Process
Step 1: Check for Updates
Read the current version from CLAUDE.md (look for "System Version:" line).
Compare with the upstream repo. If using git:
git fetch origin
git log HEAD..origin/main --oneline
If not a git repo or no remote, inform user they need to download the latest vault-template/ manually.
Step 2: Create Backup
Before any changes, create a timestamped backup:
BACKUP_DIR=".backup/upgrade-$(date +%Y%m%d-%H%M%S)"
mkdir -p "$BACKUP_DIR"
cp -r .claude "$BACKUP_DIR/"
cp CLAUDE.md "$BACKUP_DIR/"
cp -r Templates "$BACKUP_DIR/" 2>/dev/null
Tell the user: "Backup created at $BACKUP_DIR"

