Dart Checks Migration
技能 已验证 活跃Replace 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.
功能
- 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
使用场景
- 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.
非目标
- 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.
安装
npx skills add flutter/skills通过 npx 运行 Vercel skills CLI(skills.sh)— 需要本地安装 Node.js,以及至少一个兼容 skills 的智能体(Claude Code、Cursor、Codex 等)。前提是仓库遵循 agentskills.io 格式。
质量评分
已验证类似扩展
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.