This skill may not reflect the latest upstream change
Next.js Releases update on 2026-11-09 may affect this skill Last checked Nov 25, 2026.
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.
Install this skill
No account required. Pick your tool, or use the command that detects it for you.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install flutter-dart-skills-flutter-duit-bduiManual setup by platform
Claude Code
~/.claude/skills/flutter-dart-skills-flutter-duit-bdui/SKILL.md
Signing
SignedSLSA L2- Signed by
- skills-hub.ai distributor
- Method
- Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
- Key
- skills-hub-ed25519-2026-11
- Signed
Instructions
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
minimalDuitViewHost.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.
Security
Reviews (0)
Related skills
Browse all →More from Flutter/Dart Skills
View source →More Build skills
Browse category →Frequently asked questions about flutter-duit-bdui
What does the flutter-duit-bdui skill do?
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. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the flutter-duit-bdui skill?
Run `npx @skills-hub-ai/cli install flutter-dart-skills-flutter-duit-bdui` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/flutter-dart-skills-flutter-duit-bdui/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does flutter-duit-bdui work with?
flutter-duit-bdui runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the flutter-duit-bdui skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use flutter-duit-bdui after installing it?
In Claude Code, type `/flutter-dart-skills-flutter-duit-bdui` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the flutter-duit-bdui skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.