Langsung ke konten
Skillpedia
Lain-lain6.0k Β· #14468

sn-update

Fungsinya

Skill ini memperbarui skill SenseNova yang terpasang ke versi hulu terbarunya. Skill ini untuk orang yang memakai skill SenseNova di OpenClaw atau hermes-agent dan ingin skill tersebut tetap mutakhir.

Kapan dipakai

  • βœ“Saat Anda ingin memperbarui semua skill SenseNova yang terpasang ke versi terbaru.
  • βœ“Saat Anda hanya ingin menyegarkan satu skill SenseNova tertentu.
  • βœ“Saat Anda ingin memaksa pemasangan ulang meskipun skill sudah mutakhir.

Link skill

https://github.com/OpenSenseNova/SenseNova-Skills/blob/main/skills/sn-update/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/OpenSenseNova/SenseNova-Skills/blob/main/skills/sn-update/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œPerbarui semua skill SenseNova saya ke versi terbaru.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent memeriksa folder agent mana yang Anda pakai, menyinkronkan repositori hulu, dan menyalin file skill yang lebih baru ke tempatnya. Agent akan bertanya jika kedua folder agent ada.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

sn-update

Refresh installed sn-* skills from upstream SenseNova-Skills.


Decide the scope

  • No list given β†’ every sn-* skill upstream.
  • Specific skills named β†’ only those. Don't expand.
  • A named skill missing upstream β†’ surface as error and stop.
  • User said "force / 强刢" β†’ re-install even when up-to-date.

Decide the target agent

Check which directories exist:

~/.openclaw/skills/ ~/.hermes/skills/ Target
exists absent openclaw
absent exists hermes
exists exists ask the user β€” never silently dual-write
absent absent no install found, stop

Sync the upstream repo

Persistent cache at ~/.cache/sn-update/repo/. Default URL: https://github.com/OpenSenseNova/SenseNova-Skills.git. User may override with a fork URL.

  • First run: if you want to actually limit blob download, use partial clone with --filter=blob:none --no-checkout, then sparse-checkout only the selected skills/<name> paths before copying them. --filter=blob:none alone does not keep the cache small if the full worktree is checked out; that checkout will still download most or all needed blobs. It still preserves history metadata for SHA queries.
  • Subsequent runs: fetch + hard-reset to the upstream default branch, and re-apply sparse-checkout for only the requested skills/<name> paths before copying. If updating the whole sn-* bundle, expect most/all skill blobs to be downloaded.
  • URL changed: if cache's origin differs from the requested URL, delete and re-clone.

Compare versions per skill (A β†’ B β†’ C)

For each skill, pick the highest-precedence signal present on both sides (installed + upstream); equal β†’ skip, differ β†’ install.

Upstream "version" is the per-subtree commit SHA β€” using repo HEAD would mark unrelated skills as stale every time:

git -C <cache> log -1 --format=%H -- skills/<skill-name>
  • A β€” .sn-version marker: one-line file inside the installed skill holding the SHA from its last install.
  • B β€” .sn-release marker (fallback): one-line file holding the upstream tag name. Compare against git describe --tags --abbrev=0.
  • C β€” optional version: field in SKILL.md frontmatter: parse from YAML on both sides, but only for forks or skills that explicitly add this field. If either side lacks it, C does not apply.
  • Nothing usable β†’ treat as stale and install.

Always write .sn-version on install so future runs can use A.


Install with backup

For each skill flagged "install":

  1. Move (not copy) any existing <agent-skills>/<skill-name>/ into a single timestamped backup bucket shared by all skills in this run: ~/.<agent>/skills_backup/<UTC-timestamp>/<skill-name>/ (e.g. 2026-04-30T15-29-07Z).
  2. Copy <cache>/skills/<skill-name>/ β†’ <agent-skills>/<skill-name>/. Never symlink (ln -s) from the cache. The cache lives under ~/.cache/ with permissions the agent runtime may not be able to traverse, and some runtimes refuse to load skills resolved through symlinks. Always do a real recursive copy so the installed tree is self-contained and owned by the agent skills dir.
  3. Write .sn-version with the upstream subtree SHA inside the new copy.

If the bucket ends up empty (all targets were fresh installs), remove it.

The backup tree is a sibling of skills/, never a .bak folder inside it β€” most agent runtimes scan the whole skills/ directory and would pick up stale duplicates.


Enforce backup retention

After every run, prune the per-agent backup root to at most 3 buckets. Timestamps sort lexicographically; keep the newest 3, delete the rest. Run this even when the current run produced no backup of its own.


Report to the user

Group by status, keep it short:

Updated (3): sn-ppt-standard, sn-image-base, sn-deep-research
Already up-to-date (5): sn-ppt-creative, sn-ppt-doctor, ...
Backup: ~/.openclaw/skills_backup/2026-04-30T15-29-07Z/
  • Omit Backup: when nothing was backed up.
  • Show SHA pairs (abc1234 β†’ def5678) only if the user asks for detail.
  • Errors get their own line β€” never bury them in a success summary.

Edge cases

  • Asks to delete sn- skills* β€” not this skill's job. Decline; point at ~/.<agent>/skills_backup/ if they want to roll back.
  • User is in the dev repo and asks
Pertanyaan umum

Bisakah hanya memperbarui satu skill?

Bisa. Anda dapat menyebut skill tertentu, dan hanya skill itu yang diperbarui.

Bagaimana jika OpenClaw dan Hermes sama-sama terpasang?

Skill akan menanyakan mana yang harus diperbarui, sehingga tidak menulis ke keduanya.

Bisakah saya memakai fork repositori?

Bisa. Anda dapat memberikan alamat repositori lain sebagai pengganti repositori utama.

Detail

Deskripsi asli dari pembuat

Update SenseNova Skills (the sn-* bundle) inside an OpenClaw or hermes-agent install. ALWAYS use this skill when the user says any of: "update SenseNova skills", "update SN skills", "ζ›΄ζ–° sensenova skills", "ζ›΄ζ–° sn skills", "εˆ·ζ–° sn-*", "升级 sn-* skills", or names a specific sn-* skill to update (e.g. "ζ›΄ζ–° sn-ppt-standard", "refresh sn-image-base"). Default scope is the whole sn-* bundle; if the user names specific skills, update ONLY those.

repo: OpenSenseNova/SenseNova-Skills

Popularitas

Bintang GitHub
6.0k
Peringkat
#14468
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa