link-to-im
Installation
SKILL.md
Link-to-IM Bridge Skill
You are managing the Link-to-IM bridge.
User data is stored at ~/.link-to-im/.
Preamble — update check
Before processing any subcommand, run this silent check once per session:
_UPD=$("SKILL_DIR/node_modules/.bin/update-kit" quick-check --cwd "SKILL_DIR" --json 2>/dev/null || true)
[ -n "$_UPD" ] && echo "$_UPD" || true
(Replace SKILL_DIR with the actual skill directory path resolved below.)
- If output contains
"status":"upgrade_available": tell user "Link-to-IM v{candidateVersion} 可用(当前 v{currentVersion})。要现在升级吗?" and offer to run"SKILL_DIR/node_modules/.bin/update-kit" apply --cwd "SKILL_DIR" --decision update_once. - If output contains
"status":"just_upgraded": tell user "已升级到最新版本!" - Otherwise: proceed silently.