用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Arete-Consortium/ai-skills --skill migrate命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | migrate |
| description | Code Migration Helper |
| lifecycle | experimental |
Assist with dependency upgrades, API changes, and version migrations.
/migrate dep requests 2.28 2.31 # Upgrade dependency
/migrate python 3.9 3.12 # Python version upgrade
/migrate framework django 4.0 5.0 # Framework upgrade
/migrate --breaking # Find breaking changes only
# Migration Report: [package] v1.0 → v2.0
## Summary
| Category | Count |
|----------|-------|
| Breaking Changes | 3 |
| Deprecations | 5 |
| New Features | 12 |
## Breaking Changes
### 1. `old_function()` removed
**Replacement**: `new_function()`
**Affected Files**: 5
```python
# Before
from package import old_function
result = old_function(arg)
# After
from package import new_function
result = new_function(arg, new_required_arg=True)
Files to Update:
process()Before: dict
After: ProcessResult (dataclass)
# Before
result = process(data)
value = result["key"]
# After
result = process(data)
value = result.key
legacy_api() deprecatedReplacement: modern_api()
Deadline: v3.0
# Now available
result = await package.async_process(data)
# Update dependency
pip install package==2.0
# Run tests
pytest
# Check for remaining deprecated usage
grep -r "old_function\|legacy_api" src/
## Common Migrations
### Python Version Upgrade
```markdown
## Python 3.9 → 3.12
### Syntax Changes
- `dict | dict` union syntax (3.9+)
- `match` statement (3.10+)
- `type` statement for type aliases (3.12+)
### Removed
- `asyncio.coroutine` decorator (use `async def`)
- `collections.` ABCs (use `collections.abc.`)
### New Features
- `tomllib` built-in (3.11+)
- Improved error messages
- Faster startup
1. [ ] Read changelog/release notes
2. [ ] Check for breaking changes
3. [ ] Update version constraint
4. [ ] Run tests
5. [ ] Fix failures
6. [ ] Update deprecated usage
7. [ ] Test manually
8. [ ] Commit with clear message
When /migrate is invoked: