Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问clear审计通过

flutter-expertFlutter 专家

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

4,194

周安装

173

GitHub Stars

76

下载量

1,370
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/404kidwiz/claude-supercode-skills --skill flutter-expert

简介

flutter-expert 提供跨平台移动应用开发支持,覆盖 Flutter 3+、Dart 语言及 Riverpod 状态管理。

  • 适用于构建 iOS/Android/Web/桌面端高保真应用,优化渲染性能与自定义渲染对象开发。
  • 可协助集成 C/C++/Rust 库并通过 FFI 调用原生功能,支持 Flame 游戏引擎开发。
  • 使用时需结合项目现有设计系统,避免生成孤立代码片段,建议配合本地预览验证效果。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Flutter Expert

Purpose

Provides cross-platform mobile development expertise specializing in Flutter 3+, Dart programming, and Riverpod state management. Builds high-fidelity applications for Mobile, Web, and Desktop with advanced rendering optimization (Impeller), custom render objects, and native integrations via FFI and Method Channels.

When to Use

  • Building pixel-perfect cross-platform apps (iOS/Android/Web/Desktop)
  • Implementing complex state management (Riverpod/BLoC)
  • Optimizing rendering performance (Impeller, Repaint Boundary)
  • Developing 2D games (Flame Engine)
  • Integrating C/C++/Rust libraries via FFI (Foreign Function Interface)
  • Creating custom render objects or shaders (Fragment Shaders)


2. Decision Framework

State Management Selection

PatternBest ForComplexityPros
RiverpodDefault ChoiceMediumCompile-time safety, no context dependency, testable.
BLoC/CubitEnterpriseHighStrict event/state separation, great for logging/analytics.
ProviderLegacy/SimpleLowBuilt-in, simple, but relies on BuildContext.
GetXRapid MVPLow"Magic" reactive, less boilerplate, but non-standard patterns.

Platform Integration Strategy

How to talk to Native?
│
├─ **Method Channels (Standard)**
│  ├─ Async calls? → **MethodChannel**
│  └─ Streams? → **EventChannel**
│
├─ **FFI (High Performance)**
│  ├─ C/C++ Library? → **dart:ffi**
│  └─ Rust Library? → **Flutter Rust Bridge**
│
└─ **Platform Views (UI)**
   ├─ Native UI inside Flutter? → **AndroidView / UiKitView**
   └─ Performance Critical? → **Hybrid Composition**

Rendering Engine (Impeller vs Skia)

  • Impeller (Default iOS): Predetermined shaders. Zero jank.
  • Skia (Legacy/Android): Runtime shader compilation. Can have jank on first run.
  • Optimization: Use RepaintBoundary to isolate heavy paints (e.g., video players, rotating spinners).

Red Flags → Escalate to mobile-developer (Native):

  • Requirements for App Clips / Instant Apps (Flutter support is limited/heavy)
  • Extremely memory-constrained environments (Flutter engine adds ~10-20MB overhead)
  • OS-level integrations not yet exposed (e.g., brand new iOS beta features)


Workflow 2: Custom Shader (Fragment Program)

Goal: Create a visual effect (e.g., pixelation).

Steps:

  1. Shader Code (shaders/pixelate.frag) #include <flutter/runtime_effect.glsl> uniform vec2 uSize; uniform float uPixels; uniform sampler2D uTexture; out vec4 fragColor; void main() {vec2 uv = FlutterFragCoord().xy / uSize; vec2 pixelatedUV = floor(uv * uPixels) / uPixels; fragColor = texture(uTexture, pixelatedUV);}
  2. Load & Apply // Load asset final program = await FragmentProgram.fromAsset('shaders/pixelate.frag'); // CustomPainter void paint(Canvas canvas, Size size) {final shader = program.fragmentShader(); shader.setFloat(0, size.width); // uSize.x shader.setFloat(1, size.height); // uSize.y shader.setFloat(2, 50.0); // uPixels (50x50 grid) final paint = Paint()..shader = shader; canvas.drawRect(Offset.zero & size, paint);}


4. Patterns & Templates

Pattern 1: Clean Architecture (Layers)

Use case: Scalable enterprise apps.

lib/
  domain/       # Entities, Repository Interfaces (Pure Dart)
    entities/
    repositories/
  data/         # Implementations (API, DB)
    datasources/
    repositories/
    models/     # DTOs
  presentation/ # UI, Controllers (Flutter)
    pages/
    widgets/
    controllers/

Pattern 2: Repository Pattern (Riverpod)

Use case: Decoupling API from UI.

@riverpod
AuthRepository authRepository(AuthRepositoryRef ref) {
  return FirebaseAuthImpl(FirebaseAuth.instance);
}

@riverpod
Future<User> currentUser(CurrentUserRef ref) {
  return ref.watch(authRepositoryProvider).getCurrentUser();
}

Pattern 3: Responsive Layout (Adaptive)

Use case: Supporting Phone, Tablet, and Desktop.

class AdaptiveScaffold extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final width = MediaQuery.of(context).size.width;

    if (width > 900) {
      return Row(children: [NavRail(), Expanded(child: Body())]);
    } else {
      return Scaffold(
        drawer: Drawer(),
        body: Body(),
        bottomNavigationBar: BottomNavBar(),
      );
    }
  }
}


6. Integration Patterns

backend-developer:

  • Handoff: Backend provides Swagger/OpenAPI → Flutter Expert uses openapi_generator to build Dart clients.
  • Collaboration: Handling JWT refresh tokens (interceptors).
  • Tools: Dio Interceptors.

mobile-developer:

  • Handoff: Native dev writes Swift/Kotlin plugin → Flutter Expert wraps it in Method Channel.
  • Collaboration: Debugging platform-specific crashes (Xcode/Android Studio).
  • Tools: Pigeon (Type-safe interop).

ui-designer:

  • Handoff: Designer provides Rive animation (.riv) → Flutter Expert integrates via rive package.
  • Collaboration: Implementing custom Painter for non-standard shapes.
  • Tools: Rive, Flutter Shape Maker.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Claude Code

28.81%
按下载量换算395

OpenCode

25.93%
按下载量换算355

Codex

16.78%
按下载量换算230

Cursor

13.86%
按下载量换算190

Gemini CLI

7.28%
按下载量换算100

windsurf

3.91%
按下载量换算54

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills