Admin Template Project Initializer
southliu/south-admin-react
Removes the south-admin-react template's demo pages, components and menu entries, after a dry-run preview and your confirmation, and cleans up the matching imports.
Build UI with the LobeHub design system — @lobehub/ui/base-ui, the controlled form at @lobehub/ui/base-ui/form, and the chat, mobile, dashboard, awesome, brand, mdx, and i18n namespaces, plus…
$ npx skills add lobehub/lobe-ui --skill lobe-design -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install lobehub/lobe-ui lobe-design --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/lobehub/lobe-ui.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/lobe-design .claude/skills/lobe-design && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "lobe-design" agent skill from https://github.com/lobehub/lobe-ui/tree/master/.agents/skills/lobe-design into .claude/skills/lobe-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "lobe-design", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/lobehub/lobe-ui/tree/master/.agents/skills/lobe-designType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add lobehub/lobe-ui --skill lobe-design -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install lobehub/lobe-ui lobe-design --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lobehub/lobe-ui.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/lobe-design .agents/skills/lobe-design && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "lobe-design" agent skill from https://github.com/lobehub/lobe-ui/tree/master/.agents/skills/lobe-design into .agents/skills/lobe-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "lobe-design", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add lobehub/lobe-ui --skill lobe-design -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install lobehub/lobe-ui lobe-design --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lobehub/lobe-ui.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/lobe-design .cursor/skills/lobe-design && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "lobe-design" agent skill from https://github.com/lobehub/lobe-ui/tree/master/.agents/skills/lobe-design into .cursor/skills/lobe-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "lobe-design", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/lobehub/lobe-ui.git --path .agents/skills/lobe-design--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add lobehub/lobe-ui --skill lobe-design -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install lobehub/lobe-ui lobe-design --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lobehub/lobe-ui.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/lobe-design .gemini/skills/lobe-design && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "lobe-design" agent skill from https://github.com/lobehub/lobe-ui/tree/master/.agents/skills/lobe-design into .gemini/skills/lobe-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "lobe-design", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install lobehub/lobe-ui lobe-designInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add lobehub/lobe-ui --skill lobe-design -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/lobehub/lobe-ui.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/lobe-design .github/skills/lobe-design && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "lobe-design" agent skill from https://github.com/lobehub/lobe-ui/tree/master/.agents/skills/lobe-design into .github/skills/lobe-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "lobe-design", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add lobehub/lobe-ui --skill lobe-design -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install lobehub/lobe-ui lobe-design --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lobehub/lobe-ui.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/lobe-design .opencode/skills/lobe-design && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "lobe-design" agent skill from https://github.com/lobehub/lobe-ui/tree/master/.agents/skills/lobe-design into .opencode/skills/lobe-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "lobe-design", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
lobe-designBuild UI with the LobeHub design system — @lobehub/ui/base-ui, the controlled form at @lobehub/ui/base-ui/form, and the chat, mobile, dashboard, awesome, brand, mdx, and i18n namespaces, plus…
Lobe Design is an agent skill from lobehub/lobe-ui. Build UI with the LobeHub design system — @lobehub/ui/base-ui, the controlled form at @lobehub/ui/base-ui/form, and the chat, mobile, dashboard, awesome, brand, mdx, and i18n namespaces, plus @lobehub/icons, @lobehub/charts, @lobehub/fluent-emoji and @lobehub/streamdown. Covers provider setup, component selection, cssVar tokens, craft rules against AI-generated blandness, and a six-dimension acceptance check. Trigger on lobe-design, lobe-ui, lobehub, LobeChat UI, AIGC app UI, dashboard, console, build a page /…
Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `references/components.md`, `references/craft.md` and `references/design.md`).
It sits in Frontend & Design, covering Design systems, Internationalization and Markdown. It works with Ant Design, React and TypeScript. The repository describes itself as: 🍭 Lobe UI - an open-source UI component library for building AIGC web apps. The licence is MIT.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 1f4ac3a. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Lobe Design loads about 2.2k tokens when it runs, and up to ~22k if it reads all its reference files. Until then it costs about 159 tokens; SKILL.md has 380 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from lobehub/lobe-ui at commit 1f4ac3a, republished under its MIT licence (© lobehub). 380 words, ~2,219 tokens.
.claude/skills/lobe-design/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.这份 skill 让「用 lobe-ui 写界面」从碰运气变成可控:把组件语义、视觉取值、工艺标准和验收机制显式化,在生成的每一步介入,而不是在最后靠一条 prompt 补救。
模型见过的界面远多于任何设计师,问题不是能力不够,而是需求含糊时它会收敛到训练数据里最高频、最稳妥的那一类结果——统一无衬线字体、紫蓝渐变、四平八稳的等大卡片。通用、安全,而这正是平庸的根源。下面每一步都在对抗这个倾向。
| 关注 | 归属 |
|---|---|
| 这个界面该是什么、为什么 | 上游的产品设计判断,不在本 skill 范围 |
| 用哪个组件、取哪个 token、算不算合格 | 本 skill |
| 营销落地页的楼层怎么排 | building-landing-home |
| 浏览器里真实跑起来的证据 | 本仓库的 local-testing skill |
不要每次都把六份文件全读一遍。先定这次要交付什么:
| 模式 | 终点 | 需要读 |
|---|---|---|
| 选组件 | 回答「这个信息该用哪个组件」 | 硬性前提 + components.md |
| 取值 | 写出一段符合系统的 style.ts | 硬性前提 + design.md |
| 建界面 | 一个完整页面或组件,含非理想状态 | 全流程五步 + 全部 references |
| 审查 | 判断已有界面能不能放行 | evaluator.md + 被命中的规则 |
窄问题只读相关那一份,并说明检查范围。
一、新代码从 @lobehub/ui/base-ui 进,表单单独从 @lobehub/ui/base-ui/form 进。 顶层同名组件是 antd 包装层,已被 @lobehub/ui/eslint 标成 deprecated。antd 里已有 base-ui 对应实现的组件同样禁掉,包括 Table、Badge、Progress、Spin、Result、Empty、Card、Typography。Form 不要从 @lobehub/ui 或 base-ui 桶导入——桶里那份是即将删除的非受控实现。完整清单见 components.md 的 C-01。
二、样式只写 createStaticStyles + cssVar。 createStyles 已被 eslint 禁用。组件的 style.ts 一律这个写法:
import { createStaticStyles } from 'antd-style';
export const styles = createStaticStyles(({ css, cssVar, responsive }) => ({
root: css`
border-block-end: 1px solid ${cssVar.colorBorderSecondary};
border-radius: ${cssVar.borderRadiusLG};
${responsive.sm} {
padding-inline: 12px;
}
`,
}));用 cssVar 写的样式天然支持暗色模式,不需要任何分支。
三、Provider 顺序不能颠倒,motion 必须显式传入。
import { ConfigProvider, ThemeProvider } from '@lobehub/ui';
import { zhCn } from '@lobehub/ui/i18n';
import { motion } from 'motion/react';
<ConfigProvider locale="zh-CN" motion={motion} resources={zhCn}>
<ThemeProvider>
<App />
</ThemeProvider>
</ConfigProvider>;ConfigProvider 必须在外层:ThemeProvider 渲染 antd 的 App(承载静态 notification / modal 持有者)并读取 CDN 配置加载 webfont,两者都依赖上方的 context。
三个容易踩的点:
motion 是必填的。不传会让任何用到动画的组件在 useMotionComponent() 处直接抛错。用 LazyMotion 的应用传 m 而不是 motion。resources 提供,可选 en 或 zhCn。不要再套一层 I18nProvider——它本身就是 ConfigProvider 的转发(同样要求 motion),嵌套等于装了两个 provider。ConfigProvider 会为整个文档安装全局键盘焦点环,包括原生控件和 provider 子树之外的控件。所以正常情况下不需要自己写焦点样式,也绝不能用 outline: none 抹掉它。不要一上手就画界面。每一步以上一步的产出为前提,上游偏差会沿链路放大,所以约束要尽早进入、每步都检查。
在写任何 JSX 之前,把需求展开成六层。写不出来的部分就是需要向用户确认的部分。
L1 定位与意图 一句话定义 · 目标用户 · 场景清单 · 非目标 · 行为边界
L2 信息架构 空间区域 · 区域边界规则 · 内容生长规则
L3 核心链路 状态清单 · 主链路 · 分支链路
L4 组件功能 组件定位 · 功能清单 · 默认/悬停/加载/禁用/错误各态
L5 边界条件 空态 · 加载态 · 错误态 · 权限降级
L6 验收标准 Given/When/Then · 完成的定义最容易被跳过的是 L5 和 L6。模型倾向于优先完成主流程和成功态,因为那最像一张完整截图;但真实产品里用户更常遇到加载中、无数据、无权限、失败后重试。L5 没写,页面就会在关键时刻失去可操作性。
同时定视觉方向。如果不定,模型会先用默认视觉补位,再把这些默认选择带进后面的结构和组件里。
先判断这是哪类页面,再选骨架,不要从空白页拼组件:
| 场景 | 起点 |
|---|---|
| 文档 / 应用页面外壳 | Layout + LayoutHeader / LayoutSidebar / LayoutMain / LayoutToc / LayoutFooter |
| 产品控制台 | @lobehub/ui/dashboard:ConsoleShell + ConsoleNav + PageHeader + Surface。指标、筛选、登录框见 C-07 |
| 对话界面 | ChatHeader → ChatList → ChatInputArea(组合顺序见 C-04) |
| 移动端外壳 | @lobehub/ui/mobile 的 ChatHeader / ChatInputArea / TabBar / SafeArea |
| 固定窄导航栏 | SideNav;需要可拖拽伸缩用 DraggableSideNav |
| 可伸缩侧栏 / 浮动面板 | base-ui 的 DraggablePanel |
| 营销落地页 | building-landing-home skill。组件在 @lobehub/ui/awesome,不要在这里现拼 Hero |
骨架决定主区、侧栏、操作区、状态区的关系。这一步错了整个页面都偏——一个列表页被做成卡片墙、一个批量任务页没有批量操作区,后面怎么改组件都救不回来。
顺带定密度:落地页和控制台不能用同一种密度(见 craft.md 的 K-09)。
不是把槽位填满。「运行中」「高危」「ECS」「生产环境」都是短文本,但责任不同:一个是状态、一个是风险、一个是资源类型、一个是业务分类。全做成同一种标签,视觉上整齐,语义被抹平,用户的判断会变慢。
先判断这段信息表达状态、分类、动作、容器还是导航关系,再选组件。详见 components.md ——按需求查的决策表、易混组件的真实差别、以及这个库里没有的组件该去哪里拿。
主流程能跑只说明能展示成功结果。这一步处理非理想状态和视觉工艺:
不要自己说「差不多可以了」。按六个维度逐项对照,命中阻断项就回流。见 evaluator.md。
浏览器证据不可省略:DOM 里存在不等于用户看得到。本仓库的 local-testing skill 定义了完整的验证流程。
发现问题时不要在最外层改 prompt 然后等下一次结果。按下表定位到环节和规则编号:
| 症状 | 回到哪一步 | 规则 |
|---|---|---|
| 空态 / 加载 / 错误 / 权限态缺失 | 规划的 L5 | craft.md K-05 |
| 页面结构像卡片墙,不像看板 | 搭骨架 | 本文第 2 步 + K-09 |
| 组件外观像但语义用错 | 填充 | components.md C-03 |
| 用了已废弃的顶层组件或 antd 对应件 | 填充 | components.md C-01 |
| 表单从错误入口导入,或 schema 写在渲染里 | 填充 | components.md C-02 |
| 裸 hex、裸 rgba | 细化的视觉取值 | design.md D-01 / D-10 |
| 状态色是新造的 | 细化的视觉取值 | design.md D-03 |
| 一眼是 AI 模板 | 细化的工艺 | craft.md K-01 |
| 落地页效果被搬进控制台 | 填充 | components.md C-06 |
| 图表颜色与主题脱节 | 填充的生态选型 | ecosystem.md E-02 |
| 说不清哪里不对 | 评估 | evaluator.md |
antd 导入已有 base-ui 实现的组件(Button、Table、Select、Modal、Badge、Spin、Empty、Card、Typography 等),或用 antd 的 message / notification 而不是 base-ui 的 toast。@lobehub/ui 或 @lobehub/ui/base-ui 桶导入 Form。受控表单只从 @lobehub/ui/base-ui/form 导入。base-ui 之间二选一。顶层的同名组件大多是 deprecated 的 antd 包装层。Icon 的 spin、或引入 thinking-orbs。等待指示按 components.md C-02 的分档选 Spin / Skeleton / LoadingDots。cssVar 的地方写死值。找不到对应 token 时明示缺口(design.md 的 D-11),不要悄悄写一个 hex 绕过系统。lint / type-check / 单测通过当成验收项。它们是前置条件,不是交付证据。按运行模式加载,不要一次全读:
| 需要 | 文件 |
|---|---|
| 组件选择决策表、易混组件对照、对话界面组合 | components.md C- |
| token 取值、状态色派生、暗色模式、执行约束 | design.md D- |
| 工艺规则、AI Slop 反模式、可访问性、编码陷阱 | craft.md K- |
| 图表 / 模型徽标 / emoji / 流式 markdown 的 API | ecosystem.md E- |
| 六维度评分、阻断项、证据要求、放行策略 | evaluator.md |
© lobehub, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 5 other files (references) in .agents/skills/lobe-design of lobehub/lobe-ui.
Open the folder on GitHubat commit 1f4ac3a
Lobe Design next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Lobe Design this skilllobehub/lobe-ui | 2.2k | — | ~2.2k | Automated safety check: Pass | MIT | |
| Admin Template Project Initializersouthliu/south-admin-react | 580 | — | ~519 | Automated safety check: Pass | MIT | |
| Ss Learnbitjaru/styleseed | 973 | — | ~1.3k | Automated safety check: Pass | MIT | |
| Animated React Component LibrariesHainrixz/editor-pro-max | 264 | 1 repos | ~5.7k | Automated safety check: Pass | Custom licence | |
| Fast Typescript Checkinternet-development/www-sacred | 1.6k | — | ~4.3k | Automated safety check: Pass | MIT | |
| Instui Docsinstructure/instructure-ui | 482 | — | ~498 | Automated safety check: Pass | Custom licence |
southliu/south-admin-react
Removes the south-admin-react template's demo pages, components and menu entries, after a dry-run preview and your confirmation, and cleans up the matching imports.
bitjaru/styleseed
Capture a human-approved UI design lesson as a privacy-minimized local StyleSeed candidate, review it, and prepare an opt-in share package without transmitting project code, prompts, screenshots, or…
Hainrixz/editor-pro-max
Helps choose and drop in animated React components from Magic UI and React Bits for landing pages, marketing sites and dashboards, instead of hand-coding animations.
internet-development/www-sacred
Keep www-sacred's TypeScript fast to type-check and fast to run.
instructure/instructure-ui
Look up authoritative Instructure UI (InstUI, @instructure/ui-) documentation — component APIs, props, theme variables, usage examples, and guides — by querying instructure.design's plaintext docs.
pdsuwwz/nextjs-nextra-starter
Distill and apply this repository's Next.js Nextra starter architecture, implemented features, extension points, and migration patterns.
lobehub/lobe-ui
Local browser verification for the lobe-ui component library and documentation site.
lobehub/lobe-ui
Set up and author a documentation site with @lobehub/docs-kit (the lobedocs CLI, React Router + Vite static docs used by ui.lobehub.com).
Works with
Categories
Build UI with the LobeHub design system — @lobehub/ui/base-ui, the controlled form at @lobehub/ui/base-ui/form, and the chat, mobile, dashboard, awesome, brand, mdx, and i18n namespaces, plus…. Lobe Design is an agent skill from lobehub/lobe-ui. Build UI with the LobeHub design system — @lobehub/ui/base-ui, the controlled form at @lobehub/ui/base-ui/form, and the chat, mobile, dashboard, awesome, brand, mdx, and i18n namespaces, plus @lobehub/icons, @lobehub/charts, @lobehub/fluent-emoji and @lobehub/streamdown.
Lobe Design fits situations like: build a page / component / chat interface with lobe-ui; pick a lobe-ui component.
Run `npx skills add lobehub/lobe-ui --skill lobe-design -a claude-code`. Or copy the skill folder (.agents/skills/lobe-design in lobehub/lobe-ui) into .claude/skills/lobe-design in your project. Claude Code loads it when a task matches its description.
Run `npx skills add lobehub/lobe-ui --skill lobe-design -a codex`. Or copy the skill folder (.agents/skills/lobe-design in lobehub/lobe-ui) into .agents/skills/lobe-design in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add lobehub/lobe-ui --skill lobe-design -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/lobe-design, .gemini/skills/lobe-design, .github/skills/lobe-design and .opencode/skills/lobe-design in your project.
SKILL.md names no scripts, command-line tools or credentials: Lobe Design is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Lobe Design is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.2k tokens (SKILL.md is roughly 8.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 19k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Lobe Design: Admin Template Project Initializer (southliu/south-admin-react, 580 stars), Ss Learn (bitjaru/styleseed, 973 stars), Animated React Component Libraries (Hainrixz/editor-pro-max, 264 stars) and Fast Typescript Check (internet-development/www-sacred, 1.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
lobehub (a GitHub organization) maintains it in lobehub/lobe-ui, which has 2,219 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 10, 2026.
Source: lobehub/lobe-ui on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.