← 返回
未分类

V.A.R. Protocol

Enforce Versioning, Archiving, and Rollback discipline for long-lived assets and multi-step delivery work. Use when editing codebases, websites, documents, d...
对长期资产和多步骤交付工作实施版本控制、归档和回滚规范。适用于编辑代码库、网站、文档等。
wewehg wewehg 来源
未分类 clawhub v1.0.2 1 版本 100000 Key: 无需
★ 0
Stars
📥 404
下载
💾 0
安装
1
版本
#latest

概述

V.A.R. Protocol

Apply V.A.R. whenever the cost of overwriting the wrong thing is higher than the cost of being slightly more disciplined.

中文简介

V.A.R. Protocol 是一个面向长期项目、重要资产和多阶段交付的协作规范。

它的核心原则是:版本清晰(Versioning)、备份优先(Archiving)、遇错先回退(Rollback)

适用于网站改版、代码重构、文档/Deck 迭代、Prompt/Config 升级、多 Agent 协作等场景,目标是在推进迭代速度的同时,避免 destructive overwrite、内容丢失与不可逆回归。

V.A.R. stands for:

  • Versioning
  • Archiving
  • Rollback

What this skill is for

Use this skill to turn risky editing work into a safer delivery flow.

It is designed for code, content, design, and multi-agent execution where recoverability matters as much as speed.

Typical triggers:

  • “Refactor this site without breaking the current version.”
  • “Rewrite this proposal / deck, but keep a safe fallback.”
  • “Migrate these prompts or configs and preserve rollback options.”
  • “Have multiple agents work on the same long-lived asset safely.”
  • “Package this release with a clear version, changelog, and rollback point.”

Core operating sequence

Follow this order:

  1. Stabilize the baseline — identify the current working version or last known good artifact.
  2. Back up before structural change — create a restorable copy before large edits, refactors, migrations, or agent handoffs.
  3. Use explicit versions — name outputs with clear semantic versions instead of vague labels like final, latest, or new2.
  4. Change incrementally — prefer small, reversible modifications over full replacement.
  5. Attach a changelog — state what changed, why, and what the rollback anchor is.
  6. Rollback first when broken — if the new version regresses, restore the last stable version before attempting another merge.

When to apply strict mode

Use the strictest form of V.A.R. when any of the following are true:

  • The asset is long-lived or business-critical.
  • Multiple agents or contributors are touching the same artifact.
  • The task involves refactor, redesign, migration, or restructuring.
  • The user may need to compare versions or recover prior work quickly.
  • The output is a website, source tree, proposal, deck, prompt system, knowledge base, automation config, or brand asset set.

Minimum operating requirements

Before making a high-impact change:

  • Identify the artifact owner and the current stable version.
  • Create a backup or duplicate that can be restored quickly.
  • Decide the next semantic version.
  • Preserve or document the rollback anchor.

During the change:

  • Avoid destructive overwrite when a parallel version is feasible.
  • Prefer additive or surgical edits over wholesale replacement.
  • Keep filenames and folders readable and comparable.

At delivery:

  • State the new version.
  • Provide a concise change summary.
  • Name the rollback anchor explicitly.
  • Call out any known risks or incomplete areas.

Default naming guidance

Prefer patterns like:

  • [project]-[artifact]-v1.0.ext
  • [project]-[artifact]-v1.1.ext
  • [project]-[artifact]-v1.1.1.ext

Use version levels consistently:

  • Major: architecture, structure, or strategy changed.
  • Minor: meaningful feature/module expansion without core rewrite.
  • Patch: small fixes, copy edits, image swaps, bug fixes.

Delivery contract

When delivering work under V.A.R., include:

  • Version
  • Change summary
  • Rollback anchor
  • Known risks if any remain

Failure handling

If the new version loses functionality, quality, or content:

  1. Stop stacking more changes onto the broken version.
  2. Restore or switch back to the last stable artifact.
  3. Diagnose the failure from the stable baseline.
  4. Re-apply only the needed changes in smaller slices.

Multi-agent rule

The lead agent owns backup and rollback safety.

Do not assume a sub-agent already created a safe restore point unless it is explicitly confirmed.

Read next

For the full protocol text, delivery checklist, and example delivery block, read references/protocol.md.

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-05-07 06:22 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,873
knowledge-management

OpenClaw Glasses (多源搜索+意图感知+权重自适)

wewehg
OpenClaw双语搜索层技能,将常规网页检索升级为多源检索,支持意图感知排序、自适应加权及线索牵引。
★ 0 📥 715
it-ops-security

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 90 📥 30,872