flutter-duit-bdui
БесплатноБез исполняемых скриптовНе проверенIntegrate, fix, review, migrate, test, or debug Duit / flutter_duit backend-driven UI in Flutter applications. Use when a task mentions DUIT, flutter_duit…
от MADTeacher★ 114 звёзд на GitHubОб этом скилле
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 ge
Установить flutter-duit-bdui в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл flutter-duit-bdui?
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-bdui?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл flutter-duit-bdui запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic