dart-migrate-to-checks-package 是做什麼的?
將 package:matcher 中的 expect 及類似函數的使用替換為 package:checks 的對應寫法。
將 `package:matcher` 中的 `expect` 及類似函數的使用替換為 `package:checks` 的對應寫法。
此技能會自動將 Dart 專案中來自 `package:matcher` 的 `expect` 及其相關函數(如 `throwsA`、`isTrue` 等)替換為 `package:checks` 的等效寫法。這對於想要從較舊、較不鏈式化的斷言庫遷移到更現代、更可組合的 `checks` 套件的開發者非常有用。該技能可在支援技能(skill)功能的開發環境(如 Claude Code、Cursor 或 Codex)中運作,並透過分析檔案中的進口宣告和斷言調用,來執行對應的語法轉換。使用此技能可簡化遷移流程、減少手動錯誤,並幫助團隊採用更好的斷言模式。
npx skills add https://github.com/dart-lang/skills/tree/main/skills/dart-migrate-to-checks-packageInstalled? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →
將 package:matcher 中的 expect 及類似函數的使用替換為 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.