/xuanran-seo-blog-writer:self-upgradefrom xuanran-seo-blog-writer
Performs a 9-step in-place upgrade from a marketplace remote, triggered by update check or /upgrade command. Backs up, fetches, syncs version, purges cache, and summarizes changelog.
Ships in xuanran-seo-blog-writer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Per toprank pattern: 9-step upgrade with dev-symlink detection.
1. Log start to ~/.xuanran-seo/upgrade-log.json
2. Detect install dir + check for dev-symlink (skip upgrade if dev mode)
3. Save current version + state to /tmp/xs-upgrade-backup/
4. git fetch origin main + git reset --hard origin/main in marketplace clone
5. rsync to versioned cache dir
6. Update ~/.claude/plugins/installed_plugins.json:
- new installPath
- new version
- new gitCommitSha
7. Purge old cache (keep only latest 3 versions + dev)
8. Parse CHANGELOG.md between old and new versions → 3-7 bullets
9. Write ~/.xuanran-seo/just-upgraded-from = old_version
Clear ~/.xuanran-seo/last-update-check
Resume original skill that triggered upgrade
bin/update-check returns UPGRADE_AVAILABLE x.y.z → auto-trigger/upgrade commandbin/update-checkbin/preamble.md (consumed UPGRADE_AVAILABLE signal)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
self-upgrade, upgrade, marketplace, version-management, changelog, git-fetch
75 skills in this plugin
/ai-overview-recovery4-phase recovery when Google AI Overview drops an article. Measure damage → diagnose skip reason → rewrite → T+7/14/28 monitor. Triggered by drift-detector AIO loss alert OR /aio-recovery command./ai-visibility-trackerActive probe of ChatGPT/PPLX/Claude/Gemini to check if our article is cited. Compares to projects/{slug}/geo-baseline.json. Triggered by /ai-visibility command or daily/weekly schedule./batch-articleRun /article end-to-end for a list of keywords. Each keyword goes through the FULL pipeline (research → plan → build → optimize → publish → monitor baseline). Use for agency-scale operations — drop 10-500 keywords, get 10-500 published articles. Resumable across sessions.npx claudepluginhub xuanranl/loamwright-seo-skill --plugin xuanran-seo-blog-writerOther plugins' skills for the same job