update
Skill63 starsChanged 3 months agoMITView on GitHub
Check for new versions of Claude Code and ClawCode, and print safe update commands. Triggers on /agent:update, /update, "check for updates", "are there updates", "buscar actualizaciones".
- Installs packages
41 other projects use a version of this.
Adopted by
Most recently taken up by
- onetapstudiogames/1f3d9-citylifetheir own version, first seen Oct 7, 2026
- t0ddharris/compound-marketingtheir own version, first seen Oct 5, 2026
- patrickjaja/claude-desktop-extratheir own version, first seen Oct 4, 2026
- egregore-labs/egregoretheir own version, first seen Oct 1, 2026
- conorbronsdon/agent-context-ostheir own version, first seen Sep 30, 2026
- gonimar/claude-web-studiotheir own version, first seen Sep 27, 2026
Used with
Projects with it also use install, backup and 7 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
thesmartSkillinstall
Detects the user's OS and available package managers, then runs the correct install, uninstall, search, or list command. Use this skill whenever the user asks to install, remove, update, or search for a package or CLI tool — even if they don't name a specific package manager. Also activate when the user says things like "I need ffmpeg", "get me node 20", "remove postgres", "what package managers do I have", or "how do I install X on this machine".
Also in 3 projects that use this
tombelieberSkillbackup
Manage Claude Code backups — sync config and sessions, list/restore sessions, check status. Use when the user asks about backups, restoring sessions, or migrating their Claude environment.
Also in 3 projects that use this
kv0906Skillinbox
Quick capture mode (with content) or batch processing mode (no content). GTD-style routing of inbox items to proper folders. Use "/inbox thought to capture" or "/inbox" to process.
Also in 3 projects that use this
nicodianskSkillwrap
Use when ending a session, taking a break, or context is getting full. Captures session state, decisions, and generates a resume prompt for the next session. Critical for multi-session continuity.
Also in 3 projects that use this
TashanGKDSkillnote
个人笔记记录助手。自动以 JSON 格式记录想法、学习笔记、会议纪要到 ~/.note,支持标签分类和全文搜索。
Also in 3 projects that use this
chris6970barbarian-hueSkilldashboard
Also in 3 projects that use this
Other versions41 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 41
- anthropics/knowledge-work-plugins★ 26ksame name
- Q00/ouroboros★ 6.2ksame name
- vellum-ai/vellum-assistant★ 1.4ksame name
- patrickjaja/claude-desktop-extra★ 657same name
- egregore-labs/egregore★ 291same name
- akseolabs-seo/AK-Threads-booster★ 274same name
- kv0906/pm-kit★ 138same name
- k1p1l0/claude-telegram-supercharged★ 128same name
- buildomator/buildomator★ 90same name
- rlajous/claude-code-commands★ 30same name
31 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- templates/AGENTS.mdAGENTS.md
- templates/CLAUDE.mdCLAUDE.md
- aboutSkill
- channelsSkill
- compactSkill
- createSkill
- cronsSkill
- doctorSkill
- heartbeatSkill
- helpSkill
- importSkill
- liveSkill
- messagingSkill
- newSkill
- scopeSkill
- serviceSkill
- settingsSkill
- skill-managerSkill
- statusSkill
- usageSkill
- voiceSkill
- whoamiSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 39 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Before applying any change to the running service — knowing the upstream version helps decide whether to bundle with an update.
- Distinctive: line 19
Detect current versions: Run all three in parallel (independent reads):
- Distinctive: line 43
If any value is empty, treat that side as "unknown" rather than failing the whole check.
- Distinctive: line 50
Surface the result: Always show a status block.
- Distinctive: line 59
When at least one update is available, append:
- Distinctive: line 81
When invoked from the heartbeat skill, the goal is *not* to spam the user every 30 minutes.
- Very specific: line 106
If the plugin repo isn't a git checkout (rare — installed via plugin manager only), skip the ClawCode side gracefully and just check Claude …
“Common” is measured: kept by at least 6 in 10 of the 39 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/agent:update — Check for new versions
Detect whether new versions of Claude Code (@anthropic-ai/claude-code) or ClawCode (this repo) are available, and surface the safe update procedure for each. Designed for users running ClawCode as a long-running daemon, where Claude Code's in-process auto-updater is disabled (see lib/service-generator.ts — Environment=DISABLE_AUTOUPDATER=1) and updates have to be applied explicitly.
When to use
- User asks
/agent:update,/update, "check for updates", "are there updates", etc. - Heartbeat skill calls in silent-check mode (see
templates/HEARTBEAT.md). - Before applying any change to the running service — knowing the upstream version helps decide whether to bundle with an update.
Steps
Detect current versions. Run all three in parallel (independent reads):
# Claude Code installed binary CC_INSTALLED=$(claude --version 2>/dev/null | awk '{print $1}') # ClawCode local repo HEAD PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT:-$(pwd)/ClawCode}" CW_LOCAL=$(git -C "$PLUGIN_ROOT" rev-parse --short HEAD 2>/dev/null) CW_LOCAL_TAG=$(git -C "$PLUGIN_ROOT" describe --tags --abbrev=0 2>/dev/null || echo "no-tag")Detect available versions. Network calls — be tolerant of failures (no network, npm flake, GitHub down):
# Claude Code latest on npm CC_LATEST=$(npm view @anthropic-ai/claude-code version 2>/dev/null) # ClawCode latest tag and HEAD on upstream git -C "$PLUGIN_ROOT" fetch upstream --tags 2>/dev/null CW_UPSTREAM_HEAD=$(git -C "$PLUGIN_ROOT" rev-parse --short upstream/main 2>/dev/null) CW_UPSTREAM_TAG=$(git -C "$PLUGIN_ROOT" describe --tags --abbrev=0 upstream/main 2>/dev/null || echo "no-tag")If any value is empty, treat that side as "unknown" rather than failing the whole check.
Compare and decide. Two boolean signals:
CC_UPDATE_AVAILABLEandCW_UPDATE_AVAILABLE.- Claude Code:
CC_UPDATE_AVAILABLE=1ifCC_INSTALLEDandCC_LATESTare both set and not equal. - ClawCode:
CW_UPDATE_AVAILABLE=1ifCW_LOCAL_TAGandCW_UPSTREAM_TAGare both set, neither isno-tag, and they differ (i.e. upstream has cut a newer release tag). Plain commits onupstream/main(docs, chore, ci) do NOT trigger an update notification; otherwise routine upstream activity would teach users to ignore the pings.
- Claude Code:
Surface the result. Always show a status block. If updates are available, append the safe procedure for each.
📦 *Update check* Claude Code: <CC_INSTALLED> → <CC_LATEST> <✅ current | ⬆️ update available | ⚠️ unknown> ClawCode: <CW_LOCAL_TAG>+<CW_LOCAL> → <CW_UPSTREAM_TAG>+<CW_UPSTREAM_HEAD> <✅ current | ⬆️ update available | ⚠️ unknown>When at least one update is available, append:
To apply (in a root shell on the host running the service): npm install -g @anthropic-ai/claude-code # if Claude Code update git -C <plugin-root> pull upstream main # if ClawCode update systemctl --user restart clawcode-<slug>.service # always — picks up bothSubstitute
<plugin-root>and<slug>from the actual service install (read from~/.config/systemd/user/clawcode-*.serviceif present, otherwise leave the placeholders).- On a messaging channel: trim the output for mobile. Use the channel-appropriate
replytool (e.g.mcp__plugin_telegram_telegram__reply). Don't include long bash blocks — instead one short line per actionable update, and offer "want the full commands?" as a follow-up.
Permission notes
- The
claudeuser typically cannot runnpm install -g(/usr/local/lib/node_modules/is root-owned). The skill detects + reports — it does not execute the install. The user (or their root-capable operator) runs the printed commands themselves. git pullworks as long as the user owns the plugin repo directory. ClawCode updates can be applied without elevation.systemctl --user restartrequires no root for user-mode services, but kills the running session. Warn before suggesting it during an active conversation.
Silent-check mode (called by heartbeat)
When invoked from the heartbeat skill, the goal is not to spam the user every 30 minutes. Use a memory-backed dedupe so each new version is announced exactly once:
NOTIFIED_FILE="$AGENT_ROOT/memory/.notified-versions.json"
# Read the last-notified version for each component.
LAST_CC=$(jq -r '.["claude-code"] // ""' "$NOTIFIED_FILE" 2>/dev/null)
LAST_CW=$(jq -r '.clawcode // ""' "$NOTIFIED_FILE" 2>/dev/null)
# Only notify when the available version differs from BOTH the installed AND the last-notified.
if [[ -n "$CC_LATEST" && "$CC_LATEST" != "$CC_INSTALLED" && "$CC_LATEST" != "$LAST_CC" ]]; then
# ping user, then record the new last-notified
jq --arg v "$CC_LATEST" '.["claude-code"] = $v' "$NOTIFIED_FILE" > "$NOTIFIED_FILE.tmp" \
&& mv "$NOTIFIED_FILE.tmp" "$NOTIFIED_FILE"
fi
# Same shape for ClawCode, keyed by tag (CW_UPSTREAM_TAG), so each release is
# announced once, and pure-chore upstream commits never trigger a notification.Initialize the file as {} if it doesn't exist. The dedupe survives restarts because it's in memory/, not /tmp.
Also gate on a coarser per-day check via memory/.last-update-check — heartbeat fires every 30 min but the network round-trip to npm + GitHub doesn't need to happen that often. Skip the network calls entirely if the marker's mtime is < 24h old; just compare against the cached state.
Notes
- This skill never applies updates. It only detects, reports, and tells the user the safe command. That's deliberate — a daemonized agent that auto-applies updates to its own runtime is exactly what we just disabled.
- If the plugin repo isn't a git checkout (rare — installed via plugin manager only), skip the ClawCode side gracefully and just check Claude Code.
- Channel-specific formatting: WhatsApp uses
*bold*; Telegram supports**bold**or HTML; CLI is plain markdown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

