Skill Update
Safely update skills with preview, migration support, and user validation. Never lose data or break workflows.
技能说明
name: "Skill Update" description: "Safely update skills with preview, migration support, and user validation. Never lose data or break workflows."
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
- Check — Are updates available?
- Preview — What changes? How does it affect user?
- Explain — Present changes step-by-step
- Confirm — User explicitly approves
- Backup — Save current state
- Update — Apply new version
- 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:
- Show what's different (added/removed/modified)
- Explain how it affects user's workflow
- 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: Newtemplates/folder with examples Removed: Oldlegacy.mdno longer neededMigration needed: Your saved preferences need to move. I can help migrate. Proceed?"
Only update after explicit "yes".
Backup Strategy
Before ANY update:
- Copy current skill folder to
~/.clawhub/backups/<slug>-<version>-<timestamp>/ - Note the backup location in response
- If update fails → offer restore
Handling Migrations
When data format changes:
- Detect user's current data (preferences, saved state)
- Explain what needs to migrate
- Propose migration steps
- Execute only with approval
- 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.
如何使用「Skill Update」?
- 打开小龙虾AI(Web 或 iOS App)
- 点击上方「立即使用」按钮,或在对话框中输入任务描述
- 小龙虾AI 会自动匹配并调用「Skill Update」技能完成任务
- 结果即时呈现,支持继续对话优化