Skip to main content

dart

Conventions and best practices for writing Dart code in this workspace.

来源信息

仓库
genkit-ai/genkit-dart
最近来源活动
2026年7月10日 22:13
检测到的 SKILL.md 语言
英语
星标
159
分支
31

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
dart
description
Conventions and best practices for writing Dart code in this workspace.
# Dart coding conventions - Prefer `final` over `var` where the value never changes. - Use lowerCamelCase for variables and functions, UpperCamelCase for types. - Keep functions small and focused; prefer pure functions where practical. - Always handle errors explicitly; avoid swallowing exceptions silently. - Add a doc comment (`///`) to every public declaration. - Use `dart format` defaults (80-column width) for all files. - Prefer collection literals and spread operators over imperative building.
在 GitHub 查看