agentleFS
antdigital-aiantdigital-ai/agentic-ui/.cursor/skills/component-chat-layout/SKILL.md

component-chat-layout

Skill233 starsChanged 7 months agoMITView on GitHub

Develop ChatLayout (header, content, footer) for chat UI in @ant-design/agentic-ui. Use when building chat page layout, message area, or input footer. Triggers on ChatLayout, chat layout, header content footer, chat page.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

ChatLayout 组件开发

聊天界面布局:头部、内容区、底部固定区域(如输入框)。

源码位置

  • 主组件:src/ChatLayout/index.tsx
  • 类型:src/ChatLayout/types.ts(ChatLayoutProps、ChatLayoutRef)
  • 子组件:FooterBackground 等见 src/ChatLayout/components/

主要能力

  • 头部(标题、折叠、分享等)、内容区(BubbleList 等)、底部固定
  • useAutoScroll、useElementSize 等 Hooks 配合
  • ref 暴露方法见 ChatLayoutRef

开发规范

  • 样式使用 createStyles 与 token;支持 classNames/styles。
  • 与 Bubble、MarkdownInputField、History 等组合时保持结构一致。

修改聊天布局时,参考 src/ChatLayout/ 与 AGENTS.md。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.