首页/ AI 技能 / @skilllib/skill-2117939930272410114
Skill站外收录 @skilllib/skill-2117939930272410114

writing-registry-meta

生成符合规范的元数据文件,用于描述 MUI Treasury 组件注册项,包含名称、标题、类型及详细功能说明,确保索引构建后能准确反映组件特征与用途。

0.0 (0) 17 次安装 原作者 编程导航
收录于 2026-01-22
软件开发 AI 技能

Skills.MD

- The meta file must be in JSON format. - The meta file must be located in the same directory as the registry file. - The meta file must have the same name as the registry file, but with a .meta.json extension. - The meta file must contain the following fields: - `name`: The registry name in kebab-case, same as file name without extension. - `title`: The name of the registry usually the same as the component name in Pascal case. - `type`: always `"registry:item"`. - `description`: IMPORTANT! Describe the registry in detail to help LLM understand what the interface looks like and its purpose. Start with "Integrated [library name]" if using third-party libraries (e.g., Base UI). Focus on visible features (buttons, labels, states) and accessibility. DO NOT list individual Material UI components. - `meta`: Additional metadata about the registry - `category`: one of "primitive", "ai" - `previewClassName`: The extra class name to add to the preview container. IMPORTANT! after writing/updating a meta file, run `pnpm registry:build` to populate the registry index.

评论 0

还没有评论,来抢沙发。