← 返回
开发者工具

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...
将ORBCAFE UI请求路由至正确的模块技能,并强制执行基于官方示例的集成基线。用于请求不明确或跨模块的场景。
shenruiyang
开发者工具 clawhub v1.0.2 3 版本 100000 Key: 无需
★ 0
Stars
📥 566
下载
💾 6
安装
3
版本
#latest

概述

ORBCAFE UI Router

Workflow

  1. 执行安装与接入基线(必须)。
  2. 使用 references/skill-routing-map.md 判定目标模块 skill。
  3. 使用 references/module-contracts.md 先确认目标模块的公共入口、hook 策略、标准 example 与验证方式。
  4. 只加载目标模块所需 references,不加载无关内容。
  5. 使用 references/public-export-index.md 约束导入边界。
  6. 使用 references/integration-baseline.md 执行 Next.js 与 hydration 检查。
  7. 输出模块决策、最小可运行代码、验收步骤、排障步骤。

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:

  1. Decision: 选择哪个模块 skill,并说明依据。
  2. Paste-ready code: 仅从 orbcafe-ui 入口导入。
  3. Data shape: 最小必需字段结构。
  4. Verify: 至少 3 条可执行验收步骤(启动、交互、持久化/回调)。
  5. Troubleshooting: 至少 3 条“没效果”排查点。

Before writing code, explicitly state one of:

  • Hook-first: 该模块以公开 hook 为主入口。
  • Component-first: 该模块以公开组件 + callbacks 为主入口。

Examples-First Rules

  • 先复用官方 examples 的骨架,再做业务改造。
  • 优先参考:
  • examples/README.md
  • examples/app/layout.tsx
  • examples/app/providers.tsx
  • examples/app/_components/*.tsx
  • 强制遵守 Next.js App Router 经验:
  • 在 Server Page 解包 params/searchParams 后再传入 Client 组件。
  • 首屏避免 Date.now()/Math.random()/window/localStorage/usePathname 直接决定结构。
  • 必要时使用 mounted 防止 hydration mismatch。

版本历史

共 3 个版本

  • v1.0.2 当前
    2026-03-29 19:44 安全 安全
  • v1.0.0
    2026-03-26 22:25
  • v1.0.1
    2026-03-14 02:18

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 66 📥 179,966
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,759
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 323,934