Agent skill

Component Agentic Layout

by antdigital-ai in antdigital-ai/agentic-ui

Develop AgenticLayout (left-center-right layout with header) in @ant-design/agentic-ui.

MITAuto-check passed

Install Component Agentic Layout

skills CLI
$ npx skills add antdigital-ai/agentic-ui --skill component-agentic-layout -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install antdigital-ai/agentic-ui component-agentic-layout --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/antdigital-ai/agentic-ui.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/component-agentic-layout .claude/skills/component-agentic-layout && rm -rf skills-src

Use ~/.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/

Facts

Skill name
component-agentic-layout
GitHub stars
224
Token cost
~1.2k tokens
SKILL.md length
283 words
Files
1
Skills in repo
22
Repo updated
First seen
Licence
MIT

At a glance

Develop AgenticLayout (left-center-right layout with header) in @ant-design/agentic-ui.

  • Building app shell
  • SKILL.md covers 组件 API(自包含), DOM 与类名结构(BEM), 行为与常量 and 开发规范(与 AGENTS 一致)
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Three-column layout

What it does

Component Agentic Layout is an agent skill from antdigital-ai/agentic-ui. Develop AgenticLayout (left-center-right layout with header) in @ant-design/agentic-ui. Use when building app shell, sidebar layout, or three-column layout. Triggers on AgenticLayout, layout, left center right, header, sidebar.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with Ant Design. The licence is MIT.

When your agent uses it

  • Building app shell
  • Three-column layout
  • Left center right

Example prompts

  • “/component-agentic-layout”

What it can do on your machine

Read from SKILL.md and the folder at commit d0aed66. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Component Agentic Layout loads about 1.2k tokens when it runs. Until then it costs about 63 tokens; SKILL.md has 283 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~63
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from antdigital-ai/agentic-ui at commit d0aed66, republished under its MIT licence (© antdigital-ai). 283 words, ~1,179 tokens.

Download SKILL.mdSave it as .claude/skills/component-agentic-layout/SKILL.md (or your agent's skills folder).
name
component-agentic-layout
description
Develop AgenticLayout (left-center-right layout with header) in @ant-design/agentic-ui. Use when building app shell, sidebar layout, or three-column layout. Triggers on AgenticLayout, layout, left center right, header, sidebar.

AgenticLayout 组件开发

智能体应用主布局:左-中-右三栏 + 头部,用于应用外壳与侧栏布局。修改布局或头部时,按本技能内的 API 与规范直接实现,无需再查源码。

组件 API(自包含)

AgenticLayoutProps
属性说明类型默认
left左侧内容ReactNode-
center中间内容(必填)ReactNode-
right右侧内容ReactNode-
header头部配置,见下LayoutHeaderConfig-
style自定义样式,会透传到根节点(可含 minHeight 等)React.CSSProperties-
className自定义类名,与根节点 prefixCls、hashId 一起拼接string-
leftWidth左侧宽度(px)number256
rightWidth右侧宽度(px),可被用户拖拽改变,会受最小/最大限制number540
minHeight最小高度(类型已声明,实现上可用 style.minHeight 覆盖样式默认值)string | number-
children子元素(兼容用,内容建议用 center)ReactNode-

说明:根节点最小高度由样式固定为 600px;需自定义时传 style={{ minHeight: '...' }}。当前未从 props 的 minHeight 读到根节点,与类型保持一致即可。

LayoutHeaderConfig(头部配置)
属性说明类型默认
title标题,支持文本或 React 节点ReactNode'AI 助手'
showShare是否显示分享按钮booleanfalse
leftCollapsible左侧是否可折叠(未传时由 AgenticLayout 按是否有 left 推断)boolean-
rightCollapsible右侧是否可折叠(未传时由 AgenticLayout 按是否有 right 推断)boolean-
leftCollapsed左侧折叠状态(受控)boolean-
rightCollapsed右侧折叠状态(受控)boolean-
leftDefaultCollapsed左侧默认折叠(非受控)booleanfalse
rightDefaultCollapsed右侧默认折叠(非受控)booleanfalse
onLeftCollapse左侧折叠回调(collapsed: boolean) => void-
onRightCollapse右侧折叠回调(collapsed: boolean) => void-
onShare分享点击() => void-
leftExtra头部左侧额外内容,渲染在标题同侧ReactNode-
rightExtra头部右侧额外内容,渲染在分享/折叠按钮同侧ReactNode-
className头部根节点自定义类名string-

折叠状态:有 leftCollapsed/rightCollapsed 时为受控;否则用 leftDefaultCollapsed/rightDefaultCollapsed 作初始值,由内部 useMergedState + onLeftCollapse/onRightCollapse 更新。LayoutHeader 内部用 I18n 的 locale['chatFlow.collapseLeft']、locale['chatFlow.collapseRight']、locale['chatFlow.share'] 等做文案与 aria-label。

导出(库入口)
  • AgenticLayout:export { AgenticLayout },类型 export interface AgenticLayoutProps
  • LayoutHeader:export { LayoutHeader },类型 export type { LayoutHeaderConfig, LayoutHeaderProps }(LayoutHeaderProps 与 LayoutHeaderConfig 相同)

从 @ant-design/agentic-ui 可解构:AgenticLayout、AgenticLayoutProps、LayoutHeader、LayoutHeaderConfig、LayoutHeaderProps。

DOM 与类名结构(BEM)

AgenticLayout
  • 根:prefixCls(默认 ant-agentic-layout)
  • 主体:${prefixCls}-body(flex 容器)
  • 左侧栏:${prefixCls}-sidebar、${prefixCls}-sidebar-left,折叠时加 ${prefixCls}-sidebar-left-collapsed
  • 中间区:${prefixCls}-main,内容包裹在 ${prefixCls}-main-content;头部渲染在 main 内、content 前;main-content 高度为 calc(100% - 48px) 以预留头部
  • 右侧栏容器:${prefixCls}-sidebar-wrapper-right,内为拖拽手柄 + 右侧栏
  • 拖拽手柄:${prefixCls}-resize-handle、${prefixCls}-resize-handle-right(宽度 6px,hover 时高亮)
  • 右侧栏:${prefixCls}-sidebar、${prefixCls}-sidebar-right,折叠时加 ${prefixCls}-sidebar-right-collapsed
  • 侧栏内容区:${prefixCls}-sidebar-content

样式通过 useAgenticLayoutStyle(prefixCls) 注册,使用项目内 genStyleHooks 与 token(如 componentCls)。根节点在样式中设 minHeight: 600px。

LayoutHeader(头部子组件)
  • 根:prefixCls(默认 ant-layout-header)
  • 左侧区域:${prefixCls}-left(含折叠按钮、分隔线、标题、leftExtra)
  • 标题:${prefixCls}-left-title
  • 左侧分隔线:${prefixCls}-left-separator(在折叠按钮与标题之间)
  • 右侧区域:${prefixCls}-right(含分享按钮、折叠按钮、rightExtra)
  • 分享按钮:${prefixCls}-right-share-btn

样式通过 useLayoutHeaderStyle(prefixCls) 注册;头部高度 48px(minHeight),与 main-content 的 48px 对应。

行为与常量

  • 右侧栏:可拖拽调整宽度。最小宽度 MIN_RIGHT_WIDTH = 400(px),最大宽度 window.innerWidth * 0.7;rightWidth 变化会同步到内部 state;折叠时宽度为 0。
  • 左侧栏:宽度由 leftWidth 控制,默认 DEFAULT_LEFT_WIDTH = 256(px),无拖拽;折叠时宽度为 0。
  • 右侧默认宽度:DEFAULT_RIGHT_WIDTH = 540(px)。
  • 头部:使用 LayoutHeader(来自 Components/LayoutHeader),传入 header 并补充 leftCollapsible/rightCollapsible(未传时由是否有 left/right 决定)。头部高度 48px;拖拽手柄宽度 6px。
  • 根节点:样式里 minHeight: 600px,无 prefixCls/classNames/styles 等 Semantic 透传,仅 style、className。

开发规范(与 AGENTS 一致)

  • 使用 Ant Design Token 与 useAgenticLayoutStyle,支持主题与响应式;样式用 createStyles/token,避免硬编码颜色与尺寸。
  • 类名用 clsx 拼接;支持 classNames/styles 时按项目 Semantic 规范命名。
  • Props/事件命名:配置用 Config 后缀,事件用 on 前缀;布尔用 showXxx、xxxCollapsible、xxxCollapsed。
  • 组件为函数式 + Hooks;用 React.memo 包装导出组件;保持向下兼容,不破坏已有 props。
  • 与 ChatLayout、Workspace 等组合时保持结构清晰,避免嵌套过深。

按上述 API、DOM 结构和规范修改布局或头部即可,无需依赖源码路径。

© antdigital-ai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .cursor/skills/component-agentic-layout of antdigital-ai/agentic-ui.

Open the folder on GitHubat commit d0aed66

Compare with similar skills

Component Agentic Layout 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.

Component Agentic Layout compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Component Agentic Layout this skillantdigital-ai/agentic-ui224—~1.2kAutomated safety check: PassMIT
LobeHub Interactive Prototypelobehub/lobehub83k—~1.6kAutomated safety check: PassCustom licence
Version ReleaseNG-ZORRO/ng-zorro-antd9.2k—~3.1kAutomated safety check: PassMIT
Ant Design Mobile Releaseant-design/ant-design-mobile12k—~497Automated safety check: PassMIT
Building With Lobe UIlobehub/lobe-ui2.2k—~2kAutomated safety check: PassMIT
Feature SyncNG-ZORRO/ng-zorro-antd9.2k—~840Automated safety check: PassMIT

Similar skills

  • Builds single-file interactive HTML prototypes rendered with the real LobeHub UI components and written as production-style React, so they can later be split into files.

    83k GitHub stars~1.6k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Version Release

    NG-ZORRO/ng-zorro-antd

    NG-ZORRO/ng-zorro-antd repository release workflow. An agent skill from NG-ZORRO/ng-zorro-antd.

    9.2k GitHub stars~3.1k tokensUpdated 7 days ago
    DevelopmentAuto-check passed
  • Ant Design Mobile Release

    ant-design/ant-design-mobile

    Prepares an npm release of ant-design-mobile up to the version commit, then tags and publishes the GitHub Release after you run the publish command yourself.

    12k GitHub stars~497 tokensUpdated 23 days ago
    DevelopmentAuto-check passed
  • Building With Lobe UI

    lobehub/lobe-ui

    Build UI with the LobeHub design ecosystem — @lobehub/ui (plus its base-ui, chat, mobile, awesome, brand, mdx, i18n namespaces), @lobehub/icons, @lobehub/charts, @lobehub/fluent-emoji and…

    2.2k GitHub stars~2k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Feature Sync

    NG-ZORRO/ng-zorro-antd

    Sync an Ant Design React component or feature into NG-ZORRO.

    9.2k GitHub stars~840 tokensUpdated 7 days ago
    Frontend & DesignAuto-check passed
  • Ant Design Vue UI

    lazzyfu/goInsight

    Build, refactor, or review production-grade admin interfaces with Vue 3 + JavaScript + Ant Design Vue 4.x.

    730 GitHub stars~2k tokensUpdated 6 mo ago
    DatabasesAuto-check passed

More from antdigital-ai/agentic-ui

All 22 skills in this repo
  • Markdown Syntax Guide

    antdigital-ai/agentic-ui

    指导用户使用 @ant-design/agentic-ui 的 Markdown Editor / Renderer 扩展语法。图表场景优先使用内置 chart(HTML 注释 chartType + 表格),只有当内置 chartType 都不能表达诉求时才回退 Mermaid。Triggers on keywords like 表格, 视频, 图表, 卡片, 提示块, 流程图, 语法…

    224 GitHub stars~3.1k tokensUpdated yesterday
    Auto-check passed
  • Agentic UI Usage

    antdigital-ai/agentic-ui

    Guides how to use @ant-design/agentic-ui in applications (install, import, layout, chat, editor, i18n).

    224 GitHub stars~691 tokensUpdated yesterday
    Auto-check passed
  • Component Bubble

    antdigital-ai/agentic-ui

    Develop and extend Bubble components (AIBubble, UserBubble, Bubble list) for AI chat messages in @ant-design/agentic-ui.

    224 GitHub stars~283 tokensUpdated yesterday
    Auto-check passed
  • Component Schema

    antdigital-ai/agentic-ui

    Develop SchemaForm, SchemaEditor, SchemaRenderer and validator in @ant-design/agentic-ui for low-code and JSON Schema.

    224 GitHub stars~247 tokensUpdated yesterday
    Auto-check passed
  • Agentic UI Development

    antdigital-ai/agentic-ui

    Guides development workflow, design system, scripts, and component inventory for @ant-design/agentic-ui.

    224 GitHub stars~555 tokensUpdated yesterday
    Auto-check passed
  • Gh Create PR

    antdigital-ai/agentic-ui

    使用 GitHub CLI (gh) 推送当前分支并创建或更新 PR。在用户说「提 PR」「新建 PR」「用 gh 建 PR」「submit PR」「create pull request」时使用。

    224 GitHub stars~416 tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Component Agentic Layout

What does Component Agentic Layout do?

Develop AgenticLayout (left-center-right layout with header) in @ant-design/agentic-ui. Component Agentic Layout is an agent skill from antdigital-ai/agentic-ui. Develop AgenticLayout (left-center-right layout with header) in @ant-design/agentic-ui.

When should I use Component Agentic Layout?

Component Agentic Layout fits situations like: building app shell; three-column layout; left center right.

How do I install Component Agentic Layout in Claude Code?

Run `npx skills add antdigital-ai/agentic-ui --skill component-agentic-layout -a claude-code`. Or copy the skill folder (.cursor/skills/component-agentic-layout in antdigital-ai/agentic-ui) into .claude/skills/component-agentic-layout in your project. Claude Code loads it when a task matches its description.

How do I install Component Agentic Layout in Codex?

Run `npx skills add antdigital-ai/agentic-ui --skill component-agentic-layout -a codex`. Or copy the skill folder (.cursor/skills/component-agentic-layout in antdigital-ai/agentic-ui) into .agents/skills/component-agentic-layout in your project. Codex loads it when a task matches its description.

Can I use Component Agentic Layout in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add antdigital-ai/agentic-ui --skill component-agentic-layout -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/component-agentic-layout, .gemini/skills/component-agentic-layout, .github/skills/component-agentic-layout and .opencode/skills/component-agentic-layout in your project.

What does Component Agentic Layout need to run?

SKILL.md names no scripts, command-line tools or credentials: Component Agentic Layout is instructions for the agent only.

Does Component Agentic Layout access the network?

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.

Is Component Agentic Layout safe to install?

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.

What licence does Component Agentic Layout use?

Component Agentic Layout is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Component Agentic Layout use?

About 1.2k tokens (SKILL.md is roughly 4.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Component Agentic Layout?

Skills that share tags, products or a category with Component Agentic Layout: LobeHub Interactive Prototype (lobehub/lobehub, 83k stars), Version Release (NG-ZORRO/ng-zorro-antd, 9.2k stars), Ant Design Mobile Release (ant-design/ant-design-mobile, 12k stars) and Building With Lobe UI (lobehub/lobe-ui, 2.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Component Agentic Layout?

antdigital-ai (a GitHub organization) maintains it in antdigital-ai/agentic-ui, which has 224 GitHub stars. The repository holds 22 skills in this directory. The repository was last updated on October 6, 2026.

Source: antdigital-ai/agentic-ui on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.