archview-ai avatar

openwebf-bridge-module-codegen

Build a WebF bridge module/native plugin using the module-codegen workflow (*.module.d.ts → codegen

提供方 archview-ai|开源

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:

openwebf-bridge-module-codegen - 适用于 Claude Code 与 Cursor 的 AI 智能体 Skill | Agent Skills