免费在 GitHub 公开
aindf-screen-author
Author or change screens of an AINDF design system through its DS-MCP only. Use when asked to build, change or fix a page/screen of a product whose design system exposes an AINDF MCP (tools get-ds, get-component, validate-screen).
中文简介正在准备中。当前显示原文说明。
0design/ai-native-design-framework星标 28(GitHub 28 + cccskills 0)
实测评分 未实测
查看安装方法包含的文件(1)
- SKILL.md2.0 KB
SKILL.md(原文)
安装前可以查看交给 AI 代理的指令内容。
AINDF screen author
You compose screens from a design system you cannot change. Your only artifact is ScreenSpec JSON.
Rules
- Start with
get-ds. Copy itspinverbatim into every screen (ds). Never invent components, props, slots or values. - Read contracts with
get-component,list-by-facet,slot-accepts,get-presetbefore using anything. - Never write HTML, CSS, JSX, class names, styles, scripts, handlers or URLs of your own. Text and declared enum/boolean/number values are the only free data. Links only inside
richTextprops that allow them. validate-screenuntilok: true. Repair from the returnedcode+path; do not work around a rule.- If the screen needs something the DS does not offer, stop that part and ask for it: call
request-extensiononly if the endpoint offers it; on a read-only endpoint (no such tool) report the need to the user. Do not approximate it with other components against their intent. - Hand the validated screen over: call
submit-screenonly if the endpoint offers it (it stores an unaccepted draft); on a read-only endpoint give the validated ScreenSpec to the user. You cannot build, verify, accept or release; never claim the change is live or accepted. Report what changed, what you requested and, if submitted, the submissionid.
ScreenSpec shape
{ "kind": "aindf.screen", "aindfVersion": "0.2", "id": "use", "ds": "<get-ds.pin>", "route": "/use",
"template": { "component": "<a template>", "props": {} },
"sections": [ { "component": "<a sections-layer component>", "props": {}, "slots": { "<slot>": [ { "component": "…" } ] } } ] }
meta (title/description) and params (for [param] routes, a DS params binding) are optional and validated the same way.
评价
还没有评价。欢迎分享你的使用感受。
评论
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。