backup-chain
БесплатноЗапускает вложенные скриптыНе проверенFenced, hash-chained workspace backups: tarball snapshots carrying a monotonic generation counter and parent sha256 inside each archive, an append-only…
от 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 +.sha256receipts), andrestore --target— never without an explicit--target. - file modes (1.3.0/1.3.1): archives, their
.sha256receipts 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 persistentarchive_modeconfig 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. Seereferences/SECURITY.md§ Archive file modes andreferences/RESIDUAL_RISK.mditem 16. - config path boundary (1.0.5/1.0.6):
.vault/config.jsonis workspace- contributed state and adversarial input — it may propose, the invocation root disposes. The stored root is pinned to the invocation root (realpathequality; 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_namemust stay a safe filename component,output_dirmust 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.mdfirst - The user just wants cloud sync — this skill has no upload code by design
The six invariants
- Ordering is asserted, never inferred. "Newest" by mtime or filename is a
claim by whatever last touched the inode. Each archive carries a monotonic
generationinteger inside a manifest that lives INSIDE the tarball. Stale restore
Установить 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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic