dart-fix-runtime-errors

dart-fix-runtime-errors is a skill for Claude Code, Codex from sutchan/Agent-Skills-Hub. It costs 31 tokens per session (1,515 once invoked), scanned A, a copy of dart-fix-runtime-errors, MIT.

A Dart troubleshooting guide for finding and fixing static analysis and runtime errors. Static analysis checks code for problems before it runs, while runtime errors happen during execution.

In plain words
What is it for?
Use it to inspect active errors with runtime diagnostics and language-server information, identify the failing code, and apply fixes with hot reload.
Why use it?
It helps locate reported errors, especially around types, casts, null values, and invalid data, so they can be corrected safely.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect active errors with runtime diagnostics and language-server information, identify the failing code, and apply fixes with hot reload.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sutchan/agent-skills-hub/dart-fix-runtime-errors
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 sutchan/Agent-Skills-Hub --skill dart-fix-runtime-errors
Clone the repo
git clone --depth 1 https://github.com/sutchan/Agent-Skills-Hub

Made for: Claude Code, Codex.

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/sutchan/agent-skills-hub/dart-fix-runtime-errors/github.svg)](https://agentmods.dev/skills/sutchan/agent-skills-hub/dart-fix-runtime-errors)
Your own site
<a href="https://agentmods.dev/skills/sutchan/agent-skills-hub/dart-fix-runtime-errors"><img src="https://agentmods.dev/badge/skills/sutchan/agent-skills-hub/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/sutchan/agent-skills-hub/dart-fix-runtime-errors"><img src="https://agentmods.dev/badge/skills/sutchan/agent-skills-hub/dart-fix-runtime-errors.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,515 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.
Origin 97% copy Near-identical to another mod 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.00031 $0.01515
Opus 5.5 $0.00012 $0.00606
Sonnet 5.5 $0.00006 $0.00303
Haiku 4.5 $0.00003 $0.00152

Measured 1mo ago against content hash b82549686964, 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 1mo 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

This is a copy

97% identical to dart-fix-runtime-errors — 11 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

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

How it starts

The opening of the file, as written. The whole thing — 170 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 · 170 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. 1mo ago Changed · +1 lines b82549686964
  2. 1mo ago Changed · +2 lines · -5 tokens per session 58b7ef23431a
  3. 2mo ago Changed · -4 lines · +5 tokens per session 0c18be0cbda9
  4. 2mo ago First seen · 171 lines · 31 tokens per session scan A ca74fe9f20a0

Subscribe to this mod's changes

dart-fix-runtime-errors is a skill published in the GitHub repository sutchan/Agent-Skills-Hub (3 stars, last pushed 6d ago), licensed MIT. It adds 31 tokens to every session and 1,515 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 97% identical to dart-fix-runtime-errors, differing in 11 lines, and is treated as a copy.

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-errorssutchan/Agent-Skills-HubSkill36d agoMITA31Claude Code, Codex
systematic-debuggingobra/superpowersSkill331k2d agoMITA21Claude Code
diagnosing-superpowersobra/superpowersSkill331k2d agoMITA92Claude Code
semgrepsiva01c/claude-pluginsSkill1625d agoMITA169Claude Code
performance-optimizationsvngoku/coding-agents-skillsSkill1221d agoMITA175Claude Code, Codex
coding-protocollencx/skillsSkill3063mo agoMITA54Claude Code
lambchat-codingYanyutin753/LambChatSkill2272d agononeA17Claude Code, Codex