flutter-pub-update
This tool checks for outdated Flutter dependencies, warns about breaking changes, and executes CLI update commands.
Install
mkdir -p .claude/skills/flutter-pub-update && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/4000" && unzip -o skill.zip -d .claude/skills/flutter-pub-update && rm skill.zipInstalls to .claude/skills/flutter-pub-update
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Flutterプロジェクトのpubspec.yamlパッケージを更新するスキル。一括更新または指定パッケージ更新に対応。メジャーバージョン更新時は確認を挟み、更新前にpub.dev/GitHubでchangelogを確認して変更内容を報告する。$ARGUMENTSにパッケージ名を指定するか、--allで全パッケージ更新。Key capabilities
- →Update a specific Flutter package
- →Batch update all Flutter packages
- →Check changelogs on pub.dev for package changes
- →Review GitHub release notes for detailed changes
- →Confirm major version updates with the user
- →Report updated package versions and change types
How it works
The skill first runs 'flutter pub outdated' to identify packages, then researches changelogs on pub.dev or GitHub, and finally executes 'flutter pub upgrade' commands after user confirmation for major version changes.
Inputs & outputs
When to use flutter-pub-update
- →Updating a single outdated package
- →Batch updating all project dependencies
- →Reviewing breaking changes before major upgrades
- →Verifying current versus latest package versions
About this skill
Flutter Pub Update
Overview
Flutterプロジェクトのpubspec.yaml依存パッケージを安全に更新するためのスキル。更新前に変更内容を確認し、メジャーバージョン変更時はユーザー確認を挟む。
使用方法
/flutter-pub-update パッケージ名- 指定パッケージを更新/flutter-pub-update パッケージ1 パッケージ2- 複数パッケージを更新/flutter-pub-update --all- 全パッケージを一括更新
ワークフロー
Step 1: 現在の状態を確認
flutter pub outdated
出力から以下を把握:
- Current: 現在のバージョン
- Upgradable: pubspec.yaml制約内で更新可能なバージョン
- Resolvable: 制約を変更すれば更新可能なバージョン
- Latest: 最新バージョン
Step 2: 更新対象の特定
指定パッケージの場合: $ARGUMENTSで指定されたパッケージのみ対象
--allの場合: outdatedで表示された全パッケージを対象
Step 3: 各パッケージの更新差分を調査
対象パッケージごとにWebFetchツールを使用して変更内容を確認:
-
pub.devのChangelogを確認
- URL:
https://pub.dev/packages/{パッケージ名}/changelog - 現在バージョンから更新後バージョンまでの変更点を抽出
- URL:
-
GitHubリリースノートを確認(必要に応じて)
- pub.devのパッケージページからリポジトリURLを取得
- リリースノートで詳細な変更内容を確認
-
変更内容をまとめて報告
- 新機能
- バグ修正
- Breaking Changes(重要)
- 非推奨になった機能
Step 4: メジャーバージョン更新の確認
メジャーバージョンが変わる場合(例: 1.x.x → 2.x.x):
- Breaking Changesを明確に提示
- 影響を受ける可能性のあるコードを説明
- AskUserQuestionツールで更新の承認を確認
このパッケージはメジャーバージョンが変わります:
- {パッケージ名}: {現在バージョン} → {新バージョン}
Breaking Changes:
- [変更内容1]
- [変更内容2]
更新を続行しますか?
Step 5: パッケージの更新
承認後、flutter pub upgradeコマンドを使用:
指定パッケージの更新:
flutter pub upgrade パッケージ名
メジャーバージョンを含む更新:
flutter pub upgrade --major-versions パッケージ名
全パッケージの更新:
flutter pub upgrade
全パッケージのメジャーバージョン更新:
flutter pub upgrade --major-versions
Step 6: 更新結果の報告
更新完了後、以下を報告:
## 更新完了
| パッケージ | 旧バージョン | 新バージョン | 変更種別 |
|-----------|-------------|-------------|---------|
| xxx | 1.0.0 | 1.2.0 | Minor |
| yyy | 2.0.0 | 3.0.0 | Major |
### 主な変更点
- xxx: 新機能Aが追加
- yyy: APIが変更(要確認)
注意事項
- 自動生成ファイル(*.g.dart, *.freezed.dart)がある場合は
flutter pub run build_runner build --delete-conflicting-outputsの実行を提案
How it compares
This skill automates the research of package changes and prompts for major version upgrades, unlike manually running 'flutter pub upgrade'.
Compared to similar skills
flutter-pub-update side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| flutter-pub-update (this skill) | 2 | 7mo | Review | Beginner |
| fix-dependabot-prs | 1 | 6mo | Review | Intermediate |
| run-nx-generator | 5 | 3mo | Review | Intermediate |
| upgrading-expo | 3 | 4mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by bannzai
View all by bannzai →You might also like
fix-dependabot-prs
bannzai
dependabotから上がってきた複数のPRを一括で解決し、まとめPRを作成する。dependabotのPR対応を依頼された時に使用。
run-nx-generator
nrwl
Run Nx generators with prioritization for workspace-plugin generators. Use this when generating code, scaffolding new features, or automating repetitive tasks in the monorepo.
upgrading-expo
sickn33
Upgrade Expo SDK versions
bump-go-dependencies
docker
Update direct Go module dependencies one by one, validating each bump with tests and linter, committing individually, and producing a summary table for a PR description
swarm-coordination
joelhooks
Multi-agent coordination patterns for OpenCode swarm workflows. Use when work benefits from parallelization or coordination.
coderabbit-local-dev-loop
jeremylongshore
Configure CodeRabbit local development with hot reload and testing. Use when setting up a development environment, configuring test workflows, or establishing a fast iteration cycle with CodeRabbit. Trigger with phrases like "coderabbit dev setup", "coderabbit local development", "coderabbit dev environment", "develop with coderabbit".