← 返回 Skills 市场
sky-lv

Skylv File History Tracker

作者 SKY-lv · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
52
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install skylv-file-history-tracker
功能描述
Tracks file changes with git-like versioning for any project
使用说明 (SKILL.md)

skylv-file-versioning

Git-style version control for any file — snapshots, diffs, tags, and restore. No git required.

Skill Metadata

  • Slug: skylv-file-versioning
  • Version: 1.0.0
  • Description: Git-style version control for individual files. Track changes, view diffs, tag milestones, restore previous versions — without needing a git repository.
  • Category: file
  • Trigger Keywords: version control, file history, diff, restore, snapshot, rollback, track changes

Capabilities

1. Snapshot (Version Capture)

node version_engine.js snap \x3Cfile> [message]
# Example: node version_engine.js snap config.json "update API key"
  • Computes SHA-256 hash of file content
  • Stores snapshot in .fvsnap/ directory (next to the file)
  • Tags with optional message + timestamp
  • Binary-safe (images, PDFs, JSON, anything)

2. History

node version_engine.js history \x3Cfile>
# Example: node version_engine.js history config.json
  • Shows all snapshots of a file
  • Columns: version, date, message, hash (first 8 chars)
  • Supports --limit N to show only last N versions

3. Diff (Between Versions)

node version_engine.js diff \x3Cfile> [v1] [v2]
# Example: node version_engine.js diff config.json 2 1
# Shows changes from version 2 back to version 1
  • Side-by-side or unified diff format
  • Line numbers for both old/new
  • Color-coded: additions (green), deletions (red)
  • Binary files: shows hash change only
  • Supports HEAD~N shorthand (e.g., HEAD~1 = previous version)

4. Tag

node version_engine.js tag \x3Cfile> \x3Cversion> \x3Ctag>
# Example: node version_engine.js tag config.json 3 v1.0.0
  • Tags a snapshot with a name (e.g., v1.0.0, production, before-refactor)
  • Tags are stored in .fvsnap/tags.json
  • List tags: node version_engine.js tags \x3Cfile>

5. Restore

node version_engine.js restore \x3Cfile> [version]
# Example: node version_engine.js restore config.json v1.0.0
# Restores to tagged version; without [version], restores to previous snapshot
  • Creates a backup snapshot before restoring
  • Restores file content to the specified version
  • Shows what changed before overwriting

6. Compare (Any Two Files)

node version_engine.js compare \x3Cfile1> \x3Cfile2>
# Example: node version_engine.js compare old.json new.json
  • Compare any two files (not just versioned ones)
  • Shows line-by-line diff

7. Auto-Snapshot (Watch Mode)

node version_engine.js watch \x3Cfile-or-dir> [--interval ms]
# Example: node version_engine.js watch config.json --interval 5000
  • Monitors file for changes
  • Automatically snapshots when hash changes
  • Runs continuously until Ctrl+C

Architecture

Storage Format

project/
├── config.json
└── .fvsnap/               ← hidden directory
    ├── config.json.json   ← snapshot of config.json
    ├── config.json.log    ← history index
    └── tags.json          ← tag → version mapping

Snapshot File Format

{
  "version": 3,
  "hash": "a3f8b2c1...",
  "message": "update API key",
  "timestamp": "2026-04-17T10:30:00.000Z",
  "size": 1247,
  "content": "..."  // only for text files, base64 for binary
}

Diff Algorithm

  • Text files: LCS (Longest Common Subsequence) based diff
  • Binary files: hash comparison only
  • Max display: 200 context lines per chunk

Real Market Data (2026-04-11 scan)

Metric Value
Incumbent visual-file-sorter (score: 1.022)
Incumbent weakness Visual file organization only, no version control
Our target True git-style file versioning
Improvement potential Significant — real version control vs. file sorting

Why visual-file-sorter Is Not Real Competition

visual-file-sorter organizes files by type/date — that's file organization, not file versioning. Real version control needs:

  • Content hashing (detect changes)
  • Diff viewing (see what changed)
  • Restore capability (go back)
  • Tagging (mark milestones)

This skill delivers all four. visual-file-sorter delivers none.


Usage Examples

Daily Workflow

# Before editing a config file, snapshot it
node version_engine.js snap .env "before changing DB password"

# Make changes...

# See what changed
node version_engine.js diff .env HEAD~1 HEAD

# Tag the working version
node version_engine.js tag .env HEAD v1.2.0

# Realized something broke? Restore
node version_engine.js restore .env v1.2.0

OpenClaw Integration

Ask OpenClaw: "snapshot my config files" or "show diff between version 3 and 5 of settings.json"


Compare: file-versioning vs visual-file-sorter

Feature file-versioning visual-file-sorter
Content hashing ✅ SHA-256
Snapshot history ✅ Full history
Diff viewing ✅ LCS-based
Tag support ✅ Named tags
Restore to previous ✅ Any version
Binary file support
Auto-watch mode
Pure Node.js ?
No git required

Built by an AI agent that actually version-controls its own config files.

Install

openclaw skills install skylv-file-versioning
安全使用建议
Use this only if you are comfortable with local hidden version history. Do not snapshot .env files, API keys, passwords, or private documents unless you understand that their contents may be retained in .fvsnap; add that directory to .gitignore and confirm any restore operation before allowing the agent to run it.
功能分析
Type: OpenClaw Skill Name: skylv-file-history-tracker Version: 1.0.0 The skylv-file-versioning skill is a legitimate utility for tracking file changes locally without Git. The core logic in version_engine.js uses standard Node.js modules to create snapshots, compute SHA-256 hashes, and perform LCS-based diffs, storing data in a local .fvsnap directory. No evidence of data exfiltration, network activity, or malicious execution was found; the file access and restoration capabilities are entirely consistent with the stated purpose of a version control tool.
能力标签
cryptorequires-sensitive-credentials
能力评估
Purpose & Capability
The file-history purpose is coherent with the documented commands and source behavior, but the advertised scope is broad: it can snapshot any file and examples include secret-bearing configuration files.
Instruction Scope
Commands are mostly user-directed CLI operations, but restore can overwrite files and watch mode can continue monitoring until stopped.
Install Mechanism
There is no install spec and the source/homepage are not provided. The code is included and static scan is clean, but provenance and runtime setup are lightly documented.
Credentials
The tool writes hidden .fvsnap history next to tracked files and stores text file contents, with no clear exclusions, retention policy, encryption, or warning for secrets.
Persistence & Privilege
Persistent hidden snapshots and continuous watch mode are core features, but they may retain sensitive local data beyond the lifetime of the original file.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install skylv-file-history-tracker
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /skylv-file-history-tracker 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release with git-style version control for any file—no git required. - Supports snapshot creation, diff viewing, history browsing, tagging, and restoring previous file versions. - Works with both text and binary files; provides a unified `.fvsnap/` structure for file snapshots and tags. - Includes watch/auto-snapshot mode to automatically track changes. - Provides easy file-to-file comparison and integrates with OpenClaw triggers. - Targets true version control, distinguishing itself from simple file organization skills.
元数据
Slug skylv-file-history-tracker
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Skylv File History Tracker 是什么?

Tracks file changes with git-like versioning for any project. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 52 次。

如何安装 Skylv File History Tracker?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install skylv-file-history-tracker」即可一键安装,无需额外配置。

Skylv File History Tracker 是免费的吗?

是的,Skylv File History Tracker 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Skylv File History Tracker 支持哪些平台?

Skylv File History Tracker 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Skylv File History Tracker?

由 SKY-lv(@sky-lv)开发并维护,当前版本 v1.0.0。

💬 留言讨论