dart-run-static-analysis
Improve Dart Code with Static Analysis
Dart diagnostics can be difficult to review and resolve before a commit. This skill guides Claude Code, Claude, and Codex through analysis, reviewed fixes, and formatting.
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "dart-run-static-analysis" from https://skillstore.io/skills/flutter-dart-run-static-analysis.md and its manifest at https://skillstore.io/api/skills/flutter-dart-run-static-analysis/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“dart-run-static-analysis”。 Analyze this Flutter package before I commit.
预期结果:
- Analysis completed with diagnostics grouped by error, warning, and info level.
- Recommended fixes identify affected files and explain which changes require manual review.
- A final verification step reruns analysis after approved changes.
正在使用“dart-run-static-analysis”。 Preview automated Dart fixes without changing files.
预期结果:
- Dry-run results list the proposed mechanical fixes.
- The response highlights changes that may affect APIs or formatting.
- No files are changed until the user approves applying fixes.
安全审计
安全All 24 static findings are false positives. The external-command matches are Markdown formatting around documented Dart CLI commands and configuration, not executable code. The remaining reconnaissance match is an ordinary local Dart example, and no prompt injection, exfiltration, or malicious intent was found.
风险因素
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/flutter-dart-run-static-analysis/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/flutter-dart-run-static-analysis?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/flutter-dart-run-static-analysis?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/flutter-dart-run-static-analysis/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/flutter-dart-run-static-analysis.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-run-static-analysis security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/flutter-dart-run-static-analysis/audits/1BibTeX 引用
@techreport{flutter-flutter-dart-run-static-analysis-2026,
author = {flutter},
title = {dart-run-static-analysis security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/flutter-dart-run-static-analysis/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-run-static-analysis 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-run-static-analysis/audits/1"
identifiers:
- type: other
value: "skillstore:flutter-dart-run-static-analysis:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
Prepare a Flutter change for review
Run analysis, inspect diagnostics, and format a Flutter change before opening a pull request.
Configure stricter Dart diagnostics
Set up analysis_options.yaml with recommended rules and strict type checks for a Dart package.
Modernize a Dart codebase
Preview and review supported automated fixes during a Dart SDK or API migration.
试试这些提示
Run Dart static analysis for this project. Summarize each diagnostic and suggest the safest next step.
Run dart analyze, group the diagnostics by cause, and show which fixes are mechanical before changing files.
Run dart fix --dry-run for this package. Explain the proposed changes and wait for my approval before applying them.
Review analysis_options.yaml and propose strict type checks and lint rules. Explain each change and preserve existing project-specific rules.
最佳实践
- Run dart analyze before committing or submitting a review.
- Use dart fix --dry-run and review the proposed changes before applying them.
- Keep analysis_options.yaml under version control with project-specific rules documented.
避免
- Do not apply automated fixes without reviewing the dry-run output.
- Do not suppress diagnostics broadly when a targeted fix is practical.
- Do not treat a clean analysis run as a substitute for tests and code review.