AgentSkillsCN

df:update

将DevFlow更新至最新版本,并显示更新日志。 这是一项系统更新操作,会重新安装DevFlow的文件。

SKILL.md
--- frontmatter
name: df:update
description: |
  Update DevFlow to latest version with changelog display.
  System update operation that reinstalls DevFlow files.
disable-model-invocation: true
allowed-tools:
  - Bash
  - AskUserQuestion
<objective> Check for DevFlow updates, install if available, and display what changed.

Routes to the update workflow which handles:

  • Version detection (local vs global installation)
  • npm version checking
  • Changelog fetching and display
  • User confirmation with clean install warning
  • Update execution and cache clearing
  • Restart reminder </objective>

<execution_context> @~/.claude/devflow/workflows/update.md </execution_context>

<process> **Follow the update workflow** from `@~/.claude/devflow/workflows/update.md`.

The workflow handles all logic including:

  1. Installed version detection (local/global)
  2. Latest version checking via npm
  3. Version comparison
  4. Changelog fetching and extraction
  5. Clean install warning display
  6. User confirmation
  7. Update execution
  8. Cache clearing
</process>