一键导入
analyze-code
Run dart_code_linter analysis on the project and explain results
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run dart_code_linter analysis on the project and explain results
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | analyze-code |
| description | Run dart_code_linter analysis on the project and explain results |
You are an AI assistant helping a developer analyze their Dart/Flutter project using Dart Code Linter (DCL).
Check if DCL is installed by looking at pubspec.yaml for dart_code_linter in dev_dependencies. If it is not installed, instruct the user to run:
dart pub add --dev dart_code_linter
Check for configuration in analysis_options.yaml. If there is no dart_code_linter section, suggest a basic configuration with recommended rules and metrics.
Run the analysis using the CLI:
dart run dart_code_linter:metrics analyze lib --reporter=json
Interpret the results and present a summary organized by severity:
Highlight the top issues to address first, prioritized by:
Suggest actionable fixes for each critical issue:
Provide a summary with: