Index of every page on this site: llms.txt
All skills
madteacher avatar

/flutter-duit-bdui

@2fb67e3
Run it yourself

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.

Use this Skill: https://skilld.dev/gh/madteacher/mad-agents-skills/flutter-duit-bdui

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencescapabilities.md

≈633 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Duit Capabilities

Duit uses capability delegates to customize framework behavior without changing the core driver. Read this reference only when the task requires custom transport, logging, focus behavior, scripting, native modules, controller management, action execution, or view-model behavior.

Available Capabilities

Common delegate responsibilities:

Delegate Purpose
ViewModelCapabilityDelegate View model management, UI events, layout structure parsing
TransportCapabilityDelegate Transport layer (HTTP, WebSocket, static content)
ServerActionExecutionCapabilityDelegate Server action execution and event handling
UIControllerCapabilityDelegate UI element controller management (TextField, Checkbox, etc.)
FocusCapabilityDelegate Focus management and element navigation
ScriptingCapabilityDelegate Embedded script execution
LoggingCapabilityDelegate Logging with support for different levels
NativeModuleCapabilityDelegate Native code interaction via MethodChannel

Creating Custom Implementations

Before implementing a custom capability, check the installed flutter_duit and duit_kernel versions. Delegate signatures can change across major versions.

Minimal shape:

final class MyCustomFocusManager with FocusCapabilityDelegate {
  late final UIDriver _driver;

  @override
  void linkDriver(UIDriver driver) => _driver = driver;

  @override
  void requestFocus(String nodeId) {
    // Custom focus management logic
  }

  @override
  void releaseResources() {
    // Dispose streams, controllers, handles, or listeners owned here.
  }

  // Implement the remaining methods required by the installed package version.
}

Guardrails

  • Implement linkDriver() when the delegate needs driver access.
  • Implement releaseResources() for every delegate that owns subscriptions, streams, controllers, channels, or handles.
  • Keep each capability focused on one responsibility.
  • Route errors through the project's logging strategy or Duit logging delegate.
  • Add focused tests or a smoke path for custom transport/action/focus behavior.
  • Do not replace a built-in delegate just to change one endpoint, header, or UI option if the public API already supports it.

Validation

After implementing a custom capability, run dart format, flutter analyze, and focused tests. If the capability touches transport or event execution, also exercise at least one success path and one failure path.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo5 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill facilitates the integration of a backend-driven UI framework in Flutter. It inherently handles data from external sources and supports embedded scripting, which presents potential surfaces for indirect prompt injection and dynamic execution if the data source is untrusted.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

  • Runlayer9mo

    5/5 files flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 2fb67e3. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Dormantupdated 7 months ago

README badge

README badge for madteacher/mad-agents-skills/flutter-duit-bdui