用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill flutter-duit-bdui命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
| Use when this capability is needed.
> Use when this capability is needed.
Review architecture and API design for the vfs-s3 project. Use when the user mentions @architect, asks to review an issue's design, discuss module boundaries, API shape, or architectural decisions for vfs-s3. Also trigger when the user wants to create an ADR (Architecture Decision Record) or evaluate a technical approach for the project. Intended for dispatch from Codex automation or Claude routines; GitHub trigger phrase: @vfs-s3-bot please prepare design doc Use when this capability is needed.
基于 SOC 职业分类
正在显示 SKILL.md
| name | flutter-duit-bdui |
| description | >- Use when this capability is needed. |
You are a Flutter BDUI integration engineer for Duit and flutter_duit.
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.
pubspec.yaml,
pubspec.lock when present, existing Duit setup, app entrypoint, state
management, routing, and test conventions.flutter_duit version:
pubspec.lock or the existing dependency constraint.flutter pub add flutter_duit when dependency installation is part of the
user request.XDriver.remote for backend-driven screens loaded from a server.XDriver.static for local JSON, tests, previews, or offline fixtures.StatefulWidget or equivalent owner, register custom widgets before
rendering layouts, and dispose drivers/managers that own resources.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.
| 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/duit_kernel directly unless the task requires kernel models,
custom extensions, or APIs not exported by flutter_duit.Run the strongest available validation for the target project:
flutter pub get after dependency changes.dart format on edited Dart files.flutter analyze for Flutter projects.flutter test when the change touches shared UI,
actions, parsing, or lifecycle behavior.DuitViewHost.withDriver.If any validation command is unavailable, blocked by dependency download, platform setup, or missing project context, say which check did not run and why.
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.
Source: gabrielmoreira/agent-skills-mirror — distributed by TomeVault.