AgentSkillsCN

openwebf-host-hybrid-routing

使用WebFSubView和go_router实现Flutter与WebF之间的混合路由(路由映射和布局)。当用户提到WebFSubView、go_router、混合路由或将Flutter路由映射到WebF路由时使用。

SKILL.md
--- frontmatter
name: openwebf-host-hybrid-routing
description: Implement hybrid routing between Flutter and WebF using WebFSubView and go_router (route mapping and layouts). Use when the user mentions WebFSubView, go_router, hybrid routing, or mapping Flutter routes to WebF routes.
allowed-tools: Read, Grep, Glob, Bash, Edit, Write, mcp__openwebf__project_profile, mcp__openwebf__docs_search, mcp__openwebf__docs_get_section, mcp__openwebf__templates_get, mcp__openwebf__templates_render

OpenWebF Host: Hybrid Routing (WebFSubView + go_router)

Instructions

  1. Detect whether the project uses go_router and whether WebFSubView exists (via project profile and code search).
  2. Define the desired route mapping (Flutter path → WebF path) and layout responsibilities.
  3. Use MCP docs for recommended patterns and constraints.
  4. Offer the routing scaffold template when appropriate (routing/go-router-webfsubview).

More: