iter(g155): llms.txt 补配方目录
速览末尾输出 9 条配方的 id / 标题 / 要点数与三种取法,Agent 不必先猜。 顺带修正 cli 清单里只写了 3 个 MCP 工具的过期描述。
This commit is contained in:
@@ -134,8 +134,22 @@
|
||||
- ua style:注释规范门禁(导出必须 /*** ***/、接口字段行尾注释、行注释中文),违规退出码 1
|
||||
- ua verify:清单一致性门禁(id 唯一 / exports 对应 / props 必带 n t d / steps≥3 / demo 锚点存在)
|
||||
- ua commit-lint <文件|message>:提交信息门禁(type 枚举 / scope 规则 / subject 中文祈使 ≤50 字符),规范见 COMMITTING.md,违规退出码 1
|
||||
- ua mcp:零依赖 stdio MCP server,暴露 list_components / get_component / search_components
|
||||
- ua mcp:零依赖 stdio MCP server,暴露 list_components / get_component / search_components / get_tokens / list_recipes / get_recipe
|
||||
- 用法: `node packages/tools/cli/bin/ua.js <index|list|info <包名|组件id>|docs|tokens|style|verify|commit-lint|mcp>;仓库内等价于 npm run index / docs / style / verify`
|
||||
- 约定: 零依赖:只用 node 标准库,Node >= 18
|
||||
- 约定: 清单是单一来源:代码注释、文档站、llms-full.txt、MCP 全部从 ua.manifest.json 派生
|
||||
- 约定: 门禁只增不改:新增校验必须能被人手复现,报错要指出文件与字段
|
||||
|
||||
## 组合配方(跨组件拼装)
|
||||
|
||||
> 全文见 `packages/tools/cli/recipes.md` 或 llms-full.txt;MCP 用 `list_recipes` / `get_recipe` 取骨架与要点。
|
||||
|
||||
- 配方 1:表单校验 + 提交反馈(2 条要点)
|
||||
- 配方 2:危险操作二次确认(2 条要点)
|
||||
- 配方 3:表格筛选 + 分页 + 批量操作(3 条要点)
|
||||
- 配方 4:长列表数据加载与空态(2 条要点)
|
||||
- 配方 5:数据表 + 独立分页器 + 导出(4 条要点)
|
||||
- 配方 6:长表单编辑页(吸底操作条 + 提交锁定)(4 条要点)
|
||||
- 配方 7:筛选栏(层级归属 + 日期区间)(3 条要点)
|
||||
- 配方 8:评论输入(@ 提及 + 参与人头像组)(3 条要点)
|
||||
- 配方 9:详情页排版(栅格 + 排版文本 + 描述列表)(3 条要点)
|
||||
|
||||
Reference in New Issue
Block a user