tempest-01

Skill-Updater

Git-based skill auto-updater for OpenClaw. Syncs skills to GitHub, checks clawhub versions, auto-merges local modifications, and pushes updates daily via cron. Includes conflict detection and formatted QQ summaries.

tempest-01 0 Updated 2mo ago

Resources

11
GitHub

Install

npx skillscat add tempest-01/skill-updater

Install via the SkillsCat registry.

SKILL.md

Skill-Updater

⚠️ Requires Git Repository: This skill requires the skills directory to be a Git repository with a GitHub remote. See README.md for setup instructions.

An AI-authored OpenClaw skill that keeps your skills synchronized via GitHub.

Features

  • GitHub as Source of Truth — All skill changes pushed to GitHub
  • Local Mod Protectiongit stash preserves local changes before merging
  • Smart Merge — Auto-resolves most merge conflicts
  • clawhub Version Check — Inspects versions with rate-limit protection (2s interval)
  • Immediate Push — Any local change triggers instant git push
  • Conflict Reports — Writes unresolved conflicts to merge_conflicts.md
  • Formatted QQ Summaries — Clean update reports for messaging channels

Quick Setup

# 1. Initialize Git (if not already)
cd ~/.openclaw/workspace/skills
git init
git remote add origin https://<token>@github.com/<user>/<repo>.git

# 2. Configure GitHub Token
echo "<your-token>" > git-sync-updater/.git_token
chmod 600 git-sync-updater/.git_token

# 3. Set cron job
openclaw cron add \
  --name "Daily Auto-Update" \
  --cron "0 4 * * *" \
  --tz "Asia/Shanghai" \
  --session isolated \
  --message "python3 ~/.openclaw/workspace/skills/git-sync-updater/git_update.py" \
  --to "qqbot:c2c:<your_id>" \
  --channel qqbot

File Structure

git-sync-updater/
├── README.md
├── SKILL.md
├── _meta.json
├── git_update.py       # Core script
├── .git_token          # GitHub token (NOT committed)
└── references/
    └── summary-examples.md

See Also

Full documentation: README.md

Categories