返回 Skill 列表
extension
分类: 开发与工程无需 API Key

openwebf-bridge-module-codegen

使用module-codegen工作流(*.module.d.ts → 代码生成 → Dart实现 → 注册 → JS使用)构建WebF桥接模块/原生插件。当用户提到module-codegen、桥接模块、原生插件、*.module.d.ts或注册模块时使用。

person作者: jakexiaohubgithub

OpenWebF Bridge: Module Codegen Workflow

Instructions

  1. Confirm the desired API surface and keep it minimal, typed, and versioned.
  2. Follow the official flow:
    • TypeScript *.module.d.ts
    • webf module-codegen
    • Dart module implementation
    • Registration in the host
    • JS usage example
  3. Add guardrails: availability checks, permission handling, explicit errors.
  4. Use MCP docs for authoritative steps and templates for scaffolding.

More: