Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

backup-chain

БесплатноЗапускает вложенные скриптыНе проверен

Fenced, hash-chained workspace backups: tarball snapshots carrying a monotonic generation counter and parent sha256 inside each archive, an append-only…

darkdот darkd825 установок в других каталогах

Об этом скилле

backup-chain v1.3.2

Crash- and wipe-resilient workspace backups built on six invariants learned the hard way. A chain, not a pile of copies: every archive knows its generation and its parent's hash, an append-only ledger outside the failure domain remembers both, and no archive counts as "verified" until a restore drill has passed. On top of the chain sits a witness layer (v1.1): compressed decision traces per generation, operator acknowledgments, a witnessed ack policy (v1.2 — a chain that runs ackless by decision says so in the same ledger an ack would live in), and custody event lines — evidence written at rest, never gates. And on top of that sits a curation layer (v1.2): per-member excludes, custody-preserving eviction, and advisory dead-weight detections — all of them options, none of them defaults, because no two workspaces look alike and no agent using this skill owes the universe a side bucket.

Permissions

  • filesystem read: the configured project root and the archive paths passed on the command line. Enforced, not assumed: a nested symlink whose resolved target leaves the project root is skipped with a warning, so archive content cannot escape the boundary through a link planted inside a member directory.
  • filesystem write: <root>/.vault/ (config, ledger file, last-build receipt), the configured output dir (tarballs + .sha256 receipts), and restore --target — never without an explicit --target.
  • file modes (1.3.0/1.3.1): archives, their .sha256 receipts and any stow copies are created owner-only (0600) by default, applied verbatim — the ambient umask neither widens nor narrows an explicit --archive-mode. Widen deliberately per invocation (--archive-mode); the persistent archive_mode config key may narrow only — a workspace-supplied value carrying group/other bits is refused (rc 2), because config is adversarial input (audit T09). exec/setuid/sticky modes are refused for both origins. See references/SECURITY.md § Archive file modes and references/RESIDUAL_RISK.md item 16.
  • config path boundary (1.0.5/1.0.6): .vault/config.json is workspace- contributed state and adversarial input — it may propose, the invocation root disposes. The stored root is pinned to the invocation root (realpath equality; a config claiming another directory is refused, so a planted config cannot redirect what gets read), member paths are re-validated at load (../~/absolute refused), chain_name must stay a safe filename component, output_dir must stay inside the workspace (symlinked output dirs that resolve outside are refused before anything is created — ONE shared containment guarding build and evict alike since 1.3.2), and the file-ledger destination must resolve inside the workspace — absolute, traversing, or symlinked-out paths refuse to append without the operator's --allow-external-ledger (1.0.6; in-root ledgers never consult it). External archive destinations remain a per-invocation operator choice: --output (build), --stow-to/--stow-cmd (evict).
  • subprocess: tarfile/sha256 are in-process; the ONLY external execution is (a) the user-configured ledger command adapter (git-hook trust class, refuse-by-default via --allow-cmd-ledger) and (b) the v1.2 stow command passed per-invocation as --stow-cmd CMD — the operator's own voice on the CLI, never read from config, run as an argv vector (shell=False) with archive bytes on stdin, announced on stderr. Neither can fire from a planted config on a routine subcommand.
  • network: false · eval/exec: false.
  • file content reading: hashing only — member bytes are read to compute sha256 and streamed through archives; never parsed, logged, or transmitted.

When to use

Use when all of these hold:

  • the workspace contains files whose loss would be costly or irreplaceable (credentials, skills, long documents, derivation trails, worklogs), and
  • the environment has a real failure class beyond your control — sandbox resets, dotdir rollbacks, storage rollbacks, platform-side wipes, and
  • recovery must be possible by a later session with no memory of this one.

Do not use when any of these hold:

  • Version control suffices — if the history lives in git and the remote is trusted, git already solves ordering and integrity
  • Single-file copies — "copy this file somewhere safe" needs no protocol
  • Secrets without a plan — archives may contain credential files; if the user has no private storage for them, read references/SECURITY.md first
  • The user just wants cloud sync — this skill has no upload code by design

The six invariants

  1. Ordering is asserted, never inferred. "Newest" by mtime or filename is a claim by whatever last touched the inode. Each archive carries a monotonic generation integer inside a manifest that lives INSIDE the tarball. Stale restore
Полный SKILL.md на ClawHub

Установить backup-chain в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл backup-chain?

Fenced, hash-chained workspace backups: tarball snapshots carrying a monotonic generation counter and parent sha256 inside each archive, an append-only external ledger (file or user-supplied command — no platform code), gated builds (member presence, manifest roundtrip, sha256 receipt, restore drill), per-member verified restore, a witness layer (compressed decision traces per generation, operator acks, a witnessed ack policy for chains that run ackless by decision, restore/drill event lines — witnesses, never gates), and opt-in curation (per-member excludes, custody-preserving eviction, advisory dead-weight detections). Use whenever the user wants to back up, snapshot, or checkpoint a workspace/project so a crash, wipe, sandbox reset, or rollback can be recovered from; to build or register a backup; to verify, drill, or restore/heal from an archive; to record why a generation was made (decision trace, chain of thoughts, reasoning provenance) or acknowledge having checked one; to prune, slim, evict, or curate chain members without losing custody; or mentions backups, vault, chain head, generations, fencing, restore drill, stale handoff, dead weight, or wipe recovery — even if none of those exact words are used. Do not use for single-file copies, git/version-control workflows, or cloud-sync setup: this skill is deliberately platform-agnostic and contains no upload code — off-site distribution belongs to the user.

Как установить скилл backup-chain?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл backup-chain запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить backup-chain с