dart-fix-runtime-errors

dart-fix-runtime-errors is a skill for Claude Code from flutter/agent-plugins. It costs 36 tokens per session (1,491 once invoked), scanned A, original, BSD-3-Clause.

A Dart debugging workflow that uses a current stack trace, code-navigation information, and hot reload to investigate errors. A stack trace records the calls that led to a failure; hot reload updates a running app without a full restart.

In plain words
What is it for?
Fetching active Dart runtime errors, locating the failing code, applying a fix, and verifying the result through hot reload.
Why use it?
It connects the reported runtime error to the failing line and checks whether the applied fix resolves it.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dart-flutter plugin — 31 skills shipped together

Good fit Fetching active Dart runtime errors, locating the failing code, applying a fix, and verifying the result through hot reload.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/flutter/agent-plugins/dart-fix-runtime-errors
About the project

Flutter Agent Plugins is a collection maintained by the Flutter team that extends coding agents with Flutter-specific skills, rules, MCP configuration, and bundled workflows. Flutter developers use it to help agents perform tasks such as testing and building widget previews. The catalogue entries are components of these agent plugins.

flutter/agent-plugins · 3,222 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add flutter/agent-plugins --skill dart-fix-runtime-errors
Clone the repo
git clone --depth 1 https://github.com/flutter/agent-plugins

Made for: Claude Code.

Or install dart-flutter, the plugin that ships this one along with the rest of its 31 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dart-fix-runtime-errors

README.md
[![agentmods](https://agentmods.dev/badge/skills/flutter/agent-plugins/dart-fix-runtime-errors/github.svg)](https://agentmods.dev/skills/flutter/agent-plugins/dart-fix-runtime-errors)
Your own site
<a href="https://agentmods.dev/skills/flutter/agent-plugins/dart-fix-runtime-errors"><img src="https://agentmods.dev/badge/skills/flutter/agent-plugins/dart-fix-runtime-errors/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dart-fix-runtime-errors

Your own site · 80×15
<a href="https://agentmods.dev/skills/flutter/agent-plugins/dart-fix-runtime-errors"><img src="https://agentmods.dev/badge/skills/flutter/agent-plugins/dart-fix-runtime-errors.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,491 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 14 Jul 2026
  • Snyk pass 14 Jul 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.01491
Opus 5.5 $0.00014 $0.00596
Sonnet 5.5 $0.00007 $0.00298
Haiku 4.5 $0.00004 $0.00149

Measured 3mo ago against content hash 0c18be0cbda9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dart-fix-runtime-errors scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

skills/dart-fix-runtime-errors/SKILL.md · 167 lines

How it starts

The opening of the file, as written. The whole thing — 167 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Resolving Dart Static Analysis Errors

Contents

Core Concepts & Guidelines

Type System & Soundness

Enforce Dart's sound type system to prevent runtime invalid states.

  • Method Overrides: Maintain sound return types (covariant) and parameter types (contravariant). Never tighten a parameter type in a subclass unless explicitly marked with the covariant keyword.
  • Generics & Collections: Add explicit type annotations to generic classes (e.g., List<T>, Map<K, V>). Never assign a List<dynamic> to a typed list (e.g., List<Cat>).
  • Downcasting: Avoid implicit downcasts from dynamic. Use explicit casts (e.g., as List<Cat>) when necessary, but ensure the underlying runtime type matches to prevent TypeError exceptions.
  • Strict Casts: Enable strict-casts: true in analysis_options.yaml under analyzer: language: to force explicit casting and catch implicit downcast errors at compile time.

Null Safety

Eliminate static errors related to null safety by correctly managing variable initialization and nullability.

  • Modifiers: Apply ? for nullable types, ! for null assertions, and required for named parameters that cannot be null.
  • Late Initialization: Use the late keyword for non-nullable variables guaranteed to be initialized before use. Apply this specifically to top-level or instance variables where Dart's control flow analysis cannot definitively prove initialization.
  • Wildcards: Use the _ wildcard variable (Dart 3.7+) for non-binding local variables or parameters to avoid unused variable warnings.

Error Handling

Distinguish between recoverable exceptions and unrecoverable errors.

Read the full file on GitHub · 167 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 167 lines · 36 tokens per session scan A 0c18be0cbda9

Subscribe to this mod's changes

dart-fix-runtime-errors is a skill published in the GitHub repository flutter/agent-plugins (3,222 stars, last pushed 12d ago), licensed BSD-3-Clause. It adds 36 tokens to every session and 1,491 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

dart-fix-runtime-errors compared with skills from other repositories

dart-fix-runtime-errors next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dart-fix-runtime-errorsflutter/agent-pluginsSkill3.2k12d agoBSD-3-ClauseA36Claude Code
dotnet-reversezhaoxuya520/reverse-skillSkill46k16d agoMITA144Claude Code
agents-sdk-dotnet-debuggingmicrosoft/AgentsSkill1.1k5d agoMITA136Claude Code
memory-optimizationbenchflow-ai/skillsbenchSkill1.9k6d agoApache-2.0A60Claude Code, Codex
golang-error-handlingsamber/cc-skills-golangSkill4.0k22d agoMITA144Claude Code
tree-sitter-language-pack-extracting-code-structurexberg-io/tree-sitter-language-packSkill489yesterdayMITA52Claude Code
python-lspoaustegard/claude-skillsSkill421yesterdayMITA155Claude Code