openwebf-bridge-module-codegen
使用module-codegen工作流程构建WebF桥接模块/原生插件(*.module.d.ts → codegen → Dart实现 → 注册 → JS使用)。当用户提及module-codegen、桥接模块、原生插件、*.module.d.ts或注册模块时使用。
📖 中文导读:使用module-codegen工作流程构建WebF桥接模块/原生插件(*.module.d.ts → codegen → Dart实现 → 注册 → JS使用)。当用户提及module-codegen、桥接模块、原生插件、*.module.d.ts或注册模块时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: openwebf-bridge-module-codegen description: Build a WebF bridge module/native plugin using the module-codegen workflow (*.module.d.ts → codegen → Dart implementation → registration → JS usage). Use when the user mentions module-codegen, bridge module, native plugin, *.module.d.ts, or registering a module. allowed-tools: Read, Grep, Glob, Bash, Edit, Write, mcp__openwebf__docs_search, mcp__openwebf__docs_get_section, mcp__openwebf__docs_related, mcp__openwebf__templates_get, mcp__openwebf__templates_render
OpenWebF Bridge: Module Codegen Workflow
Instructions
- Confirm the desired API surface and keep it minimal, typed, and versioned.
- Follow the official flow:
- TypeScript
*.module.d.ts webf module-codegen- Dart module implementation
- Registration in the host
- JS usage example
- TypeScript
- Add guardrails: availability checks, permission handling, explicit errors.
- Use MCP docs for authoritative steps and templates for scaffolding.
More: