dart-migrate-to-checks-package
Migrate Dart Tests to Package Checks
Legacy matcher assertions can lose type safety and hide migration errors. This skill guides precise conversions to package:checks with verification steps and pitfall warnings.
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "dart-migrate-to-checks-package" from https://skillstore.io/skills/dart-lang-dart-migrate-to-checks-package.md and its manifest at https://skillstore.io/api/skills/dart-lang-dart-migrate-to-checks-package/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“dart-migrate-to-checks-package”。 Convert a list equality assertion that currently compares items with an expected list.
预期结果:
Use deep equality for the migrated collection assertion. Update the test imports, then run static analysis and the focused test.
正在使用“dart-migrate-to-checks-package”。 Review an asynchronous throwsA migration that chains checks after awaiting throws.
预期结果:
Use the asynchronous inspection callback because the awaited throws check returns a future. Ensure the assertion itself is awaited.
正在使用“dart-migrate-to-checks-package”。 Plan conversion of a custom matcher that validates a Person property.
预期结果:
Create a Subject extension, extract the property with has or nest, and preserve a clear failure description.
安全审计
安全All 210 static findings are false positives caused by Markdown delimiters and ordinary Dart syntax in documentation. The skill contains no executable scripts, prompt injection, data exfiltration intent, or system reconnaissance behavior.
风险因素
⚡ 包含脚本 (1)
⚙️ 外部命令 (50)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/dart-lang-dart-migrate-to-checks-package/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/dart-lang-dart-migrate-to-checks-package?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/dart-lang-dart-migrate-to-checks-package?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/dart-lang-dart-migrate-to-checks-package/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/dart-lang-dart-migrate-to-checks-package.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
dart-lang. (2026). dart-migrate-to-checks-package security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/dart-lang-dart-migrate-to-checks-package/audits/1BibTeX 引用
@techreport{dart-lang-dart-lang-dart-migrate-to-checks-package-2026,
author = {dart-lang},
title = {dart-migrate-to-checks-package security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/dart-lang-dart-migrate-to-checks-package/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "dart-migrate-to-checks-package security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "dart-lang"
date-released: "2026-08-22"
url: "https://skillstore.io/skills/dart-lang-dart-migrate-to-checks-package/audits/1"
identifiers:
- type: other
value: "skillstore:dart-lang-dart-migrate-to-checks-package:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
Modernize a Dart Test Suite
Convert legacy expect assertions while preserving test intent and improving static type safety.
Review a Migration Pull Request
Check conversions for deep equality, asynchronous behavior, nullable values, and matcher-specific pitfalls.
Replace Custom Matchers
Redesign custom Matcher subclasses as package:checks Subject extensions with clear rejection messages.
试试这些提示
Convert this Dart expect assertion to package:checks. Explain any semantic difference and show the required import changes: [assertion]
Migrate this Dart test file from package:matcher to package:checks. Preserve behavior, update imports, and identify assertions requiring deep equality: [file content]
Review this partial package:checks migration. Find incorrect equality, missing awaits, nullable boolean issues, map containment errors, and remaining legacy expect calls: [changes]
Plan a staged migration of this Dart repository to package:checks. Group files by risk, address custom matchers, define verification commands, and propose review checkpoints: [repository context]
最佳实践
- Migrate one file or coherent test group at a time, then run analysis and focused tests.
- Review collection, regular expression, nullable, and asynchronous assertions for semantic differences.
- Remove temporary legacy imports only after every expect call has been converted.
避免
- Do not replace every collection expect call with equals without checking deep equality requirements.
- Do not omit await from asynchronous checks or assume synchronous throws chaining applies to futures.
- Do not remove legacy imports before identifying all remaining matcher dependencies.