¿Qué hace dart-migrate-to-checks-package?
Reemplaza el uso de expect y funciones similares de package:matcher por sus equivalentes en package:checks.
Reemplaza el uso de `expect` y funciones similares de `package:matcher` por sus equivalentes en `package:checks`.
Esta skill automatiza la migración de código Dart que utiliza el paquete `matcher` (con funciones como `expect`, `expectAsync`, entre otras) hacia el paquete `checks`, que ofrece una API más moderna y expresiva para aserciones. Diseñada para asistentes de IA como Claude Code o Cursor, simplifica la transición de tests existentes, reescribiendo automáticamente las llamadas a funciones de aserción del estilo antiguo al nuevo. Es especialmente útil para proyectos que buscan adoptar las mejores prácticas actuales de Dart, reduciendo el esfuerzo manual y minimizando errores durante la migración. Soporta cualquier código Dart que importe `package:matcher`, y funciona transformando las expresiones de aserción en sus contrapartes de `package:checks`, manteniendo la lógica y el flujo del test intactos.
npx skills add https://github.com/dart-lang/skills/tree/main/skills/dart-migrate-to-checks-packageInstalled? Explore more Programación y desarrollo skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →
Reemplaza el uso de expect y funciones similares de package:matcher por sus equivalentes en package:checks.
This repo contains 8 individual skills — each has its own dedicated page.
Write and organize unit tests for functions, methods, and classes using `package:test`. Use when creating new logic or fixing bugs to ensure code remains correct and regression-free.
Entrypoint structure, exit codes, cross-platform scripts. Use when building command line utilities, scripts, or applications.
Collect coverage using the coverage packge and create an LCOV report
Uses get_runtime_errors and lsp to fetch an active stack trace, locate the failing line, apply a fix, and verify resolution via hot_reload.
Define and generate mock objects for external dependencies using `package:mockito` and `build_runner`. Use when unit testing classes that depend on complex external services like APIs or databases.
Workflow for fixing package version conflicts. Use this when `pub get` fails due to incompatible package versions.
Execute `dart analyze` to identify warnings and errors, and use `dart fix --apply` to automatically resolve mechanical lint issues. Use during development to ensure code quality and before committing changes.
Use switch expressions and pattern matching where appropriate
Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.
Control Eight Sleep pods (status, temperature, alarms, schedules).
BluOS CLI (blu) for discovery, playback, grouping, and volume.
Create, search, and manage Bear notes via grizzly CLI.
Capture frames or clips from RTSP/ONVIF cameras.
Search GIF providers with CLI/TUI, download results, and extract stills/sheets.