← 返回
未分类 中文

Skill Update Litiao

Safely update skills with preview, migration support, and user validation. Never lose data or break workflows.
安全更新技能,支持预览、迁移与用户验证,确保数据不丢失、工作流不中断。
litiao1224 litiao1224 来源
未分类 clawhub v1.0.0 1 版本 99813.8 Key: 无需
★ 0
Stars
📥 536
下载
💾 1
安装
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-05-02 03:23 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Find Skills

guipi888
场景驱动+关键词双模式技能发现工具。当用户用自然语言描述场景/需求(如"我想做一个海报""帮我分析股票"),或明确说"安装技能/find skills/找个skill"时,自动从官方内置、本地已安装、SkillHub、虾评、GitHub、C
★ 1,464 📥 530,850
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,397 📥 322,754
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,100 📥 828,432