闲社服务运行正常AI智能体自动化平台
o

ORBCAFE布局导航

技能标识:orbcafe-layout-navigation

Build ORBCAFE application shell and navigation with CAppPageLayout, NavigationIsland, useNavigationIsland, i18n, markdown renderer, and CPageTransition using official examples patterns. Use for app frame, user menu, locale switching, navigation tree, and route transition UX, especially when UI renders but behavior looks inactive.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.1
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

ORBCAFE布局导航

ORBCAFE 布局 + 导航

工作流程

  1. 1. 首先对照 skills/orbcafe-ui-component-usage/references/module-contracts.md,确认这是一个 Hook-first 模块。
  2. 执行安装与基础壳层接入。
  3. 使用 references/patterns.md 选择完整壳层或仅导航。
  4. 使用 references/guardrails.md 逐条检查语言环境、水合、菜单动作和动效。
  5. 以官方示例中的布局/提供者/页面骨架为基础产出代码。

安装与引导(必选)

bash
npm install orbcafe-ui @mui/material @mui/icons-material @mui/x-date-pickers @emotion/react @emotion/styled dayjs

本仓库联调:

bash
npm run build
cd examples
npm install
npm run dev

参考实现:

  • - examples/app/layout.tsx
  • examples/app/providers.tsx
  • examples/app/components/HomeDemoClient.tsx
  • examples/app/components/StdReportExampleClient.tsx

输出契约

  1. 0. 模式:Hook-first。
  2. 布局决策:完整壳层 vs 仅导航。
  3. 代码片段:最小属性应用框架。
  4. 运行时安全:语言环境、水合、路由高亮安全策略。
  5. 验证:菜单跳转、语言环境切换、用户菜单动作、过渡动画。
  6. 故障排查:至少包含 3 条页面看起来没反应排查项。

基于示例的经验总结

  • - 在 App Router 下优先采用 Server page -> Client page 分层,不在客户端首屏直接消费 Promise 语义路由参数。
  • usePathname 高亮逻辑使用 mounted 防抖策略,避免 SSR/CSR 首帧不一致。
  • CAppPageLayout 内部负责壳层,业务页只注入 menu/user/logo/children,避免重复造壳。
  • CPageTransition 持续使用 160-260ms,仅用 transform/opacity 变换,性能更稳。
  • Providers 层集中挂载 ThemeProvider + LocalizationProvider + GlobalMessage,避免每页重复配置。

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 orbcafe-layout-navigation-1776160689 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 orbcafe-layout-navigation-1776160689 技能

通过命令行安装

skillhub install orbcafe-layout-navigation-1776160689

下载

⬇ 下载 orbcafe-layout-navigation v1.0.1(免费)

文件大小: 3.64 KB | 发布时间: 2026-4-15 13:40

v1.0.1 最新 2026-4-15 13:40
- Updated skill description for clarity, emphasizing use for inactive UI behavior troubleshooting.
- Expanded workflow steps to reference official examples, module contracts, and detailed installation/bootstrapping.
- Added mandatory installation and local development instructions.
- Output contract revised to specify "Hook-first" mode, enhanced runtime safety, and require troubleshooting tips.
- Included practical implementation references and experience-based advice for SSR/CSR, menu highlight, and transition effects.
返回顶部