Community编程与开发github.com

dart-lang/dart-fix-runtime-errors

利用 get_runtime_errors 和 lsp 获取活跃的堆栈跟踪,定位失败行,应用修复,并通过热重载验证解决。

dart-fix-runtime-errors 是什么?

该技能旨在自动修复 Dart 应用中的运行时错误。它通过 `get_runtime_errors` 获取活跃的堆栈跟踪,并利用 LSP(语言服务器协议)精确定位代码中的失败行。随后,它会应用修复方案,并通过 `hot_reload` 快速验证错误是否已解决。此技能适用于 Dart 和 Flutter 开发者,支持在支持 LSP 和热重载的 IDE 或编辑器(如 VS Code)中使用。其核心优势在于自动化了“捕获错误 → 定位问题 → 应用补丁 → 验证修复”的循环,显著减少手动调试时间,提升开发效率。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/dart-lang/skills/tree/main/skills/dart-fix-runtime-errors

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

dart-fix-runtime-errors 是做什么的?

利用 get_runtime_errors 和 lsp 获取活跃的堆栈跟踪,定位失败行,应用修复,并通过热重载验证解决。

Individual skills in this repo

This repo contains 8 individual skills — each has its own dedicated page.

相关技能