🧪 Skills
orbcafe-ui-component-usage
Route ORBCAFE UI requests to the correct module skill and enforce official examples-based integration baseline. Use when requests are ambiguous, cross-module...
v1.0.1
Description
name: orbcafe-ui-component-usage description: Route ORBCAFE UI requests to the correct module skill and enforce official examples-based integration baseline. Use when requests are ambiguous, cross-module, or when prior attempts had "no effect"; classify to StdReport, Graph+Detail+Agent, Layout+Navigation, or Pivot+AINav and require install/startup/verification steps.
ORBCAFE UI Router
Workflow
- 执行安装与接入基线(必须)。
- 使用
references/skill-routing-map.md判定目标模块 skill。 - 只加载目标模块所需 references,不加载无关内容。
- 使用
references/public-export-index.md约束导入边界。 - 使用
references/integration-baseline.md执行 Next.js 与 hydration 检查。 - 输出模块决策、最小可运行代码、验收步骤、排障步骤。
Installation Baseline (Mandatory)
每次都先给出可执行安装方式,不允许省略:
npm install orbcafe-ui @mui/material @mui/icons-material @mui/x-date-pickers @emotion/react @emotion/styled dayjs
如果是本仓库联调(以 examples 为准):
# repo root
npm run build
# examples app
cd examples
npm install
npm run dev
Tailwind 项目必须包含:
// tailwind.config.js
content: ["./node_modules/orbcafe-ui/dist/**/*.{js,mjs}"]
Output Contract
Always provide:
Decision: 选择哪个模块 skill,并说明依据。Paste-ready code: 仅从orbcafe-ui入口导入。Data shape: 最小必需字段结构。Verify: 至少 3 条可执行验收步骤(启动、交互、持久化/回调)。Troubleshooting: 至少 3 条“没效果”排查点。
Examples-First Rules
- 先复用官方 examples 的骨架,再做业务改造。
- 优先参考:
examples/README.mdexamples/app/layout.tsxexamples/app/providers.tsxexamples/app/_components/*.tsx
- 强制遵守 Next.js App Router 经验:
- 在 Server Page 解包
params/searchParams后再传入 Client 组件。 - 首屏避免
Date.now()/Math.random()/window/localStorage/usePathname直接决定结构。 - 必要时使用
mounted防止 hydration mismatch。
- 在 Server Page 解包
Reviews (0)
Sign in to write a review.
No reviews yet. Be the first to review!
Comments (0)
No comments yet. Be the first to share your thoughts!