Dart Checks Migration
Skill Verified ActiveReplace the usage of `expect` and similar functions from `package:matcher` to `package:checks` equivalents.
To guide developers in modernizing their Dart test suites by replacing outdated `expect` calls with the more robust `package:checks` equivalents.
Features
- Detailed migration workflow
- Strategies for discovering migration candidates
- Comprehensive table of common `expect` to `check` pattern replacements
- Specific guidance on handling async operations
- Constraints for ensuring migration correctness
Use Cases
- Migrating existing test files from `package:matcher` to `package:checks`.
- Replacing specific legacy matchers like `equals`, `isNull`, `isTrue`, `isFalse`.
- Updating tests involving `throwsA` and custom matcher patterns.
- Ensuring tests pass and code analyzes cleanly after migration.
Non-Goals
- Automated migration of custom matchers; manual review is required.
- Migrating code outside of the `test/` directory or `pubspec.yaml`.
- Fixing unrelated test failures or code quality issues.
Installation
npx skills add flutter/skillsRuns the Vercel skills CLI (skills.sh) via npx — needs Node.js locally and at least one installed skills-compatible agent (Claude Code, Cursor, Codex, …). Assumes the repo follows the agentskills.io format.
Quality Score
VerifiedTrust Signals
Similar Extensions
Definition Of Done
100Mandatory checks to run before completing any task that touches md files or dart code in this repository.
Dart Matcher Best Practices
100Best practices for using `expect` and `package:matcher`. Focuses on readable assertions, proper matcher selection, and avoiding common pitfalls.
Developing Genkit Dart
99Generates code and provides documentation for the Genkit Dart SDK. Use when the user asks to build AI agents in Dart, use Genkit flows, or integrate LLMs into Dart/Flutter applications.
Sentry Flutter Sdk
98Full Sentry SDK setup for Flutter and Dart. Use when asked to "add Sentry to Flutter", "install sentry_flutter", "setup Sentry in Dart", or configure error monitoring, tracing, profiling, session replay, or logging for Flutter applications. Supports Android, iOS, macOS, Linux, Windows, and Web.
Dart Test Fundamentals
98Core concepts and best practices for `package:test`. Covers `test`, `group`, lifecycle methods (`setUp`, `tearDown`), and configuration (`dart_test.yaml`).
Dart Modern Features
98Guidelines for using modern Dart features (v3.0 - v3.10) such as Records, Pattern Matching, Switch Expressions, Extension Types, Class Modifiers, Wildcards, Null-Aware Elements, and Dot Shorthands.