用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/rodydavis/signals.dart --skill signals-lint命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | signals-lint |
| description | Standardized compiler diagnostics, static analysis lints, and automated IDE quick-fixes. |
This skill covers working with static code analysis, custom compiler warning diagnostics, and automated quick-fixes in the signals.dart ecosystem.
Ensure the plugin is active in your project to enable real-time IDE diagnostics and fixes:
# pubspec.yaml
dev_dependencies:
custom_lint: ^0.8.1
signals_lint: ^7.0.0
# analysis_options.yaml
analyzer:
plugins:
- custom_lint
signals_avoid_create_in_build_methodFlags instances where a signal or computed variable is created inside a Flutter build method.
signals_avoid_deprecated_watch_extensionFlags uses of deprecated BuildContext.watch() and BuildContext.unwatch() extensions.
SignalBuilder or inherit from SignalWidget/SignalStatefulWidget.signals_avoid_deprecated_signals_mixinFlags usage of deprecated with SignalsMixin mixins on StatefulWidget states.
SignalStatefulWidget instead.signals_prefer_named_builderEnforces named builder: callbacks in SignalBuilder and Watch elements instead of positional arguments.
signals_prefer_unified_optionsFlags direct creator configuration arguments (e.g. autoDispose: true).
options: SignalOptions(autoDispose: true)).Place your cursor on the relevant class name or widget instantiation inside your IDE to reveal these automatic assists via the quick-fix menu (Cmd+. or Alt+Enter):
WrapWithSignalBuilder: Wraps any widget expression inside SignalBuilder(builder: (context) => ...).ConvertStatelessToSignalWidget: Refactors a standard StatelessWidget into a SignalWidget instantly.ConvertStatefulToSignalStatefulWidget: Refactors a standard StatefulWidget to a SignalStatefulWidget.MigrateSignalsMixinToSignalStatefulWidget: Strips the legacy SignalsMixin and converts the class structure to SignalStatefulWidget.MigrateWatchToSignalBuilder: Converts legacy Watch(...) instances into clean SignalBuilder widgets.