skills/oceanbase-design-usage/SKILL.md
--- name: oceanbase-design-usage description: Guide for using OceanBase Design (OBUI) packages—design, ui, icons, charts, util—correctly. Use when developing or modifying components in this repo, adding new components, reviewing code for consistency, or migrating from antd/obui/techui to oceanbase-design. Covers import conventions, theme/style patterns, code standards, and @oceanbase/codemod for automated migration. Trigger terms: OceanBase Design, OBUI, oceanbase design, @oceanbase/design, Tabl
npx skillsauth add oceanbase/oceanbase-design skills/oceanbase-design-usageInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
OceanBase Design,包含 design、ui、icons、charts、util 等多个库。本 Skill 指导正确使用 @oceanbase/design、@oceanbase/ui、@oceanbase/icons、@oceanbase/util、@oceanbase/charts(适用于 oceanbase-design 仓库及引用上述包的业务项目);并说明使用 @oceanbase/codemod 进行自动化迁移与升级。遵循推荐用法可减少差异、提升样式一致性和代码规范性。
@oceanbase/icons、@oceanbase/util;被 ui/charts 等消费。@oceanbase/design、@oceanbase/icons、@oceanbase/util。@oceanbase/util;与 design 主题联动时需配合 ChartProvider。应用入口应使用 ConfigProvider(来自 design)包裹,需要图表主题时在内部使用 ChartProvider(来自 charts)。存量项目迁移时可使用 codemod 自动转换后再按本 skill 规范核对。
| 需求 | 推荐包 | 说明 | | --- | --- | --- | | 基础组件、表格、筛选、表单、空状态、结果页、主题 | @oceanbase/design | 表格用 Table、筛选用 Filter;根节点用 ConfigProvider | | 页面布局、ProTable、LightFilter、Action、DateRanger 等业务组件 | @oceanbase/ui | 根节点已包 design ConfigProvider 即可 | | 图标 | @oceanbase/icons | 与 design/ui 组件搭配,不混用 @ant-design/icons | | 格式化、hooks、通用工具 | @oceanbase/util | format、useLocalStorageState、useQuery 等 | | 图表 | @oceanbase/charts | 需 ChartProvider 与 design 主题联动 | | 迁移/升级(antd、obui、techui、Less/Sass 等) | @oceanbase/codemod | 自动化迁移到 design/ui/util/charts;见 references/codemod.md |
ConfigProvider 包裹;使用 message/notification/Modal 静态方法或图表时,必须已在 ConfigProvider/ChartProvider 子树内。@oceanbase/design 引入;图标从 @oceanbase/icons 引入,不要从 @ant-design/icons 引入。bodyStyle={{ padding: 0 }} 时,Table 必须设 innerBordered,否则边框错乱。@oceanbase/codemod,再按本 skill 做人工核对。@oceanbase/design 引入组件、ConfigProvider、theme(含 useToken);业务侧写样式时用 useToken() 的 obToken 或 CSS 变量 var(--ob-*);主题配置见 references/design/01-theme-and-token.md。@oceanbase/icons 按名引入(如 CloseOutlined、FilterOutlined),与 design 组件搭配使用。@oceanbase/ui 引入 ProTable、PageContainer 等业务组件;其内部已依赖 design,业务代码无需重复包裹 ConfigProvider(根节点已包裹即可)。@oceanbase/util 引入 format、hooks 等;图表从 @oceanbase/charts 引入,并确保根节点已用 ChartProvider 提供主题。@oceanbase/codemod@^1.0.0-alpha.0。在修改或新增组件、做 Code Review、统一样式与导入方式时,按需查阅上述 reference 以保持与 design 及各包使用规范一致。存量项目迁移时先运行 codemod,再按 design 与各包规范做人工核对。本 skill 的 reference 位于 references/;design 细则入口为 references/design/README.md;关键约束一句话汇编见 references/ASSEMBLY.md。高价值约定(ConfigProvider 必包、图标来源、Card+Table innerBordered、Filter 受控)已融入各相关 reference。
使用本 Skill 生成或修改代码时:请遵循对应 reference 中的约束与示例;若未遵循某条约定(如 Card+Table 未设 innerBordered),请在注释或 PR 中简要说明原因;迁移场景请注明是否已用或拟用 codemod。高价值约定已融入 00-overview、icons、09-combo、08-filter 等 reference。
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.
development
End-to-end Parallels smoke, upgrade, and rerun workflow for OpenClaw across macOS, Windows, and Linux guests. Use when Codex needs to run, rerun, debug, or interpret VM-based install, onboarding, gateway smoke tests, latest-release-to-main upgrade checks, fresh snapshot retests, or optional Discord roundtrip verification under Parallels.