Grafton View Dev

用 @xgent-ai/grafton 做 schema 驱动 UI 开发的工作流与速查。当需要:(1) 用 JSON schema 写/改一个 grafton view,(2) 写绑定表达式(@store:: / @view:: / @local:: / @action:: / @form::),(3) 写 zustood store(createStore / extendSelectors / extendActions / createApiStore 等)并在 schema 中读写,(4) 写列表模板、条件渲染、双向绑定、表单,(5) 写带 Component.grafton 元数据的自定义 widget,(6) 排查 grafton 渲染报错(hooks 顺序崩溃、bindable 组件点不动、Fragment className、$type 解析失败)时,使用此 Skill。凡是涉及 createView / grafton schema / @store:: 表达式 / grafton widget 的活,都先用它,别凭记忆硬写。注意:配置 grafton-app.json 用 web-app-dev,创建模块脚手架用 web-module-dev。

xgent-ai a98f626 6 files · 61.2 KB Updated

File contents

xgent-ai/skills/tree/main/skills/grafton-view-dev commit a98f626dba

Frequently asked questions

npx skillmds@latest add xgent-ai/grafton-view-dev