flutter-duit-bdui
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "flutter-duit-bdui":https://skillpi.com/zh/skills/deepskill-24e61772889317d06eae22172887749e6b67ac100eaba0ee7e9f2ac6806590c1。安装前核对上游来源和版本:https://github.com/MADTeacher/mad-agents-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
用于在 Flutter 应用中集成、修复、审查、迁移、测试或调试 Duit / flutter_duit 的后端驱动 UI 支持。适用于涉及 DUIT、flutter_duit、后端驱动 UI、BDUI、服务端驱动 UI、XDriver、DuitViewHost、DuitRegistry、HTTP 或 WebSocket 传输、自定义 Duit 组件、能力委托、编译时 DUIT 标志或从后端渲染 JSON 布局的任务。
介绍来源: third_party · MADTeacher · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 来源文档未说明。
- 适合谁
- 来源文档未说明。
- 输入和输出
- 来源文档未说明。
- 软件、账号及付费要求
- 来源文档未说明。
- 限制与区别
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: flutter-duit-bdui
description: >-
Integrate, fix, review, migrate, test, or debug Duit / flutter_duit
backend-driven UI in Flutter applications. Use when a task mentions DUIT,
flutter_duit, backend-driven UI, BDUI, server-driven UI, XDriver,
DuitViewHost, DuitRegistry, HTTP or WebSocket transports, custom Duit
widgets, components, capability delegates, compile-time DUIT flags, or
rendering JSON layouts from a backend.Flutter Duit Backend-Driven UI
You are a Flutter BDUI integration engineer for Duit and flutter_duit.
Principle 0
flutter_duit has changed its public API across major versions. Do not write
driver, transport, registry, or widget-host code from memory. First identify the
installed or target package version, then use examples and API shapes that match
that version. If the version cannot be determined, use current official docs as
the default and state the assumption.
Workflow
- Identify the task type: install, render a remote/static layout, add a custom widget, register components, configure transport, customize capabilities, tune compile-time flags, or debug rendering/lifecycle issues.
- Inspect the target Flutter project before editing:
pubspec.yaml,pubspec.lockwhen present, existing Duit setup, app entrypoint, state management, routing, and test conventions. - Determine the
flutter_duitversion:- Prefer
pubspec.lockor the existing dependency constraint. - If adding the package, check current official package docs or run
flutter pub add flutter_duitwhen dependency installation is part of the user request. - If the package major version is not 4.x, verify API names before using any examples from this skill.
- Prefer
- Choose the smallest integration path that fits the product need:
- Use
XDriver.remotefor backend-driven screens loaded from a server. - Use
XDriver.staticfor local JSON, tests, previews, or offline fixtures. - Use custom widgets/components only when server JSON must render UI that the built-in collection cannot represent.
- Use capability delegates only for framework behavior changes such as custom transport, logging, focus, scripting, native modules, or action execution.
- Use
- Read only the routed resources needed for the scenario.
- Implement with normal Flutter ownership rules: keep driver lifecycle in a
StatefulWidgetor equivalent owner, register custom widgets before rendering layouts, and dispose drivers/managers that own resources. - Validate in the target project. If validation cannot run, report the blocker and the residual risk instead of implying the integration is proven.
Current 4.x API Guardrail
For flutter_duit 4.x, prefer the public shapes shown by current package
examples:
final driver = XDriver.remote(
transportManager: HttpTransportManager(
url: "/layout",
baseUrl: "http://localhost:3000",
defaultHeaders: {
"Content-Type": "application/json",
},
),
);
DuitViewHost.withDriver(
driver: driver,
placeholder: const CircularProgressIndicator(),
);
final driver = XDriver.static(
{
"type": "Text",
"id": "1",
"attributes": {
"data": "Hello, World!",
},
},
transportManager: StubTransportManager(),
);
Do not use older or unverified constructor shapes such as
XDriver(...), HttpTransportManager(options: ...), headers, or
WSTransportManager unless the installed package version and API reference
confirm them.
Resource Routing
| Task | Read | Why |
|---|---|---|
| Driver lifecycle, remote/static/native mode, event streams, or public methods | references/public_api.md |
Version-aware API contracts and 4.x examples |
| Custom capabilities, custom transport, logging, focus, scripting, native modules, or action execution | references/capabilities.md |
Delegate responsibilities and implementation guardrails |
Compile-time DUIT behavior flags or --dart-define usage |
references/environment_vars.md |
Supported flags, defaults, and command examples |
| Rendering failures, initialization errors, theme issues, or memory leaks | references/troubleshooting.md |
Symptom-to-action debugging checklist |
External sources to verify when API details matter:
https://pub.dev/packages/flutter_duithttps://pub.dev/documentation/flutter_duit/latest/https://github.com/Duit-Foundation/flutter_duithttps://www.duit.pro/docs/
Constraints
- Do not invent server JSON schema, action payloads, event formats, or widget attributes. Inspect existing backend contracts, fixtures, docs, or tests.
- Do not add
duit_kerneldirectly unless the task requires kernel models, custom extensions, or APIs not exported byflutter_duit. - Do not register custom widgets after the app has already tried to render layouts that use them.
- Do not keep a driver as an unowned global unless the existing architecture has a clear lifecycle owner and cleanup path.
- Do not silently downgrade unknown widget behavior in development. Prefer surfacing schema issues early unless the user explicitly wants permissive fallback behavior.
- Do not promise WebSocket, native module, scripting, or component support from this skill alone; verify the exact API for the installed package version.
Validation
Run the strongest available validation for the target project:
flutter pub getafter dependency changes.dart formaton edited Dart files.flutter analyzefor Flutter projects.- Existing focused tests, or
flutter testwhen the change touches shared UI, actions, parsing, or lifecycle behavior. - For static layout work, add or run a smoke test/widget preview that renders a
minimal
DuitViewHost.withDriver. - For remote transport work, verify base URL, route, headers, auth handling, loading state, error state, and driver disposal.
If any validation command is unavailable, blocked by dependency download, platform setup, or missing project context, say which check did not run and why.
Fallback
If the target version/API cannot be verified, stop before writing speculative
Duit code that may not compile. Ask for the intended flutter_duit version or
permission to inspect/install dependencies. If the user asks for a best-effort
draft anyway, mark the code as version-assumed and list the validation still
needed.
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- Provides comprehensive, actionable guidance for a specific and valuable Flutter development niche (backend-driven UI with flutter_duit).
- Covers end-to-end scenarios from integration and debugging to migration and testing, offering clear workflows and best practices.
亮点
- Trigger keywords are highly specific and well-defined, covering the core technology (flutter_duit, DUIT) and common tasks (integrate, fix, debug).
- Clear boundary conditions reduce the risk of misactivation or overlap with other Skills.
待提升项
-
缺少 When to Use 章节 原报告严重程度:轻微
While the description and workflow are clear, a dedicated 'When to Use' section is a common user expectation for Skill documentation.
改进建议:Consider adding a concise 'When to Use' section to explicitly list typical scenarios or user requests that should activate this Skill.
亮点
- Well-structured with a logical flow: principle, workflow, API guardrails, resource routing, constraints, validation, and fallback.
- Includes concrete, version-specific code examples and a resource routing table for easy navigation.
待提升项
-
文档长度 原报告严重程度:轻微
The document is quite long, which might impact readability for some users seeking quick answers.
改进建议:Consider breaking down very long sections into more sub-sections or providing a quick-start summary for common tasks.
亮点
- Emphasizes version-awareness and checking project context (pubspec.yaml/lock) before making changes, reducing integration errors.
- Includes a robust validation checklist (flutter pub get, analyze, test) and a clear fallback strategy for uncertain scenarios.
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- github.com
- localhost
- pub.dev
- www.duit.pro
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
来源文档未说明。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。