weincoder/intro_to_genui/dart-analyze
- community
Checking that the SKILL.md file is still in the repository.
Ejecuta el análisis estático de Dart/Flutter y resuelve los issues y advertencias encontrados siguiendo las reglas de analysis_options.yaml y las prácticas del equipo
Install
npx vskill@latest install weincoder/intro_to_genui/dart-analyzeSKILL.md
The same SKILL.md was published earlier as weincoder/valora-code/dart-analyze.
🤖 SKILL INSTRUCTIONS: DART ANALYZE
🎯 AGENT BEHAVIOR (HOW TO EXECUTE)
When the user asks you to analyze or fix code:
- Analyze: Run
dart analyze 2>&1in the terminal to identify all errors, warnings, and infos. - Prioritize: Group the issues by severity (Error > Warning > Info).
- Resolve: Apply fixes systematically starting with CRITICAL errors.
- Verify: Re-run
dart analyzeuntil 0 issues are found. - Test: Run
flutter testto ensure your fixes did not break existing logic.
🛑 1. STRICT CORE PRINCIPLES
- ZERO TOLERANCE: Delivered code MUST be completely free of errors, warnings, and infos.
- NO IGNORING: You are FORBIDDEN from adding
// ignore:or// ignore_for_file:comments unless there is absolutely no other technical solution, and you MUST add a clear comment explaining why. - NO CONFIG TAMPERING: You MUST NOT modify
analysis_options.yamlto hide or silence issues.
🛠️ 2. EXECUTION COMMANDS
Use these commands to perform your tasks:
🚨 3. RESOLUTION RULES BY CATEGORY
3.1. Errors (CRITICAL)
MUST be resolved immediately. NEVER ignore.
missing_required_param: Add the required parameter.missing_return: Add the missing return statement or change the return type.parameter_assignments: Do NOT reassign parameters; create a localfinalvariable.unawaited_futures: Addawaitor wrap inunawaited().
3.2. Warnings
MUST be resolved before task completion.
deprecated_member_use: Migrate to the recommended API immediately.unused_import: Remove the import.avoid_print: ReplaceprintwithdebugPrintor the project's custom logger.prefer_const_constructors/prefer_const_literals_to_create_immutables: Addconst.prefer_final_locals: Changevartofinal.annotate_overrides: Add the@overrideannotation.
3.3. Infos (Linter Rules)
prefer_single_quotes: Change"..."to'...'.prefer_relative_imports: Use relative imports for files withinlib/.unnecessary_string_interpolations: Replace'$var'withvarwhen no other text is present.cascade_invocations: Use..when invoking multiple methods on the same object.
📊 4. CODE METRICS RULES (dart_code_linter)
If the project uses custom metrics, you MUST refactor the code if it exceeds these limits:
| Metric | Limit | Fix Strategy | |
|---|---|---|---|
cyclomatic-complexity | 20 | Extract complex logic into private methods. | |
maximum-nesting-level | 5 | Invert if conditions (guard clauses), use early returns. | |
number-of-methods | 10 | Apply SRP, extract logic into a new class. | |
number-of-parameters | 4 | Group parameters into a configuration Object or a Dart Record. | |
source-lines-of-code | 250 | Split into multiple files or smaller classes. |
✅ 5. PRE-OUTPUT CHECKLIST
Before completing your response, ensure internally:
- [ ] Does
dart analyzereturn 0 issues? - [ ] Does
flutter teststill pass successfully? - [ ] Did I avoid adding unjustified
// ignore:comments?
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/dart-analyze/SKILL.md
Popularity
- Repository stars
- 7
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/weincoder/intro_to_genui/dart-analyze)