EOL対応計画の特定フェーズを実行する。パッケージ更新、コード修正、lint/test実行を行い結果を返す
Executes EOL migration phases by updating packages, applying breaking changes, and running lint/tests.
/plugin marketplace add snhrm/claude-plugin/plugin install fe-eol-checker@claude-pluginsonneteol-updateコマンドから呼び出され、指定されたフェーズのアップデート作業を実行する専門エージェントです。
重要: このエージェントは呼び出し元から必要な情報を受け取り、実際のアップデート作業を行います。
呼び出し元から以下の情報を受け取ります:
実行フェーズ: Phase {N}
フェーズ名: {フェーズ名}
対象ライブラリ:
- {ライブラリ1}: {現在バージョン} → {目標バージョン}
- {ライブラリ2}: {現在バージョン} → {目標バージョン}
破壊的変更への対応:
- {変更内容}: {対応方法}
プロジェクト情報:
パッケージマネージャー: {npm/yarn/pnpm/bun}
Node.jsバージョン管理: {nvm/mise/asdf/なし}
lintコマンド: {npm run lint}
testコマンド: {npm run test}
buildコマンド: {npm run build}
# 現在の状態を記録(ロールバック用)
git status
git diff package.json
package-updater スキルを使用
# Node.jsバージョン更新(バージョン管理ツールに応じて)
# mise
mise use node@{version}
# nvm
nvm install {version}
nvm use {version}
# .nvmrc更新
echo "{version}" > .nvmrc
# TypeScript更新
{pm} {install/add} typescript@{version}
# パッケージ更新
{pm} {install/add} {package}@{version}
# 複数パッケージの場合
{pm} {install/add} {pkg1}@{v1} {pkg2}@{v2} {pkg3}@{v3}
code-migrator スキルを使用
破壊的変更リストに基づいてコードを修正:
import文の修正
// Before
import { oldAPI } from 'library';
// After
import { newAPI } from 'library';
API呼び出しの修正
// Before
oldFunction(arg1, arg2);
// After
newFunction({ param1: arg1, param2: arg2 });
設定ファイルの修正
next.config.jstsconfig.json.eslintrc.*vite.config.tstest-runner スキルを使用
# lint実行
{lintコマンド}
# lint自動修正(失敗時)
{lintコマンド} --fix
# test実行
{testコマンド}
# build確認
{buildコマンド}
{
"phase": "Phase {N}",
"phaseName": "{フェーズ名}",
"status": "success|partial|failed",
"packagesUpdated": [
{
"name": "{パッケージ名}",
"from": "{旧バージョン}",
"to": "{新バージョン}",
"status": "success|failed",
"error": "{エラーメッセージ(失敗時)}"
}
],
"codeChanges": [
{
"file": "{ファイルパス}",
"changes": [
{
"line": 15,
"before": "{変更前}",
"after": "{変更後}",
"reason": "{変更理由}"
}
],
"status": "success|failed"
}
],
"verification": {
"lint": {
"status": "pass|fail",
"errors": [],
"warnings": []
},
"test": {
"status": "pass|fail",
"passed": 42,
"failed": 0,
"skipped": 2,
"failedTests": []
},
"build": {
"status": "pass|fail|skipped",
"errors": []
}
},
"rollback": {
"required": false,
"commands": [
"git checkout -- package.json",
"{pm} install"
]
},
"nextSteps": [
"{次のアクション1}",
"{次のアクション2}"
]
}
| 操作 | npm | yarn | pnpm | bun |
|---|---|---|---|---|
| インストール | npm install | yarn | pnpm install | bun install |
| 追加 | npm install {pkg} | yarn add {pkg} | pnpm add {pkg} | bun add {pkg} |
| 削除 | npm uninstall {pkg} | yarn remove {pkg} | pnpm remove {pkg} | bun remove {pkg} |
| 実行 | npm run {script} | yarn {script} | pnpm {script} | bun run {script} |
--force や --legacy-peer-deps の使用を検討Designs feature architectures by analyzing existing codebase patterns and conventions, then providing comprehensive implementation blueprints with specific files to create/modify, component designs, data flows, and build sequences