update-examples-dependencies

Upgrade Dart and Flutter example dependencies and fix analyzer failures.

803|85|Updated Nov 18, 2023
One-click install
npx skills add https://github.com/rodydavis/signals.dart --skill update-examples-dependencies
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: update-examples-dependencies
Source: https://github.com/rodydavis/signals.dart/tree/main/.agents/skills/update-examples-dependencies
Command: npx skills add https://github.com/rodydavis/signals.dart --skill update-examples-dependencies

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill prevents your ./examples Dart/Flutter projects from breaking as the signals packages and third-party dependencies evolve, by updating dependency constraints and repairing resulting compile or analysis issues.

Core Features & Use Cases

  • Example dependency upgrades: Finds every pubspec.yaml under ./examples and updates the signals dependency to the latest compatible version constraint.
  • Fresh third-party resolution: Runs package upgrades for each example (via flutter pub upgrade or dart pub upgrade) to avoid stale lockfiles.
  • Workspace consistency: Bootstraps the monorepo with melos bootstrap and verifies correctness with melos run analyze.
  • Automatic code health fixes: Refactors or updates code to address breaking API changes, deprecations, and new analyzer/linter warnings after upgrades.

Quick Start

Run the command that executes the skill’s update script to upgrade ./examples dependencies and fix any issues until analysis succeeds.

Frequently Asked Questions about update-examples-dependencies

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I update Dart and Flutter example dependencies in a monorepo?

To update Dart and Flutter example dependencies, the skill recursively scans pubspec.yaml files under ./examples, runs flutter pub upgrade or dart pub upgrade, and refreshes dependency constraints to keep example packages compatible with core packages.

How do you fix analyzer failures after a pub upgrade in Flutter?

Fixing analyzer failures after a pub upgrade requires bootstrapping the workspace with melos bootstrap, running melos run analyze, and iterating code fixes for breaking API changes, deprecations, and new linter warnings until the analysis passes.

Does melos work with Flutter example packages for dependency updates?

Yes, melos works with Flutter example packages by bootstrapping the monorepo workspace to ensure workspace consistency, then verifying correctness across all example packages by running melos run analyze after upgrading dependencies.

What is the best way to keep signals package dependencies compatible across multiple example projects?

The best way to keep signals package dependencies compatible is to update dependency constraints to the latest compatible version and run pub upgrade commands per example, preventing stale lockfiles and ensuring workspace consistency.

Why do my Flutter example projects break when upgrading third-party dependencies?

Flutter example projects break when upgrading third-party dependencies due to breaking API changes, deprecations, and new analyzer warnings that require refactoring code to maintain compatibility with rapidly changing core packages.

What are the limitations of recursively scanning pubspec.yaml files for dependency updates?

Recursively scanning pubspec.yaml files for dependency updates is limited to Dart and Flutter example packages under ./examples, requiring melos bootstrap and successful melos run analyze completion to ensure workspace consistency.