Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计通过

coding-dart编码飞镖

Agent Skill

coding-dart 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

465

周安装

19

GitHub Stars

4

下载量

149
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:coding-dart(编码飞镖)
来源仓库:https://github.com/alphaonedev/openclaw-graph
仓库路径:skills/coding-dart
安装命令:
npx skills add https://github.com/alphaonedev/openclaw-graph --skill coding-dart
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/alphaonedev/openclaw-graph --skill coding-dart

简介

coding-dart 提供 Dart 3 语言支持,涵盖空安全、异步流、Isolate 并发与 Flutter 集成等现代特性。

  • 适用于移动端应用开发、实时数据处理与高并发服务端场景,强化类型安全与运行时可靠性。
  • 支持 late 关键字延迟初始化、Stream 管道操作与 package 依赖管理,提升代码健壮性。
  • 使用前请确认目标平台是否兼容 Dart SDK 3.x,并评估其对现有构建流程的影响。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

coding-dart

Purpose

This skill provides expertise in Dart 3 programming, focusing on features like null safety, async/await, streams, isolates, Flutter integration, and pub package management, to assist in writing efficient, safe code for apps and tools.

When to Use

Use this skill for Dart 3 projects involving mobile apps (e.g., Flutter), concurrent processing, asynchronous operations, or package dependencies. Apply it when null safety is critical to avoid runtime errors, or for handling real-time data with streams.

Key Capabilities

  • Null Safety: Enforce non-nullable types using late for lazy initialization and required for parameters, e.g., late String name; to declare a variable that must be initialized before use.
  • Async/Await: Handle asynchronous code with Future and async functions, such as Future<void> fetchData() async {var data = await http.get('/api/data');}.
  • Streams: Manage asynchronous data streams using Stream from dart:async, e.g., Stream<int> countStream() async* {for (int i = 0; i < 5; i++) yield i;}.
  • Isolates: Run concurrent tasks with Isolate for CPU-bound operations, e.g., Isolate.spawn(workerFunction, args); to offload work.
  • Flutter Integration: Build UI with widgets and state management, e.g., using StatelessWidget for simple components.
  • Pub Package Manager: Manage dependencies via pub, including adding packages with pub add package_name.

Usage Patterns

To accomplish tasks, structure code with null safety by always specifying types (e.g., String? optionalString; for nullable values). For async operations, wrap I/O in async functions and use await for readability. Use isolates for background tasks to avoid UI blocking. Integrate Flutter by starting with MaterialApp in main.dart. For package management, run pub get after editing pubspec.yaml. Always test with dart test before deployment.

Common Commands/API

  • Dart CLI Commands: Use dart analyze with flags like --fatal-infos to enforce strict checks; run scripts with dart run bin/main.dart. For async, import dart:async and use Future.delayed(Duration(seconds: 1), () => print('Delayed'));.
  • Pub Commands: Add dependencies with pub add http --major-version 1 for specific versions; update with pub upgrade; build packages with pub build --release.
  • Key APIs: Access streams via StreamController for custom streams, e.g., var controller = StreamController<int>(); controller.add(1);. For isolates, use Isolate.run for simple tasks: Isolate.run(() => computeHeavyTask());.
  • Config Formats: Edit pubspec.yaml for dependencies, e.g.: dependencies: http: ^1.0.0 Use environment variables for secrets, e.g., set $API_KEY and access via String.fromEnvironment('API_KEY').

Integration Notes

Integrate Dart with Flutter by adding Flutter dependencies in pubspec.yaml and running flutter pub get. For external APIs, set environment variables like $FLUTTER_API_KEY and access in code via Platform.environment['FLUTTER_API_KEY']. Combine with other tools by using Dart's FFI for C libraries or integrating with VS Code via the Dart extension (install with code --install-extension Dart-Code.dart-code). Ensure Dart SDK is in PATH; verify with dart --version.

Error Handling

Handle errors in async code with try-catch in async functions, e.g.:

try {
  var result = await fetchData();
} catch (e) {
  print('Error: $e');
}

For streams, use onError callbacks: stream.listen((data) => print(data), onError: (error) => print(error)). Check null safety errors with dart analyze, and use rethrow to propagate exceptions. For isolates, handle communication errors with ReceivePort and SendPort.

Concrete Usage Examples

  1. Async HTTP Request: To fetch data safely with null safety, use: import 'package:http/http.dart' as http; Future<String?> getData() async {try {var response = await http.get(Uri.parse('https://api.example.com/data')); return response.body;} catch (e) {return null;}} Then call it with var data = await getData(); if (data!= null) print(data);.
  2. Flutter Widget with Stream: Create a simple counter stream in Flutter: import 'dart:async'; class MyWidget extends StatelessWidget {Stream<int> counter() async* {for (int i = 0; i < 5; i++) yield i;} @override Widget build(BuildContext context) {return StreamBuilder<int>(stream: counter(), builder: (context, snapshot) => Text(snapshot.data?.toString()?? '0'),);}}.

Graph Relationships

  • Related to cluster: coding (e.g., shares tags with coding-flutter for Flutter-specific tasks).
  • Connected via tags: dart (links to general programming skills), flutter (integrates with UI-focused skills), coding (groups with other language skills like coding-python).

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.33%
按下载量换算53

Claude

30.7%
按下载量换算46

Cursor

21.01%
按下载量换算31

Gemini CLI

9.41%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills