Agent skill

Dart Coding Standards

by bladeofgod in bladeofgod/flutter-ai-harness

适用:编写或审查 Dart/Flutter 生产代码,尤其是 Controller、Service、Stream、异步任务和依赖注入。不适用:Kotlin、Swift 或生成代码规范。触发词:Dart、Controller、Service、StreamSubscription、unawaited、dynamic、DI、重构。

MITAuto-check passedMobile

Install Dart Coding Standards

skills CLI
$ npx skills add bladeofgod/flutter-ai-harness --skill dart-coding-standards -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install bladeofgod/flutter-ai-harness dart-coding-standards --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/bladeofgod/flutter-ai-harness.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/dart-coding-standards .claude/skills/dart-coding-standards && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
dart-coding-standards
GitHub stars
116
Token cost
~228 tokens
SKILL.md length
57 words
Files
1
Skills in repo
11
Repo updated
First seen
Licence
MIT

At a glance

适用:编写或审查 Dart/Flutter 生产代码,尤其是 Controller、Service、Stream、异步任务和依赖注入。不适用:Kotlin、Swift 或生成代码规范。触发词:Dart、Controller、Service、StreamSubscription、unawaited、dynamic、DI、重构。

  • Tasks that involve Cross-platform mobile apps
  • SKILL.md covers 边界, 类型, 异步与生命周期 and Flutter, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Tasks that involve Code quality

What it does

Dart Coding Standards is an agent skill from bladeofgod/flutter-ai-harness. 适用:编写或审查 Dart/Flutter 生产代码,尤其是 Controller、Service、Stream、异步任务和依赖注入。不适用:Kotlin、Swift 或生成代码规范。触发词:Dart、Controller、Service、StreamSubscription、unawaited、dynamic、DI、重构。

Its SKILL.md is about 230 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Mobile, covering Cross-platform mobile apps, Code quality and Android development. It works with Dart, Flutter and Kotlin. The repository describes itself as: An AI-native engineering harness for production Flutter and hybrid mobile app repositories. The licence is MIT.

When your agent uses it

  • Tasks that involve Cross-platform mobile apps
  • Tasks that involve Code quality
  • Tasks that involve Android development

Example prompts

  • “/dart-coding-standards”

What it can do on your machine

Read from SKILL.md and the folder at commit 9f1a1ca. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Dart Coding Standards loads about 228 tokens when it runs. Until then it costs about 46 tokens; SKILL.md has 57 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~46
When it runs · the whole SKILL.md, loaded when a task matches
~228

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from bladeofgod/flutter-ai-harness at commit 9f1a1ca, republished under its MIT licence (© bladeofgod). 57 words, ~228 tokens.

Download SKILL.mdSave it as .claude/skills/dart-coding-standards/SKILL.md (or your agent's skills folder).
name
dart-coding-standards
description
适用:编写或审查 Dart/Flutter 生产代码,尤其是 Controller、Service、Stream、异步任务和依赖注入。不适用:Kotlin、Swift 或生成代码规范。触发词:Dart、Controller、Service、StreamSubscription、unawaited、dynamic、DI、重构。
paths
app/**/*.dart

Dart 编码规范

边界

  • 公共接口和跨包调用只使用 Domain Entity。
  • 必需协作者通过构造函数注入。
  • 依赖只在装配点解析;Controller 内只允许访问显式全局 Service。
  • UI、业务编排和 Adapter 留在各自所属层。

类型

  • 禁止显式 dynamic;使用具体类型、Object?、密封结果类型或带类型的 Map Adapter。
  • 有限状态使用 enum 或 sealed type。
  • 业务阈值和重复视觉值使用具名常量。
  • 公共 API 不得暴露生成类型、协议类型、数据库类型或 SDK 类型。

异步与生命周期

  • 影响正确性的 Future 必须 await。
  • Fire-and-forget 必须有显式错误处理和诊断上下文。
  • Subscription、Timer、Worker 和 Listener 必须由生命周期所有者保存并释放。
  • 转换异常时保留 Stack Trace。
  • 只有明确兜底边界才允许宽捕获;详见 .claude/memories/catch-type-selection.md。

Flutter

  • build 保持声明式,业务编排进入 Controller/Use Case。
  • 按职责拆 Widget,不按任意行数拆分。
  • 响应式 Builder 只包裹实际读取状态的最小子树。

验证

格式化触碰文件,运行受影响分析和测试;共享契约变化时扩大范围。禁止手工修改生成文件。

© bladeofgod, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/dart-coding-standards of bladeofgod/flutter-ai-harness.

Open the folder on GitHubat commit 9f1a1ca

Compare with similar skills

Dart Coding Standards next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Dart Coding Standards compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dart Coding Standards this skillbladeofgod/flutter-ai-harness116—~228Automated safety check: PassMIT
Compose Multiplatformericrisco/rsc-harness167—~2.7kAutomated safety check: PassMIT
Mobile Apps Createforcedotcom/sf-skills1.1k—~1.4kAutomated safety check: PassApache-2.0
Code Revieweralirezarezvani/claude-skills28k1 repos~1.6kAutomated safety check: PassMIT
Updating Android SDKflutter/flutter179k—~1.7kAutomated safety check: PassBSD-3-Clause
Claude Android NinjaDrjacky/claude-android-ninja124—~5.2kAutomated safety check: PassApache-2.0

Similar skills

  • Compose Multiplatform

    ericrisco/rsc-harness

    A skill your agent uses when building one shared Compose UI in Kotlin across Android, iOS, and desktop — commonMain @Composables, expect/actual, source-set placement, native interop, multiplatform…

    167 GitHub stars~2.7k tokensUpdated today
    MobileAuto-check passed
  • Mobile Apps Create

    forcedotcom/sf-skills

    The entry point for building any Salesforce native mobile app on iOS or Android.

    1.1k GitHub stars~1.4k tokensUpdated today
    MobileAuto-check passed
  • Code Reviewer

    alirezarezvani/claude-skills

    Code review automation for TypeScript, JavaScript, Python, Go, Swift, Kotlin, C, .NET, Java, C, C++, Rust, Ruby, PHP, and Dart/Flutter.

    28k GitHub starsUsed in 1 repo~1.6k tokens
    DevelopmentAuto-check passed
  • Updating Android SDK

    flutter/flutter

    Upgrades Flutter's Android SDK dependency to a new Android API version (or preview/canary release) in packages.txt, verifies CIPD tag uniqueness, and packages/uploads the binaries using…

    179k GitHub stars~1.7k tokensUpdated today
    MobileAuto-check passed
  • Claude Android Ninja

    Drjacky/claude-android-ninja

    Build and migrate Android apps with Kotlin, Jetpack Compose, MVVM, Hilt, Room 3 (KSP, SQLiteDriver, Flow/suspend DAOs), Navigation3, and multi-module Gradle.

    124 GitHub stars~5.2k tokensUpdated 8 days ago
    MobileAuto-check passed
  • Expo Brownfield Integration

    mweinbach/agent-coworker

    Helps add Expo and React Native to an existing native iOS or Android app, and choose between a prebuilt AAR or XCFramework and a fully integrated build.

    156 GitHub starsUsed in 2 repos~900 tokens
    MobileAuto-check: notes

More from bladeofgod/flutter-ai-harness

All 11 skills in this repo
  • Getx Patterns

    bladeofgod/flutter-ai-harness

    适用:代码使用 GetxController、GetxService、Rx、Obx、GetBuilder、Get.find、Bindings 或 Worker。不适用:GetX 路由、Dialog、Snackbar,或 Controller 内隐式查找 API。触发词:GetX、Obx、.obs、Rx、Get.find、GetxService、Worker、Binding。

    116 GitHub stars~462 tokensUpdated 1 mo ago
    Auto-check passed
  • UI Behavior Spec

    bladeofgod/flutter-ai-harness

    适用:根据已批准任务、产品规则、原型或 Figma 输入生成、审计或执行 Version 1 UI 行为 Spec。不适用:替代产品决策、实现 UI、操作系统原生界面或探索未定义流程。触发词:UI Spec、行为契约、plan-spec、spec-writer、spec-auditor、app-operator、Marionette 验收。

    116 GitHub stars~1.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Flutter Debug Runtime

    bladeofgod/flutter-ai-harness

    适用:在 App Operator 或 Marionette 验证前,为 Android/iOS 构建、安装并启动 Flutter Debug App,获取 VM Service URI。不适用:Release 构建、签名配置、系统权限自动化、账号登录或测试数据准备。触发词:flutter run、Debug App、设备安装、VM Service URI、App Operator 前置环境。

    116 GitHub stars~274 tokensUpdated 1 mo ago
    Auto-check passed
  • Figma To Flutter

    bladeofgod/flutter-ai-harness

    适用:读取 Figma 或根据节点实现 Flutter UI,包括 Token 反查、Auto Layout、组件 Variant、Asset 和视觉验证。不适用:替代产品决策,或从像素推断设计稿不可见的数据行为。触发词:Figma URL、node-id、design-to-code、视觉还原、Auto Layout、design token。

    116 GitHub stars~270 tokensUpdated 1 mo ago
    Auto-check passed
  • Go Router

    bladeofgod/flutter-ai-harness

    适用:新增 Route、Redirect、ShellRoute/StatefulShellRoute、DeepLink、路由参数、Observer 或 Route 级 Controller 装配。不适用:GetX 导航或没有明确兼容边界的任意 Navigator Stack。触发词:GoRouter、GoRoute、redirect、deep link、shell…

    116 GitHub stars~295 tokensUpdated 1 mo ago
    Auto-check passed
  • Kotlin Android Standards

    bladeofgod/flutter-ai-harness

    适用:编写或审查 Android Kotlin Native Module、Bridge Adapter、Host 接线、Manifest、Gradle 和原生 UI。不适用:Swift/iOS、Dart Client 或 Wire Contract 设计。触发词:Kotlin、Android、Gradle、Manifest、Coroutine、Flow、CameraX、Activity。

    116 GitHub stars~352 tokensUpdated 1 mo ago
    Auto-check passed

Categories

Questions about Dart Coding Standards

What does Dart Coding Standards do?

适用:编写或审查 Dart/Flutter 生产代码,尤其是 Controller、Service、Stream、异步任务和依赖注入。不适用:Kotlin、Swift 或生成代码规范。触发词:Dart、Controller、Service、StreamSubscription、unawaited、dynamic、DI、重构。. Dart Coding Standards is an agent skill from bladeofgod/flutter-ai-harness.

When should I use Dart Coding Standards?

Dart Coding Standards fits situations like: tasks that involve Cross-platform mobile apps; tasks that involve Code quality; tasks that involve Android development.

How do I install Dart Coding Standards in Claude Code?

Run `npx skills add bladeofgod/flutter-ai-harness --skill dart-coding-standards -a claude-code`. Or copy the skill folder (.claude/skills/dart-coding-standards in bladeofgod/flutter-ai-harness) into .claude/skills/dart-coding-standards in your project. Claude Code loads it when a task matches its description.

How do I install Dart Coding Standards in Codex?

Run `npx skills add bladeofgod/flutter-ai-harness --skill dart-coding-standards -a codex`. Or copy the skill folder (.claude/skills/dart-coding-standards in bladeofgod/flutter-ai-harness) into .agents/skills/dart-coding-standards in your project. Codex loads it when a task matches its description.

Can I use Dart Coding Standards in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add bladeofgod/flutter-ai-harness --skill dart-coding-standards -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dart-coding-standards, .gemini/skills/dart-coding-standards, .github/skills/dart-coding-standards and .opencode/skills/dart-coding-standards in your project.

What does Dart Coding Standards need to run?

SKILL.md names no scripts, command-line tools or credentials: Dart Coding Standards is instructions for the agent only.

Does Dart Coding Standards access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Dart Coding Standards safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Dart Coding Standards use?

Dart Coding Standards is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Dart Coding Standards use?

About 228 tokens (SKILL.md is roughly 912 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Dart Coding Standards?

Skills that share tags, products or a category with Dart Coding Standards: Compose Multiplatform (ericrisco/rsc-harness, 167 stars), Mobile Apps Create (forcedotcom/sf-skills, 1.1k stars), Code Reviewer (alirezarezvani/claude-skills, 28k stars) and Updating Android SDK (flutter/flutter, 179k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dart Coding Standards?

bladeofgod (a GitHub user) maintains it in bladeofgod/flutter-ai-harness, which has 116 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on September 7, 2026.

Source: bladeofgod/flutter-ai-harness on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.