Token导航 LogoToken导航TokenDH.com
效率可写文件clawhub未标认证来源可访问clear审计通过

version-master版本主控

Agent Skill

version-master 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

6,205

周安装

256

GitHub Stars

2

下载量

2,028
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:version-master(版本主控)
来源仓库:https://github.com/neuhanli/version-master
安装命令:
openclaw skills install version-master
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install version-master

简介

用于补充效率相关能力,支持单文件版本管理。version-master 属于效率类 Skill,可作为该场景下的辅助能力补充。

  • 适用于 OpenClaw 环境中需要保存、恢复文件快照的场景。
  • 通过智能版本历史记录比较和清理功能优化文件管理。
  • 安装前建议确认权限范围和是否会触发文件操作。
  • 可能涉及本地文件系统访问,需评估维护状态后再部署。

SKILL.md

name
version-master
version
2.1.1
description
Intelligent single-file version management. Save, restore, diff, and clean file snapshots with per-file version history. Activate when users need version control, file snapshot management, or project state recovery.
keywords
["version snapshot", "version control", "snapshot save", "version restore", "version diff", "快照保存", "版本管理", "版本恢复", "版本对比"]

Version-Master 2.1.0

Purpose

Version-Master 2.1.0 is a single-file level version management skill. Unlike full-workspace snapshots, it maintains independent version history for each file, so users can clearly see what changes each document has gone through.

Core Features

  1. Single-file versioning - Each file maintains its own version history independently
  2. Complete content saving - Saves actual file content (text and binary), supports full restoration
  3. Smart summaries - Automatically extracts descriptive summaries from file content (e.g., document titles)
  4. Content deduplication - Automatically skips unchanged files to avoid meaningless versions
  5. Safe restoration - Auto-backs up current file before restoring, supports rollback
  6. Version diff - Compare differences between versions of the same file

When to Use

Activate this skill when the user's request involves any of these scenarios:

  1. Save file version / 保存文件版本 - User says "save this file's version", "save current changes"
  2. View version history / 查看版本历史 - User says "what versions does this file have", "show version history"
  3. Restore old version / 恢复旧版本 - User says "restore to v2", "go back to previous version"
  4. Diff versions / 对比版本差异 - User says "compare v1 and v2", "show me what changed"
  5. Clean versions / 清理版本 - User says "delete old versions"

How to Use

After loading this skill, the AI uses version management features by calling scripts/version_tool.py.

Core Features

1. Save Version

# Save a specific file
save_version(file_path="ai_news_20260324.md", message="Added 11th news item")

Key Parameters:

  • file_path: File path (relative to workspace). Optional, but AI should auto-detect from context.
  • message: Version description. AI should auto-generate meaningful descriptions based on user actions.

AI Auto-Detection Rules / AI 自动判断规则:

  • User explicitly specifies a filename → Save that file / 用户明确指定文件名 → 保存该文件
  • User says "save it" and context shows a recently edited/generated file → AI auto-fills the file path / 用户说"保存一下"且上下文中有刚编辑/生成的文件 → AI 自动填入该文件路径
  • Cannot determine → Ask the user which file to save / 无法判断 → 向用户询问要保存哪个文件
  • NEVER call without file_path expecting batch save / 禁止不带 file_path 直接调用并期望批量保存

2. List Versions

# List all files with version history
list_versions()

# List version history of a specific file
list_versions(file_path="ai_news_20260324.md")

Output Example:

ai_news_20260324.md (3 versions)
  v3 - Added 11th news item | 2026-03-25 08:08
  v2 - Added 6 tech news items | 2026-03-25 08:05
  v1 - Initial version, 10 AI news items | 2026-03-25 08:03

interesting_news.md (1 version)
  v1 - Tech, sports, military highlights | 2026-03-25 08:10

3. Restore Version (requires user confirmation / 需要用户确认)

# Restore to a specific version
restore_version(file_path="ai_news_20260324.md", version=2, confirm=True)

# Restore to the latest version
restore_version(file_path="ai_news_20260324.md", confirm=True)

Restoration Features:

  • Auto-backs up current file to .version_backup/
  • Fully restores file content (text and binary)

4. Diff Versions

# Compare two versions of the same file
diff_versions(file_path="ai_news_20260324.md", version1=1, version2=3)

# Compare current file with a historical version
diff_versions(file_path="ai_news_20260324.md", version2=2)

5. Clean Versions

# Delete all versions of a file
clean_versions(file_path="test.txt", confirm=True)

# Delete a specific version of a file
clean_versions(file_path="test.txt", version=1, confirm=True)

Safety Rules / 安全规则

The following operations require explicit user confirmation:

  1. Version restore / 版本恢复 - Will overwrite current file content
  2. Version delete / 版本删除 - Permanently deletes snapshot data

Before calling these operations, the AI must:

  1. Show operation details and risks / 显示操作详情和风险
  2. Wait for explicit user confirmation / 等待用户明确确认
  3. Set confirm=True parameter / 设置 confirm=True 参数

Path Security / 路径安全: All file_path parameters are validated server-side to stay within the workspace boundary. Paths containing ../ or absolute paths outside the workspace are rejected with an error. The AI must never pass system-level paths (e.g., ../../etc/passwd, C:\Windows\...) as file_path.

Technical Implementation

Storage Architecture

~/.workbuddy/versions/version-master/
├── index.json                                    # Global index (file → version mapping)
├── 20260325084235_ai_news_20260324-md/           # One directory per file (prefixed with workspace ID)
│   ├── v1.json                                  # Version 1 (text content embedded in JSON)
│   ├── v1.md                                    # Version 1 binary reference file (if any)
│   ├── v2.json                                  # Version 2
│   └── v3.json                                  # Version 3
└── 20260325084235_interesting_news-md/
    └── v1.json

Design Notes:

  • All workspaces share the same storage directory, version snapshots are accessible across workspaces
  • Directory names are prefixed with workspace directory name (e.g., 20260325084235) for readability and disambiguation
  • . in filenames is replaced with -, path separators replaced with _ to ensure unique keys
  • Text files: Content embedded directly in JSON
  • Binary files: Copied to version directory (e.g., v1.png), JSON stores only a file reference (no base64)
  • index.json can be auto-rebuilt from disk v*.json files if corrupted or lost

Global Index Structure (index.json):

{
  "files": {
    "20260325084235_ai_news_20260324-md": {
      "rel_path": "ai_news_20260324.md",
      "next_version": 4,
      "versions": [
        {
          "version": 1,
          "timestamp": "2026-03-25T08:03:00",
          "content_hash": "abc123...",
          "file_size": 2928,
          "summary": "Initial version, 10 AI news items",
          "version_file": "20260325084235_ai_news_20260324-md/v1.json"
        }
      ]
    }
  }
}

Version File Structure (v1.json)

{
  "version": 1,
  "timestamp": "2026-03-25T08:03:00",
  "content_hash": "abc123...",
  "file_size": 2928,
  "summary": "Initial version, 10 AI news items",
  "message": "Initial version",
  "content": {
    "type": "text",
    "content": "# AI News Briefing\
\
..."
  }
}

File Structure

version-master/
├── SKILL.md              # Skill documentation
├── requirements.txt      # Dependencies
└── scripts/
    ├── __init__.py
    └── version_tool.py   # Core implementation

AI Usage Guide

Key Principles

  1. Smart file_path detection / 智能判断 file_path - AI should auto-detect which file to save based on context. When user says "save it", save the file just edited/generated; when user specifies a filename, save that file; when uncertain, ask the user.
  2. Auto-generate message / 自动生成 message - AI should auto-generate meaningful version descriptions (e.g., "Added section 3", "Fixed typo").
  3. List before save / 先 list 后 save - Check existing version history before saving to avoid duplicating identical content.
  4. Clear version display / 清晰展示版本关系 - Display versions grouped by file with clear version numbers and change descriptions.

Example Workflow

User: "帮我把 ai_news.md 保存一下" / "Save ai_news.md for me"
AI:
  1. Call list_versions(file_path="ai_news.md") to check existing versions
  2. Analyze current file content changes
  3. Call save_version(file_path="ai_news.md", message="Added 3 new news items")
  4. Show result: "ai_news.md saved as v3"

User: "恢复到上一个版本" / "Restore to previous version"
AI:
  1. Check version history, confirm current is v3, previous is v2
  2. Prompt user: "About to restore ai_news.md to v2 (Added 3 news items → Initial version). Confirm?"
  3. After user confirms, call restore_version(file_path="ai_news.md", version=2, confirm=True)

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

92.86%
按下载量换算1,883

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

可写文件

该 Skill 可能写入或修改本地文件,使用前需要确认目标目录和修改范围。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills