用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/SanderMuller/boost-skills --skill upgrading命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | upgrading |
| description | Canonical structure for UPGRADING.md in a Composer package. When to maintain one, what to put in it. |
| metadata | {"boost-tags":"release-automation"} |
You need one if:
You DON'T need one if:
# Upgrading
## From 1.x to 2.0
### Removed
- `Foo::oldMethod()` — use `Foo::newMethod()` instead.
```php
// before
$foo->oldMethod($x);
// after
$foo->newMethod($x);
Foo::doIt() now returns Result instead of bool.
Adapt callers:
// before
if ($foo->doIt()) { /* ... */ }
// after
$result = $foo->doIt();
if ($result->ok()) { /* ... */ }
## Voice
- Imperative ("Replace X with Y") not narrative ("We've changed X to Y")
- Code blocks for every migration with concrete before/after
- Section per major version range. Append, never rewrite history.
## Anti-patterns
- "Migration is automatic" with no rector rule shipped — users want
proof, not promises
- Stale entries from versions nobody uses anymore (compact after 2 majors)
- Duplicating CHANGELOG — UPGRADING is about *how to migrate*, not
*what changed*