
dart-fix-runtime-errors
Uses get_runtime_errors and lsp to fetch an active stack trace
by dart-langFree
Description
dart-fix-runtime-errors is an agent skill from the Dart team's skills collection, listed on skills.sh. It guides an AI agent through finding and fixing a runtime error in a Dart or Flutter app. The workflow uses the get_runtime_errors and lsp tools to fetch an active stack trace, then locates the failing line, applies a fix and checks the result with hot_reload. The skill's core guidance covers Dart's sound type system, so that the fix does not leave an invalid state in place. It explains that a method override must keep sound return types, which are covariant, and parameter types, which are contravariant, and that a subclass should not tighten a parameter type unless it is explicitly marked covariant. It asks for explicit type annotations on generic classes and collections, and it warns against assigning a List of dynamic to a typed list. It also advises avoiding implicit downcasts, and it has sections on null safety and error handling. The skill also contains a static analysis resolution workflow with examples. A skill is a SKILL.md file of instructions, sometimes with scripts and reference notes, that an AI agent loads only when a task calls for it. The skill is listed as free on skills.sh.…
Highlights
- Fetches the active stack trace and failing line
- Verifies the fix with hot reload
- Sound type system rules for overrides and generics
- Null safety and error handling guidance
Ratings & Reviews
No ratings yet
Be the first to rate dart-fix-runtime-errors.
People also visit
dart-fix-runtime-errors FAQ
What does the dart-fix-runtime-errors skill do?
It helps an AI agent find the stack trace for a Dart runtime error, fix the failing line and verify the fix with hot reload.
How do I install it?
Run: npx skills add https://github.com/dart-lang/skills --skill dart-fix-runtime-errors
Is it free?
Yes. The skill is listed as free on skills.sh.
Which tools does it use?
The get_runtime_errors and lsp tools to get the stack trace, and hot_reload to check the result.
What type rules does it enforce?
Sound method overrides, explicit generic types, and no implicit downcasts or dynamic lists assigned to typed lists.
What are the best dart-fix-runtime-errors alternatives?
Popular alternatives to dart-fix-runtime-errors include dart-run-static-analysis, debugging-wizard and dart. See all dart-fix-runtime-errors alternatives



















