Token导航 LogoToken导航

Agent Skill · 开发

version-management(版本管理)

version-management 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 Codex、Claude、Cursor、Gemini CLI 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

version-management 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 21,023。

总安装 196周安装 8GitHub Stars 公开资料未说明下载 63核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/wesley1600/claudecodeframework --skill version-management

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

用于记录任务执行中的错误和经验,支持持续改进。version-management 属于开发类 Skill,可作为该场景下的辅助能力补充。适用于 Codex、Claude、Cursor 等宿主的环境。通过 git 标签、差异比较和历史查看实现版本控制。安装前建议确认权限范围和是否会触发 git 操作。

可能涉及代码仓库修改,需评估维护状态后再使用。

来源仓库内路径:skills/version-management

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/wesley1600/claudecodeframework --skill version…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

version-management 怎么安装?

在终端执行 npx skills add https://github.com/wesley1600/claudecodeframework --skill version-managemen…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

version-management 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

version-management 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

version-management 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

version-management 用的人多吗?

公开数据是累计安装 196 次,近一周安装 8 次,下载 63 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

version-management 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
version-management

版本管理 · 本页

196—需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Version Management Skill

A comprehensive version management system for skills, prompts, and documents in Claude Code. This skill provides professional version control capabilities including tagging releases, maintaining changelogs, and rolling back to previous versions when needed.

Overview

This skill enables you to:

  • Tag releases with semantic versioning (v1.0.0, v1.1.0, etc.)
  • Store changelogs documenting changes between versions
  • Roll back to previous versions if new instructions cause errors
  • Track changes to SKILL.md, scripts, and resource files
  • Compare versions to understand what changed
  • Archive versions for long-term storage

Core Concepts

Version Format

Uses semantic versioning: MAJOR.MINOR.PATCH

  • MAJOR: Breaking changes or complete rewrites
  • MINOR: New features, backward compatible
  • PATCH: Bug fixes, minor improvements

Storage Structure

skills/<skill-name>/
├── SKILL.md                      # Current version
├── .versions/                    # Version history
│   ├── v1.0.0/
│   │   ├── SKILL.md
│   │   ├── scripts/
│   │   └── metadata.json
│   ├── v1.1.0/
│   │   ├── SKILL.md
│   │   ├── scripts/
│   │   └── metadata.json
│   └── CHANGELOG.md              # Complete change history
└── scripts/                      # Current scripts

Metadata Format

Each version stores metadata in metadata.json:

{
  "version": "1.0.0",
  "timestamp": "2025-11-18T12:00:00Z",
  "author": "Claude <noreply@anthropic.com>",
  "commit": "abc123...",
  "description": "Initial release with core functionality",
  "changes": [
    "Added version tagging",
    "Implemented rollback mechanism",
    "Created changelog template"
  ],
  "files_tracked": [
    "SKILL.md",
    "scripts/version_manager.sh"
  ]
}

Workflow

1. Initialize Version Management for a Skill

Input:

  • Skill name or path
  • Initial version number (default: 0.1.0)

Actions:

  1. Check if skill exists
  2. Create .versions/ directory
  3. Create initial version snapshot
  4. Initialize CHANGELOG.md
  5. Create metadata.json

Output:

  • Confirmation message with version number
  • Location of version storage

2. Create New Version/Tag

Input:

  • Skill name
  • Version number or bump type (major/minor/patch)
  • Description of changes
  • Optional: List of specific changes

Actions:

  1. Validate version number format
  2. Check if version already exists
  3. Create version directory
  4. Copy current SKILL.md and scripts
  5. Generate metadata.json
  6. Update CHANGELOG.md
  7. Create git tag (if in git repo)
  8. Commit changes

Output:

  • Version tag created: v1.2.0
  • Changelog entry added
  • Files tracked: [list]

3. List All Versions

Input:

  • Skill name
  • Optional: Filter by date range or version pattern

Actions:

  1. Read .versions/ directory
  2. Parse metadata.json for each version
  3. Sort by version number or date
  4. Format output table

Output:

Version History for 'session-start-hook':

v1.2.0 | 2025-11-18 12:00 | Added validation for linters
v1.1.0 | 2025-11-15 10:30 | Improved error handling
v1.0.0 | 2025-11-10 09:00 | Initial release

4. Show Version Details

Input:

  • Skill name
  • Version number

Actions:

  1. Locate version directory
  2. Read metadata.json
  3. Display comprehensive information
  4. Show file changes from previous version

Output:

Version: v1.2.0
Date: 2025-11-18 12:00:00Z
Author: Claude <noreply@anthropic.com>
Commit: abc123def456

Description:
Added validation for linters and improved test coverage

Changes:
- Added lint validation step
- Improved error messages
- Updated documentation

Files Modified:
- SKILL.md (+45 lines, -12 lines)
- scripts/validator.sh (new file)

5. Compare Two Versions

Input:

  • Skill name
  • Version A (e.g., v1.0.0)
  • Version B (e.g., v1.2.0)
  • Optional: Specific file to compare

Actions:

  1. Load both versions
  2. Perform diff on SKILL.md and scripts
  3. Highlight changes
  4. Show metadata differences

Output:

  • Unified diff format
  • Summary of changes
  • Changelog entries between versions

6. Roll Back to Previous Version

Input:

  • Skill name
  • Target version number
  • Optional: Create backup of current version

Actions:

  1. CRITICAL: Create backup of current state
  2. Verify target version exists
  3. Confirm rollback with user
  4. Copy files from target version to current
  5. Update metadata
  6. Log rollback in CHANGELOG
  7. Create git commit

Output:

  • Rollback successful: v1.2.0 → v1.0.0
  • Backup created at: .versions/backup-2025-11-18-120000/
  • Changes reverted: [list]

Safety Checks:

  • Always create backup before rollback
  • Require explicit confirmation
  • Verify file integrity
  • Test rolled-back version if possible

7. Update Changelog

Input:

  • Skill name
  • Version number
  • Change entries
  • Optional: Category (Added/Changed/Fixed/Removed)

Actions:

  1. Read current CHANGELOG.md
  2. Add new entries under version heading
  3. Format according to Keep a Changelog standard
  4. Update timestamp
  5. Save changes

Output:

  • Changelog updated for version v1.2.0
  • 3 entries added under "Added" category

8. Export Version Archive

Input:

  • Skill name
  • Version number or "all"
  • Output format (tar.gz/zip)
  • Destination path

Actions:

  1. Collect version files
  2. Include metadata and changelog
  3. Create archive
  4. Verify integrity
  5. Generate checksum

Output:

  • Archive created: session-start-hook-v1.2.0.tar.gz
  • Size: 45 KB
  • SHA256: abc123...
  • Location: /path/to/archive

Change Detection

The skill automatically tracks changes to:

Monitored Files

  • SKILL.md: Main skill definition
  • scripts/: All executable scripts
  • templates/: Template files
  • resources/: Additional resources

Change Types Detected

  • Content changes: Line additions/deletions
  • New files: Files added to skill directory
  • Deleted files: Files removed
  • Renamed files: File moves/renames
  • Permission changes: Executable bit changes

Detection Method

# Compare against previous version
git diff v1.0.0..v1.1.0 -- skills/skill-name/

# Track specific files
git log --follow -- skills/skill-name/SKILL.md

Error Recovery

Common Issues and Solutions

Issue: Rollback fails due to corrupted version Solution:

  1. Check .versions/ directory for intact versions
  2. Use next-most-recent stable version
  3. Restore from git history if available

Issue: Version tag already exists Solution:

  1. List existing versions
  2. Increment version number
  3. Or use --force flag to overwrite (dangerous)

Issue: Changelog merge conflict Solution:

  1. Export current changelog
  2. Restore from version history
  3. Manually merge entries
  4. Validate format

Integration with Git

Git Tag Creation

# Create annotated tag
git tag -a v1.2.0 -m "Version 1.2.0: Added validation"

# Push tag to remote
git push origin v1.2.0

Branch-Based Versioning

  • Development: claude/version-mgmt-<session-id>
  • Releases: Tagged commits on main branch
  • Hotfixes: Patch version bumps

Commit Messages

feat(version-mgmt): Add rollback capability

- Implement version rollback with safety checks
- Add backup creation before rollback
- Update changelog automatically

Version: v1.2.0
Skill: version-management

Best Practices

When to Create Versions

Always version when:

  • Making breaking changes to skill behavior
  • Adding new major features
  • Before deploying to production
  • After significant testing/validation
  • Completing a milestone

Consider versioning when:

  • Fixing bugs
  • Improving documentation
  • Refactoring code
  • Updating dependencies

Skip versioning for:

  • Typo fixes
  • Comment updates
  • Formatting changes

Version Numbering Guidelines

Bump MAJOR (1.0.0 → 2.0.0):

  • Incompatible API changes
  • Complete skill rewrite
  • Breaking changes to workflow

Bump MINOR (1.0.0 → 1.1.0):

  • New features added
  • New workflow steps
  • Backward-compatible enhancements

Bump PATCH (1.0.0 → 1.0.1):

  • Bug fixes
  • Documentation improvements
  • Minor tweaks

Changelog Writing

Follow Keep a Changelog format:

## [1.2.0] - 2025-11-18

### Added
- New rollback safety checks
- Automatic backup creation
- Version comparison feature

### Changed
- Improved error messages in validator
- Updated documentation structure

### Fixed
- Rollback file permission issues
- Changelog formatting errors

### Removed
- Deprecated legacy backup format

Example Usage Scenarios

Scenario 1: Version a New Skill

User: I've created a new skill called 'code-reviewer'. Please version it.

Claude: I'll initialize version management for the 'code-reviewer' skill.

1. Creating version structure
2. Taking initial snapshot as v0.1.0
3. Initializing CHANGELOG.md
4. Creating metadata

✓ Version v0.1.0 created for 'code-reviewer'
✓ Tracking: SKILL.md, scripts/reviewer.sh
✓ Changelog initialized

Next steps:
- Make improvements to your skill
- When ready, create v1.0.0 for first stable release

Scenario 2: Create Release After Updates

User: I've updated the code-reviewer skill. Tag it as v1.0.0.

Claude: I'll create version v1.0.0 for 'code-reviewer'.

Detected changes:
- SKILL.md: +67 lines, -23 lines
- scripts/reviewer.sh: +145 lines (new)
- scripts/analyzer.py: +89 lines (new)

Please provide a description of changes:

User: Added Python code analysis and improved markdown documentation

Claude: Creating version v1.0.0...

✓ Version snapshot created
✓ Metadata saved
✓ Changelog updated
✓ Git tag created: v1.0.0

Version v1.0.0 Summary:
- Description: Added Python code analysis and improved markdown documentation
- Files tracked: 3
- Total changes: +301 lines, -23 lines
- Date: 2025-11-18 12:30:00Z

Scenario 3: Rollback After Error

User: The new version v1.1.0 is causing errors. Roll back to v1.0.0.

Claude: I'll initiate rollback from v1.1.0 to v1.0.0 for 'code-reviewer'.

⚠️  WARNING: This will replace current files with v1.0.0

Rollback plan:
1. Create backup of current state
2. Restore files from v1.0.0
3. Update metadata
4. Log rollback in changelog
5. Create git commit

Proceed with rollback? (yes/no)

User: yes

Claude: Executing rollback...

✓ Backup created: .versions/backup-2025-11-18-123000/
✓ Files restored from v1.0.0
✓ SKILL.md restored
✓ scripts/ restored
✓ Metadata updated
✓ Changelog entry added
✓ Git commit created

Rollback successful!
Current version: v1.0.0
Backup location: .versions/backup-2025-11-18-123000/

You can now fix the issues and create v1.1.1.

Scenario 4: Compare Versions

User: Show me what changed between v1.0.0 and v1.2.0

Claude: Comparing versions v1.0.0 and v1.2.0 for 'code-reviewer'...

Version Metadata:
v1.0.0 (2025-11-18) → v1.2.0 (2025-11-20)

Changelog Entries:
[1.1.0] - 2025-11-19
  Added: Error recovery mechanisms
  Fixed: File permission handling

[1.2.0] - 2025-11-20
  Added: Version comparison feature
  Changed: Improved validation logic

File Changes:

SKILL.md:
  +89 lines, -34 lines

scripts/reviewer.sh:
  +45 lines, -12 lines

scripts/comparator.sh:
  +156 lines (new file)

Total: +290 lines, -46 lines across 3 files

Security Considerations

File Integrity

  • SHA256 checksums for version archives
  • Verify file integrity before rollback
  • Detect tampering in version history

Permissions

  • Preserve file permissions in versions
  • Restore correct permissions on rollback
  • Validate script execution permissions

Backup Safety

  • Always create backup before destructive operations
  • Store backups with timestamp
  • Automatic cleanup of old backups (optional)

Performance Optimization

Large Skills

  • Incremental backups (store diffs instead of full copies)
  • Compression for version archives
  • Lazy loading of version metadata

Storage Management

  • Configurable retention policy
  • Auto-archive old versions
  • Cleanup of orphaned versions

Validation & Testing

Before finalizing a version:

  1. Syntax validation: Verify YAML frontmatter
  2. File integrity: Check all tracked files exist
  3. Metadata completeness: Ensure all required fields
  4. Changelog format: Validate Keep a Changelog format
  5. Git consistency: Verify git tags match version numbers
  6. Rollback test: Verify rollback to previous version works

Troubleshooting

Version Not Found

# List all versions
ls -la skills/<skill-name>/.versions/

# Check git tags
git tag -l "v*"

Corrupted Metadata

# Regenerate from git history
git log --follow -- skills/<skill-name>/SKILL.md

Rollback Failed

# Restore from backup
cp -r .versions/backup-*/ ./

Summary

The version-management skill provides professional version control for Claude Code skills, enabling:

  • Safe experimentation with rollback capability
  • Professional changelog maintenance
  • Clear version history
  • Error recovery mechanisms
  • Integration with git workflows

Use this skill whenever you need to:

  • Track changes to skills over time
  • Create stable releases
  • Document evolution of prompts
  • Recover from problematic changes
  • Archive skill versions

Related Commands

  • git tag: View git tags
  • git diff: Compare versions
  • git log: View commit history
  • git checkout: Switch versions (use with caution)

References

平台分布

Codex

34.84%
按下载量换算22

Claude

27.36%
按下载量换算17

Cursor

20.84%
按下载量换算13

Gemini CLI

9.74%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

继续浏览同类 Skills