Xpersona
V

version-master

CLAWHUB · Unverified

Intelligent single-file version management. Save, restore, diff, and clean file snapshots with per-file version history. Activate when users need version con... Skill: version-master Owner: neuhanli Summary: Intelligent single-file version management. Save, restore, diff, and clean file snapshots with per-file version history. Activate when users need version con... Tags: latest:2.1.1 Version history: v2.1.1 | 2026-03-26T10:20:32.271Z | user Version 2.1.1 (no file changes detected): - Version number updated to 2.1.1 in documentation. - No other updates or code changes presen

62
Rank
84
Safety
965
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 965 downloads reported by the source. Last updated 10/12/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s170fra97dyryvewpm8k1555p983efvx:version-master
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-neuhanli-version-master/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

109,090 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

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

```python
# 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

```python
# List all files with version history
list_versions()

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

**Ou

_meta.json

{
  "ownerId": "kn79pyxtj74g738ryrh52tmxb582y1bh",
  "slug": "version-master",
  "version": "2.1.1",
  "publishedAt": 1774520432271
}

references/usage.md

# Version-Master 3.0 Reference

## CLI Usage

Call `version_tool.py` directly from the command line:

### 1. List Versions
```bash
# List all files with version history
python version_tool.py list

# List version details of a specific file
python version_tool.py list --file report.md
```

### 2. Save Version
```bash
# Save a specific file
python version_tool.py save --file report.md -m "Updated chapter 3"
```

### 3. Diff Versions
```bash
# Compare two historical versions
python version_tool.py diff --file report.md --v1 1 --v2 2

# Compare current file with a historical version
python version_tool.py diff --file report.md --v2 2
```

### 4. Restore Version
```bash
# Requires confirmation
python version_tool.py restore --file report.md --version 1 --confirm
```

### 5. Clean Versions
```bash
# Delete a specific version (requires confirmation)
python version_tool.py clean --file report.md --version 1 --confirm

# Delete all versions (requires confirmation)
python version_tool.py clean --file report.md --confirm
```

## Python API Usage

Call via the `VersionMaster` class in Python:

```python
import sys, os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "scripts"))
from version_tool import VersionMaster

tool = VersionMaster()  # Uses current working directory by default

# Save version
tool.save_version(file_path="report.md", message="Updated chapter 3")

# List versions
tool.list_versions()                        # All files overview
tool.list_versions(file_path="report.md")   # Single file details

# Diff versions
tool.diff_versions(file_path="report.md", version1=1, version2=2)
tool.diff_versions(file_path="report.md", version2=2)  # Current file vs v2

# Restore version (requires confirm=True)
tool.restore_version(file_path="report.md", version=1, confirm=True)

# Clean versions (requires confirm=True)
tool.clean_versions(file_path="report.md", version=1, confirm=True)
tool.clean_versions(file_path="report.md", confirm=True)  # Delete all versions
```

## Return Format

All operations return a dictionary with a `success` field:

```json
{"success": true, "file": "report.md", "version": 3, "summary": "..."}
{"success": false, "error": "Error description"}
{"success": false, "requires_confirmation": true, "message": "Confirmation required..."}
```

## Safety Confirmation

`restore` and `clean` operations require `confirm=True`, otherwise they return a `requires_confirmation` response.

skill-card.md

## 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.

This skill is ready for commercial/non-commercial use.

## Publisher:

[neuhanli](https://clawhub.ai/user/neuhanli)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agent users use this skill to manage per-file snapshots: saving versions, listing history, comparing changes, restoring earlier content, and cleaning old snapshots.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Shared snapshot storage can expose or alter histories across workspaces.

Mitigation: Use the skill only in environments where cross-workspace snapshot visibility is acceptable, or fix storage isolation before using it with sensitive projects.

Risk: Complete file snapshots are stored under the user's home directory and may contain secrets or private project content.

Mitigation: Avoid saving secrets or private files, and review stored snapshots before sharing or moving the environment.

Risk: Restore and clean operations can overwrite current files or delete snapshot history.

Mitigation: Require explicit user confirmation and show the target file, version, and consequence before setting confirmation flags.

## Reference(s):

- [Version-Master Usage Reference](references/usage.md)
- [ClawHub Skill Page](https://clawhub.ai/neuhanli/skills/version-master)

## Skill Output:

**Output Type(s):** [text, code, shell commands, files, guidance]

**Output Format:** [Markdown guidance with Python or shell command examples; tool calls return JSON-like dictionaries and may create, restore, diff, or delete snapshot files.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Restore and clean operations require explicit confirmation; snapshot data may include complete text or binary file contents.]

## Skill Version(s):

2.1.1 (source: frontmatter and server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to version-master and adjacent AI workflows.