Skip to content
Development
Skill

/update-flutter-deps

Safely update Flutter dependencies. Trigger with "update Flutter packages", "update pubspec.yaml", "upgrade Flutter deps".

From plugin
claude-code-cookbook
1.1k39 skills9 agents39 commands8 MCP

Claude Code

$ npx -y skills add wasabeef/claude-code-cookbook --skill update-flutter-deps --agent claude-code

SKILL.md

update-flutter-deps.SKILL.md
description: 'Safely update Flutter dependencies. Trigger with "update Flutter packages", "update pubspec.yaml", "upgrade Flutter deps".'
allowed-tools:
  - Bash(flutter *)
  - Bash(dart *)
  - Read
  - Edit

Safely update Flutter dependencies

Safely update dependencies in your Flutter project.

Usage

# Check dependency status and request Claude's help
flutter pub deps --style=compact
"Please update the dependencies in pubspec.yaml to their latest versions"

Basic Examples

# Check current dependencies
cat pubspec.yaml
"Analyze this Flutter project's dependencies and tell me which packages can be updated"

# Check before upgrading
flutter pub upgrade --dry-run
"Check if there are any breaking changes in this planned upgrade"

Integration with Claude

# Comprehensive dependency update
cat pubspec.yaml
"Analyze Flutter dependencies and perform the following:
1. Research the latest version of each package
2. Check for breaking changes
3. Evaluate risk level (safe, caution, dangerous)
4. Suggest necessary code changes
5. Generate updated pubspec.yaml"

# Safe, gradual update
flutter pub outdated
"Update only packages that can be safely updated, avoiding major version upgrades"

# Impact analysis for specific package update
"Tell me the impact and necessary changes when updating provider to the latest version"

Detailed Examples

# Detailed analysis including release notes
cat pubspec.yaml && flutter pub outdated
"Analyze dependencies and provide the following for each package in table format:
1. Current → Latest version
2. Risk evaluation (safe, caution, dangerous)
3. Main changes (from CHANGELOG)
4. Required code fixes"

# Null Safety migration analysis
cat pubspec.yaml
"Identify packages not compatible with Null Safety and create a migration plan"

Risk Criteria

Safe (🟢):
- Patch version upgrade (1.2.3 → 1.2.4)
- Bug fixes only
- Backward compatibility guaranteed

Caution (🟡):
- Minor version upgrade (1.2.3 → 1.3.0)
- New features added
- Deprecation warnings

Dangerous (🔴):
- Major version upgrade (1.2.3 → 2.0.0)
- Breaking changes
- API removals or modifications

Execution of Update

# Create backups
cp pubspec.yaml pubspec.yaml.backup
cp pubspec.lock pubspec.lock.backup

# Execute update
flutter pub upgrade

# Verify after update
flutter analyze
flutter test
flutter pub deps --style=compact

Notes

Always verify functionality after updates. If issues occur, restore with:

cp pubspec.yaml.backup pubspec.yaml
cp pubspec.lock.backup pubspec.lock
flutter pub get
Read more
@wasabeef
Ships withclaude-code-cookbook

A collection of commands, roles, and automation scripts for Claude Code. Automate your workflow without unnecessary confirmations, allowing you to focus on what matters.

1.1k39 skills9 agents8 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
1.1k
Star history of wasabeef/claude-code-cookbook on GitHub, a chart by star-history.com

Other skills on claude-code-cookbook.

check-fact

check-fact

Verify information accuracy against codebase and documentation. Trigger with "is this correct?", "fact check", "verify this", "is…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about update-flutter-deps.

Which coding agents can use update-flutter-deps?
update-flutter-deps installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.