AgentSkillsCN

osprey-migrate

将下游 OSPREY 项目升级至最新版本。根据迁移文档中的 API 变更(方法名修改、类名修改、导入路径调整)实施相应更新。当需要升级 OSPREY 版本、从旧版 API 迁移,或用户提出升级、迁移或更新其 OSPREY 项目的需求时,可使用此技能。

SKILL.md
--- frontmatter
name: osprey-migrate
description: >
  Upgrades downstream OSPREY projects to newer versions. Applies API changes
  (method renames, class renames, import changes) from migration documents.
  Use when upgrading OSPREY version, migrating from old APIs, or when the
  user asks to upgrade, migrate, or update their OSPREY project.
allowed-tools: Read, Glob, Grep, Bash, Edit

OSPREY Migration Assistant

This skill helps you upgrade your OSPREY-based project to a newer version.

Instructions

Follow the detailed migration workflow in instructions.md.

Data Files

  • Migration documents: versions/ - YAML files describing changes for each version
  • Schema: schema.yml - Migration document format specification

Quick Reference

  1. Ensure clean git state
  2. Detect current OSPREY version
  3. Load migration YAML for target version
  4. Show dry-run report of all changes
  5. Apply changes after user confirmation
  6. Run validation commands
  7. Provide summary and next steps