agentleFS
b1rdmaniab1rdmania/ghostclaw/.claude/skills/add-update-check/SKILL.md

add-update-check

Skill91 starsChanged 7 months agoMITView on GitHub

Monthly check for GhostClaw updates. Notifies the user when new commits are available. Never auto-updates — user reviews and applies manually.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If updates are available:

    line 38
  2. Very specific:

    If up to date: silence (wrapped in <internal> tags).

    line 48
  3. Very specific:

    Run /update-ghostclaw to apply safely (or apply manually)

    line 55

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Add Update Check

Registers a monthly scheduled task that checks the GhostClaw repo for new commits and notifies the user if updates are available.

Setup

Find the main group's chat JID:

sqlite3 store/messages.db "SELECT jid FROM registered_groups WHERE folder = 'main' LIMIT 1;"

Register the task:

CHAT_JID="<main chat JID>"
cat > data/ipc/main/tasks/update_check_$(date +%s).json << EOF
{
  "type": "schedule_task",
  "prompt": "Check for GhostClaw updates.\n\n1. Run: git fetch origin 2>&1\n2. Run: git log HEAD..origin/main --oneline\n3. If there are new commits, message the user with how many and a one-line summary of each.\n4. If no new commits, respond with <internal>GhostClaw is up to date</internal> and nothing else.\n\nWhen notifying about updates, always include:\n- Number of new commits\n- One-line summary of each\n- Remind them: 'Review the changes with git diff HEAD..origin/main — then run /update-ghostclaw in Claude Code to apply safely (it backs up, migrates, rebuilds, and restarts).'\n- Remind them to review for security — this code runs with full system access.",
  "schedule_type": "cron",
  "schedule_value": "0 10 * * 1",
  "context_mode": "isolated",
  "targetJid": "$CHAT_JID"
}
EOF

This runs at 10am on the every Monday.

What the user sees

If updates are available:

3 new GhostClaw commits available:

  • abc1234 Add heartbeat disk usage threshold config
  • def5678 Fix Telegram reconnection on network change
  • ghi9012 Update Grammy to 1.25

Review the changes before applying. This code runs with full system access. Run git diff HEAD..origin/main to see the full diff. When ready, run /update-ghostclaw in Claude Code to apply safely.

If up to date: silence (wrapped in <internal> tags).

Security note

This skill deliberately does NOT auto-update. The user must:

  1. Review the diff
  2. Understand what changed
  3. Run /update-ghostclaw to apply safely (or apply manually)

GhostClaw runs bare metal with no sandboxing. Blindly pulling code is a security risk.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.