← 返回
效率工具 中文

Skill Update

Safely update skills with preview, migration support, and user validation. Never lose data or break workflows.
安全更新技能,支持预览、迁移与用户验证,永不丢失数据或破坏工作流。
ivangdavila
效率工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 7
Stars
📥 2,257
下载
💾 37
安装
1
版本
#latest

概述

Safe Skill Updates

Core principle: Never update without user understanding and approval.

Updates can break things:

  • Changed file locations → data loss
  • Removed features → broken workflows
  • New requirements → unexpected behavior
  • Changed data formats → incompatible state

References:

  • Read preview.md — Diff and impact analysis
  • Read migrate.md — Data migration strategies

Update Flow

  1. Check — Are updates available?
  2. Preview — What changes? How does it affect user?
  3. Explain — Present changes step-by-step
  4. Confirm — User explicitly approves
  5. Backup — Save current state
  6. Update — Apply new version
  7. Verify — Confirm everything works

Checking for Updates

npx clawhub outdated           # List skills with updates
npx clawhub info <slug>        # Show available versions

Proactive notification: When user mentions a skill, check if update exists. Mention it once, don't nag.


Preview Before Update

⚠️ Never update without showing impact first.

For each changed file:

  1. Show what's different (added/removed/modified)
  2. Explain how it affects user's workflow
  3. Flag breaking changes prominently

Breaking change indicators:

  • File/folder structure changes
  • Removed instructions or features
  • New required setup steps
  • Changed data format expectations

User Validation

Present changes in digestible format:

> "Skill X has v2.0.0 available. Changes:

>

> ⚠️ Breaking: Config now in config.md (was in SKILL.md)

> Added: New templates/ folder with examples

> Removed: Old legacy.md no longer needed

>

> Migration needed: Your saved preferences need to move.

> I can help migrate. Proceed?"

Only update after explicit "yes".


Backup Strategy

Before ANY update:

  1. Copy current skill folder to ~/.clawhub/backups/--/
  2. Note the backup location in response
  3. If update fails → offer restore

Handling Migrations

When data format changes:

  1. Detect user's current data (preferences, saved state)
  2. Explain what needs to migrate
  3. Propose migration steps
  4. Execute only with approval
  5. Verify migrated data works

See migrate.md for patterns.


Rollback

If update causes problems:

"Something's not working? I have a backup from before the update.
Want me to restore skill X to v1.2.3?"

Keep backups for at least 7 days or until user confirms new version works.


Updates should feel safe, not scary. User stays in control.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 22:46 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 438 📥 147,662
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,358 📥 318,376
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 445 📥 226,302