dart-fix-runtime-errors
Resolve Dart Runtime Errors Safely
Dart type and null-safety errors can delay development and cause runtime failures. This skill provides a structured workflow to analyze, fix, and verify local Dart code changes.
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "dart-fix-runtime-errors" from https://skillstore.io/skills/flutter-dart-fix-runtime-errors.md and its manifest at https://skillstore.io/api/skills/flutter-dart-fix-runtime-errors/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“dart-fix-runtime-errors”。 A List<dynamic> cannot be passed to a method expecting List<int>.
预期结果:
- Identify the inferred dynamic collection.
- Create the collection with an explicit int type.
- Run Dart analysis and tests to verify the change.
正在使用“dart-fix-runtime-errors”。 A non-nullable instance field is not initialized.
预期结果:
- Check whether the field can be nullable.
- Use a constructor initializer when possible.
- Use late only when initialization before every read is guaranteed.
安全审计
安全All 50 static findings are false positives. The analyzer misread Markdown code delimiters, fixed Dart commands, and Dart examples as shell execution or system reconnaissance. The skill contains a local workflow for Dart analysis and testing, with no prompt injection, data collection, network activity, or command construction from user input.
风险因素
⚙️ 外部命令 (35)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/flutter-dart-fix-runtime-errors/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/flutter-dart-fix-runtime-errors?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/flutter-dart-fix-runtime-errors?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/flutter-dart-fix-runtime-errors/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/flutter-dart-fix-runtime-errors.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 引用
flutter. (2026). dart-fix-runtime-errors security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/flutter-dart-fix-runtime-errors/audits/1BibTeX 引用
@techreport{flutter-flutter-dart-fix-runtime-errors-2026,
author = {flutter},
title = {dart-fix-runtime-errors security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/flutter-dart-fix-runtime-errors/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-fix-runtime-errors security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "flutter"
date-released: "2026-08-30"
url: "https://skillstore.io/skills/flutter-dart-fix-runtime-errors/audits/1"
identifiers:
- type: other
value: "skillstore:flutter-dart-fix-runtime-errors:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
Fix a null-safety error
Identify nullable values and select a safe initialization, optional access, or fallback strategy.
Resolve collection type errors
Add explicit generic types when analyzer output reports incompatible dynamic collections.
Verify a team code change
Run analysis and tests after a fix before submitting a pull request.
试试这些提示
Run Dart static analysis for this project. Explain the first errors and propose minimal fixes.
Help me resolve this Dart null-safety error. Explain whether optional access, a fallback, or initialization is appropriate.
Investigate this Dart type mismatch. Trace the inferred types and propose an explicit, safe type annotation.
Review my Dart error fix. Run static analysis and tests, summarize results, and identify any remaining failures.
最佳实践
- Run dart fix with dry-run before applying changes.
- Prefer explicit types and constructor initialization over unsafe casts or late fields.
- Run dart analyze and dart test after every fix.
避免
- Do not apply automated fixes without reviewing the proposed changes.
- Do not use a null assertion when a value can be absent.
- Do not silence analyzer errors with broad casts that hide invalid runtime types.