🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
💄 style(agent): polish skill suggestion modal UX (#16027)
AmAzing-46bad6e61700
diff --git a/locales/en-US/chat.json b/locales/en-US/chat.jsonindex de6bb470bb5..79b4efe7e1b 100644--- a/locales/en-US/chat.json+++ b/locales/en-US/chat.json@@ -116,21 +116,23 @@"confirmRemoveGroupSuccess": "Group deleted successfully","confirmRemoveSessionItemAlert": "You are about to delete this agent. Once deleted, it cannot be retrieved. Please confirm your action.","confirmRemoveSessionSuccess": "Agent removed successfully",- "createModal.createBlank": "Create Blank",- "createModal.groupPlaceholder": "Describe what this group should do...",- "createModal.groupTitle": "What should your group do?",- "createModal.placeholder": "Describe what your agent should do...",+ "createModal.createBlank": "Start Blank",+ "createModal.groupPlaceholder": "Describe what this Group should do...",+ "createModal.groupTitle": "What should this Group do?",+ "createModal.placeholder": "Describe what this Agent should do...","createModal.skillSuggestion.actions.createAnyway": "Create Agent Anyway","createModal.skillSuggestion.actions.createAnywayHint": "Skill not a fit?","createModal.skillSuggestion.actions.install": "Add Skill",- "createModal.skillSuggestion.actions.openSkills": "Open Skills",- "createModal.skillSuggestion.actions.tryInLobeAI": "Try in LobeAI",- "createModal.skillSuggestion.description": "Even though this is phrased as a role, the reusable part is the workflow. Install it once, then use it across Agents.",+ "createModal.skillSuggestion.actions.installing": "Adding…",+ "createModal.skillSuggestion.actions.openSkills": "View in Skills",+ "createModal.skillSuggestion.actions.tryInLobeAI": "Use in LobeAI",+ "createModal.skillSuggestion.description": "This looks like a reusable workflow. Install the Skill once, then use it across Agents.","createModal.skillSuggestion.installError": "Skill wasn't added. Retry, or create an Agent anyway.",- "createModal.skillSuggestion.installed.description": "You can now use this Skill in LobeAI or add it to any Agent.",+ "createModal.skillSuggestion.installed.description": "You can use this Skill in LobeAI or add it to any Agent.",+ "createModal.skillSuggestion.installed.ready": "Ready in LobeAI","createModal.skillSuggestion.installed.title": "Skill added",- "createModal.skillSuggestion.title": "This can use a Skill",- "createModal.title": "What should your agent do?",+ "createModal.skillSuggestion.title": "A Skill may fit better",+ "createModal.title": "What should this Agent do?","createTask.assignee": "Assignee","createTask.collapse": "Hide input","createTask.expandToInline": "Dock to page",diff --git a/locales/zh-CN/chat.json b/locales/zh-CN/chat.jsonindex eeb610f413d..23dfb96bfcb 100644--- a/locales/zh-CN/chat.json+++ b/locales/zh-CN/chat.json@@ -116,21 +116,23 @@"confirmRemoveGroupSuccess": "群组已删除","confirmRemoveSessionItemAlert": "确认删除该助理吗?删除后无法恢复","confirmRemoveSessionSuccess": "助理已删除",- "createModal.createBlank": "创建空白",- "createModal.groupPlaceholder": "描述此分组的用途…",- "createModal.groupTitle": "你的分组应该做什么?",- "createModal.placeholder": "描述你的智能体应该做什么…",+ "createModal.createBlank": "从空白开始",+ "createModal.groupPlaceholder": "描述这个群组要完成什么…",+ "createModal.groupTitle": "这个群组要做什么?",+ "createModal.placeholder": "描述这个助理要完成什么…","createModal.skillSuggestion.actions.createAnyway": "仍然创建助理",- "createModal.skillSuggestion.actions.createAnywayHint": "感觉技能不合适?",+ "createModal.skillSuggestion.actions.createAnywayHint": "技能不合适?","createModal.skillSuggestion.actions.install": "添加技能",- "createModal.skillSuggestion.actions.openSkills": "打开技能",- "createModal.skillSuggestion.actions.tryInLobeAI": "在 LobeAI 中试用",- "createModal.skillSuggestion.description": "虽然你用角色来描述它,但可复用的是背后的工作流。安装一次技能后,可以在多个助理中使用。",+ "createModal.skillSuggestion.actions.installing": "添加中…",+ "createModal.skillSuggestion.actions.openSkills": "查看技能",+ "createModal.skillSuggestion.actions.tryInLobeAI": "在 LobeAI 中使用",+ "createModal.skillSuggestion.description": "这更像一个可复用的工作流。安装一次技能后,可在多个助理中使用。","createModal.skillSuggestion.installError": "技能未添加成功。你可以重试,或仍然创建助理。",- "createModal.skillSuggestion.installed.description": "你现在可以在 LobeAI 中使用这个技能,也可以把它添加到任意助理。",+ "createModal.skillSuggestion.installed.description": "你可以在 LobeAI 中使用这个技能,也可以把它添加到任意助理。",+ "createModal.skillSuggestion.installed.ready": "已可在 LobeAI 中使用","createModal.skillSuggestion.installed.title": "技能已添加",- "createModal.skillSuggestion.title": "这可以使用技能",- "createModal.title": "你的智能体应该做什么?",+ "createModal.skillSuggestion.title": "这个需求适合用技能",+ "createModal.title": "这个助理要做什么?","createTask.assignee": "负责人","createTask.collapse": "隐藏输入","createTask.expandToInline": "固定到页面",diff --git a/packages/locales/src/default/chat.ts b/packages/locales/src/default/chat.tsindex dd5b2975000..54fcb318dc5 100644--- a/packages/locales/src/default/chat.ts+++ b/packages/locales/src/default/chat.ts@@ -326,24 +326,26 @@ export default {'minimap.previousMessage': 'Previous message','minimap.senderAssistant': 'Agent','minimap.senderUser': 'You',- 'createModal.createBlank': 'Create Blank',- 'createModal.groupPlaceholder': 'Describe what this group should do...',- 'createModal.groupTitle': 'What should your group do?',- 'createModal.placeholder': 'Describe what your agent should do...',+ 'createModal.createBlank': 'Start Blank',+ 'createModal.groupPlaceholder': 'Describe what this Group should do...',+ 'createModal.groupTitle': 'What should this Group do?',+ 'createModal.placeholder': 'Describe what this Agent should do...','createModal.skillSuggestion.actions.createAnyway': 'Create Agent Anyway','createModal.skillSuggestion.actions.createAnywayHint': 'Skill not a fit?','createModal.skillSuggestion.actions.install': 'Add Skill',- 'createModal.skillSuggestion.actions.openSkills': 'Open Skills',- 'createModal.skillSuggestion.actions.tryInLobeAI': 'Try in LobeAI',+ 'createModal.skillSuggestion.actions.installing': 'Adding…',+ 'createModal.skillSuggestion.actions.openSkills': 'View in Skills',+ 'createModal.skillSuggestion.actions.tryInLobeAI': 'Use in LobeAI','createModal.skillSuggestion.description':- 'Even though this is phrased as a role, the reusable part is the workflow. Install it once, then use it across Agents.',+ 'This looks like a reusable workflow. Install the Skill once, then use it across Agents.','createModal.skillSuggestion.installed.description':- 'You can now use this Skill in LobeAI or add it to any Agent.',+ 'You can use this Skill in LobeAI or add it to any Agent.',+ 'createModal.skillSuggestion.installed.ready': 'Ready in LobeAI','createModal.skillSuggestion.installed.title': 'Skill added','createModal.skillSuggestion.installError':"Skill wasn't added. Retry, or create an Agent anyway.",- 'createModal.skillSuggestion.title': 'This can use a Skill',- 'createModal.title': 'What should your agent do?',+ 'createModal.skillSuggestion.title': 'A Skill may fit better',+ 'createModal.title': 'What should this Agent do?','claudeCodeInstallGuide.actions.openDocs': 'Open Install Guide','claudeCodeInstallGuide.actions.openSystemTools': 'Open System Tools','claudeCodeInstallGuide.afterInstall':diff --git a/src/routes/(main)/home/_layout/Body/Agent/ModalProvider.test.tsx b/src/routes/(main)/home/_layout/Body/Agent/ModalProvider.test.tsxindex 753079715a2..2e2eaf50940 100644--- a/src/routes/(main)/home/_layout/Body/Agent/ModalProvider.test.tsx+++ b/src/routes/(main)/home/_layout/Body/Agent/ModalProvider.test.tsx@@ -49,10 +49,10 @@ vi.mock('@/routes/(main)/home/_layout/hooks/useCreateModal', () => ({open ? (<><button type="button" onClick={() => void onCreateBlank()}>- Create Blank+ Start Blank</button><button type="button" onClick={() => onOpenSkills?.('product-requirements-writer')}>- Open Skills+ View in Skills</button></>) : null,@@ -136,7 +136,7 @@ describe('AgentModalProvider', () => {renderProvider();fireEvent.click(screen.getByText('Open create agent modal'));- fireEvent.click(screen.getByText('Create Blank'));+ fireEvent.click(screen.getByText('Start Blank'));await waitFor(() => {expect(mocks.createAgent).toHaveBeenCalledWith({ groupId: undefined });@@ -150,7 +150,7 @@ describe('AgentModalProvider', () => {renderProvider();fireEvent.click(screen.getByText('Open create agent modal'));- fireEvent.click(screen.getByText('Open Skills'));+ fireEvent.click(screen.getByText('View in Skills'));expect(mocks.navigate).toHaveBeenCalledWith('/settings/skill?tab=skill&skill=product-requirements-writer',diff --git a/src/routes/(main)/home/_layout/hooks/useCreateModal.test.tsx b/src/routes/(main)/home/_layout/hooks/useCreateModal.test.tsxindex cff881403a0..4b81ee7ee35 100644--- a/src/routes/(main)/home/_layout/hooks/useCreateModal.test.tsx+++ b/src/routes/(main)/home/_layout/hooks/useCreateModal.test.tsx@@ -62,15 +62,23 @@ vi.mock('@lobehub/ui', () => ({Button: ({children,disabled,+ loading,onClick,type,}: {children?: ReactNode;disabled?: boolean;+ loading?: boolean;onClick?: () => void;type?: string;}) => (- <button data-button-type={type} disabled={disabled} type="button" onClick={onClick}>+ <button+ data-button-loading={loading ? 'true' : undefined}+ data-button-type={type}+ disabled={disabled}+ type="button"+ onClick={onClick}+ >{children}</button>),@@ -91,8 +99,12 @@ vi.mock('@/services/skill', () => ({}));vi.mock('@lobehub/ui/base-ui', () => ({- Modal: ({ children, open }: { children?: ReactNode; open?: boolean }) =>- open ? <div role="dialog">{children}</div> : null,+ Modal: ({ children, open, width }: { children?: ReactNode; open?: boolean; width?: string }) =>+ open ? (+ <div data-modal-width={width} role="dialog">+ {children}+ </div>+ ) : null,}));vi.mock('antd-style', () => ({@@ -111,24 +123,26 @@ vi.mock('react-i18next', () => ({t: (key: string) =>(({- 'chat:createModal.createBlank': 'Create Blank',- 'chat:createModal.groupPlaceholder': 'Describe what this group should do...',- 'chat:createModal.groupTitle': 'What should your group do?',- 'chat:createModal.placeholder': 'Describe what your agent should do...',+ 'chat:createModal.createBlank': 'Start Blank',+ 'chat:createModal.groupPlaceholder': 'Describe what this Group should do...',+ 'chat:createModal.groupTitle': 'What should this Group do?',+ 'chat:createModal.placeholder': 'Describe what this Agent should do...','chat:createModal.skillSuggestion.actions.createAnyway': 'Create Agent Anyway','chat:createModal.skillSuggestion.actions.createAnywayHint': 'Skill not a fit?','chat:createModal.skillSuggestion.actions.install': 'Add Skill',- 'chat:createModal.skillSuggestion.actions.openSkills': 'Open Skills',- 'chat:createModal.skillSuggestion.actions.tryInLobeAI': 'Try in LobeAI',+ 'chat:createModal.skillSuggestion.actions.installing': 'Adding…',+ 'chat:createModal.skillSuggestion.actions.openSkills': 'View in Skills',+ 'chat:createModal.skillSuggestion.actions.tryInLobeAI': 'Use in LobeAI','chat:createModal.skillSuggestion.description':- 'Even though this is phrased as a role, the reusable part is the workflow. Install it once, then use it across Agents.',+ 'This looks like a reusable workflow. Install the Skill once, then use it across Agents.','chat:createModal.skillSuggestion.installed.description':- 'You can now use this Skill in LobeAI or add it to any Agent.',+ 'You can use this Skill in LobeAI or add it to any Agent.',+ 'chat:createModal.skillSuggestion.installed.ready': 'Ready in LobeAI','chat:createModal.skillSuggestion.installed.title': 'Skill added','chat:createModal.skillSuggestion.installError':"Skill wasn't added. Retry, or create an Agent anyway.",- 'chat:createModal.skillSuggestion.title': 'This can use a Skill',- 'chat:createModal.title': 'What should your agent do?',+ 'chat:createModal.skillSuggestion.title': 'A Skill may fit better',+ 'chat:createModal.title': 'What should this Agent do?','common:home.suggestQuestions': 'Try these examples','common:switch': 'Switch','suggestQuestions:example.prompt': 'Use this example prompt',@@ -334,10 +348,10 @@ describe('CreateAgentModal analytics', () => {});});- it('tracks blank source when Create Blank succeeds', async () => {+ it('tracks blank source when Start Blank succeeds', async () => {const { onCreateBlank } = renderModal();- fireEvent.click(screen.getByText('Create Blank'));+ fireEvent.click(screen.getByText('Start Blank'));await waitFor(() => {expect(onCreateBlank).toHaveBeenCalled();@@ -413,7 +427,7 @@ describe('CreateAgentModal analytics', () => {);});expect(onSubmit).not.toHaveBeenCalled();- expect(await screen.findByText('This can use a Skill')).toBeInTheDocument();+ expect(await screen.findByText('A Skill may fit better')).toBeInTheDocument();expect(screen.getByText('Resume Reviewer')).toBeInTheDocument();expect(screen.queryByText('Example title')).not.toBeInTheDocument();expect(screen.getByText('Skill not a fit?')).toBeInTheDocument();@@ -459,7 +473,7 @@ describe('CreateAgentModal analytics', () => {expect(onSubmit).toHaveBeenCalledWith('创建一个代码学习导师,长期跟进我的学习计划');});expect(marketApiMocks.searchSkill).not.toHaveBeenCalled();- expect(screen.queryByText('This can use a Skill')).not.toBeInTheDocument();+ expect(screen.queryByText('A Skill may fit better')).not.toBeInTheDocument();});it('interrupts role-framed reusable prompts when the role maps to a skill workflow', async () => {@@ -492,7 +506,101 @@ describe('CreateAgentModal analytics', () => {);});expect(onSubmit).not.toHaveBeenCalled();- expect(await screen.findByText('This can use a Skill')).toBeInTheDocument();+ expect(await screen.findByText('A Skill may fit better')).toBeInTheDocument();+ });++ it('keeps add skill buttons visually consistent when multiple skill suggestions are shown', async () => {+ marketApiMocks.searchSkill.mockResolvedValueOnce({+ currentPage: 1,+ items: [+ {+ createdAt: '2026-01-01',+ description: 'Guided statistical analysis with test selection and reporting.',+ identifier: 'statistical-analysis',+ installCount: 12,+ name: 'statistical-analysis',+ updatedAt: '2026-01-01',+ },+ {+ createdAt: '2026-01-01',+ description: 'Perform comprehensive exploratory data analysis.',+ identifier: 'exploratory-data-analysis',+ installCount: 8,+ name: 'exploratory-data-analysis',+ updatedAt: '2026-01-01',+ },+ {+ createdAt: '2026-01-01',+ description: 'Neuropixels neural recording analysis.',+ identifier: 'neuropixels-analysis',+ installCount: 5,+ name: 'neuropixels-analysis',+ updatedAt: '2026-01-01',+ },+ ],+ pageSize: 3,+ totalCount: 3,+ totalPages: 1,+ });+ renderModal();++ fireEvent.change(screen.getByLabelText('chat input'), {+ target: { value: '创建一个擅长做 PPT Word Excel 的 Agent' },+ });+ fireEvent.click(screen.getByText('Send'));++ expect(await screen.findByText('A Skill may fit better')).toBeInTheDocument();++ const addSkillButtons = screen.getAllByText('Add Skill');+ expect(addSkillButtons).toHaveLength(3);+ addSkillButtons.forEach((button) => {+ expect(button).not.toHaveAttribute('data-button-type', 'primary');+ });+ });++ it('shows an installing state while adding the suggested skill', async () => {+ marketApiMocks.searchSkill.mockResolvedValueOnce({+ currentPage: 1,+ items: [+ {+ createdAt: '2026-01-01',+ description: 'Review and improve resumes with a reusable checklist.',+ identifier: 'resume-reviewer',+ installCount: 12,+ name: 'Resume Reviewer',+ updatedAt: '2026-01-01',+ },+ ],+ pageSize: 3,+ totalCount: 1,+ totalPages: 1,+ });+ let resolveImport: (value: {+ skill: { id: string; name: string };+ status: string;+ }) => void = () => {};+ skillServiceMocks.importFromMarket.mockImplementationOnce(+ () =>+ new Promise((resolve) => {+ resolveImport = resolve;+ }),+ );+ renderModal();++ fireEvent.change(screen.getByLabelText('chat input'), {+ target: { value: '帮我做一个简历优化检查清单' },+ });+ fireEvent.click(screen.getByText('Send'));++ expect(await screen.findByText('A Skill may fit better')).toBeInTheDocument();+ fireEvent.click(screen.getByText('Add Skill'));++ const installingButton = await screen.findByText('Adding…');+ expect(installingButton).toHaveAttribute('data-button-loading', 'true');+ expect(screen.queryByText('Add Skill')).not.toBeInTheDocument();++ resolveImport({ skill: { id: 'skill-1', name: 'Resume Reviewer' }, status: 'created' });+ expect(await screen.findByText('Skill added')).toBeInTheDocument();});it('shows a completed skill state after installing the recommended skill', async () => {@@ -519,7 +627,7 @@ describe('CreateAgentModal analytics', () => {});fireEvent.click(screen.getByText('Send'));- expect(await screen.findByText('This can use a Skill')).toBeInTheDocument();+ expect(await screen.findByText('A Skill may fit better')).toBeInTheDocument();fireEvent.click(screen.getByText('Add Skill'));await waitFor(() => {@@ -536,12 +644,15 @@ describe('CreateAgentModal analytics', () => {expect(onSubmit).not.toHaveBeenCalled();expect(await screen.findByText('Skill added')).toBeInTheDocument();expect(screen.getByText('Resume Reviewer')).toBeInTheDocument();+ expect(screen.getByText('Ready in LobeAI')).toBeInTheDocument();+ expect(screen.queryByText('resume-reviewer')).not.toBeInTheDocument();+ expect(screen.getByRole('dialog')).toHaveAttribute('data-modal-width', 'min(90vw, 560px)');expect(screen.queryByText('Skill not a fit?')).not.toBeInTheDocument();expect(screen.queryByText('Create Agent Anyway')).not.toBeInTheDocument();- const tryInLobeAIButton = screen.getByText('Try in LobeAI');+ const tryInLobeAIButton = screen.getByText('Use in LobeAI');expect(tryInLobeAIButton).toHaveAttribute('data-button-type', 'primary');- const openSkillsButton = screen.getByText('Open Skills');+ const openSkillsButton = screen.getByText('View in Skills');expect(openSkillsButton).not.toHaveAttribute('data-button-type', 'primary');fireEvent.click(openSkillsButton);@@ -582,7 +693,7 @@ describe('CreateAgentModal analytics', () => {});fireEvent.click(screen.getByText('Send'));- expect(await screen.findByText('This can use a Skill')).toBeInTheDocument();+ expect(await screen.findByText('A Skill may fit better')).toBeInTheDocument();fireEvent.click(screen.getByText('Add Skill'));await waitFor(() => {diff --git a/src/routes/(main)/home/_layout/hooks/useCreateModal.tsx b/src/routes/(main)/home/_layout/hooks/useCreateModal.tsxindex 5425bac267a..270fa9441eb 100644--- a/src/routes/(main)/home/_layout/hooks/useCreateModal.tsx+++ b/src/routes/(main)/home/_layout/hooks/useCreateModal.tsx@@ -1,15 +1,7 @@import { ActionIcon, Block, Button, Flexbox, Text } from '@lobehub/ui';import { Modal } from '@lobehub/ui/base-ui';import { cssVar } from 'antd-style';-import {- Blocks,- CheckCircle2,- Lightbulb,- Loader2,- PencilLineIcon,- RefreshCw,- X,-} from 'lucide-react';+import { Blocks, CheckCircle2, Lightbulb, PencilLineIcon, RefreshCw, X } from 'lucide-react';import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';import { useTranslation } from 'react-i18next';@@ -38,6 +30,8 @@ import {} from './createAgentModalAnalytics';const LEFT_ACTIONS: ActionKeys[] = ['model'];+const CREATE_MODAL_WIDTH = 'min(90vw, 760px)';+const INSTALLED_SKILL_MODAL_WIDTH = 'min(90vw, 560px)';interface InstalledSkill {identifier: string;@@ -55,7 +49,7 @@ interface SkillSuggestionPanelProps {const SkillSuggestionPanel = memo<SkillSuggestionPanelProps>(({ installError, installingIdentifier, items, onContinueCreate, onInstall }) => {const { t } = useTranslation('chat');- const primarySkillIdentifier = items[0]?.identifier;+ const usePrimaryInstallButton = items.length === 1;const installing = Boolean(installingIdentifier);return (@@ -80,39 +74,47 @@ const SkillSuggestionPanel = memo<SkillSuggestionPanelProps>(</Text></Flexbox><Flexbox gap={8}>- {items.map((item) => (- <Flexbox- horizontal- align={'center'}- gap={12}- justify={'space-between'}- key={item.identifier}- style={{- background: cssVar.colorBgContainer,- border: `1px solid ${cssVar.colorFillTertiary}`,- borderRadius: 10,- padding: 10,- }}- >- <Flexbox flex={1} gap={4} style={{ minWidth: 0 }}>- <Text ellipsis fontSize={13} style={{ fontWeight: 500 }}>- {item.name}- </Text>- <Text color={cssVar.colorTextTertiary} ellipsis={{ rows: 2 }} fontSize={12}>- {item.description}- </Text>- </Flexbox>- <Button- disabled={installing}- icon={installingIdentifier === item.identifier ? <Loader2 size={14} /> : undefined}- size={'small'}- type={item.identifier === primarySkillIdentifier ? 'primary' : undefined}- onClick={() => onInstall(item.identifier)}+ {items.map((item) => {+ const installingThisSkill = installingIdentifier === item.identifier;++ return (+ <Flexbox+ horizontal+ align={'center'}+ gap={12}+ justify={'space-between'}+ key={item.identifier}+ style={{+ background: cssVar.colorBgContainer,+ border: `1px solid ${cssVar.colorFillTertiary}`,+ borderRadius: 10,+ padding: 10,+ }}>- {t('createModal.skillSuggestion.actions.install')}- </Button>- </Flexbox>- ))}+ <Flexbox flex={1} gap={4} style={{ minWidth: 0 }}>+ <Text ellipsis fontSize={13} style={{ fontWeight: 500 }}>+ {item.name}+ </Text>+ <Text color={cssVar.colorTextTertiary} ellipsis={{ rows: 2 }} fontSize={12}>+ {item.description}+ </Text>+ </Flexbox>+ <Button+ disabled={installing && !installingThisSkill}+ loading={installingThisSkill}+ size={'small'}+ type={usePrimaryInstallButton ? 'primary' : undefined}+ onClick={() => onInstall(item.identifier)}+ >+ {t(+ installingThisSkill+ ? 'createModal.skillSuggestion.actions.installing'+ : 'createModal.skillSuggestion.actions.install',+ )}+ </Button>+ </Flexbox>+ );+ })}</Flexbox>{installError && (<Text color={cssVar.colorError} fontSize={12}>@@ -143,22 +145,33 @@ const SkillInstalledPanel = memo<SkillInstalledPanelProps>(({ onClose, onOpenSkireturn (<Flexbox- gap={16}+ align={'center'}+ gap={20}style={{- background: cssVar.colorFillQuaternary,- border: `1px solid ${cssVar.colorFillSecondary}`,- borderRadius: 12,- padding: 16,+ paddingBlock: 8,}}>- <Flexbox gap={8}>- <Flexbox horizontal align={'center'} gap={8}>- <CheckCircle2 color={cssVar.colorSuccess} size={18} />- <Text fontSize={14} style={{ fontWeight: 600 }}>- {t('createModal.skillSuggestion.installed.title')}- </Text>+ <Flexbox align={'center'} gap={8} style={{ textAlign: 'center' }}>+ <Flexbox+ align={'center'}+ justify={'center'}+ style={{+ background: cssVar.colorSuccessBg,+ borderRadius: '50%',+ height: 48,+ width: 48,+ }}+ >+ <CheckCircle2 color={cssVar.colorSuccess} size={28} /></Flexbox>- <Text color={cssVar.colorTextSecondary} fontSize={13}>+ <Text fontSize={18} style={{ fontWeight: 600 }}>+ {t('createModal.skillSuggestion.installed.title')}+ </Text>+ <Text+ color={cssVar.colorTextSecondary}+ fontSize={13}+ style={{ maxWidth: 360, textAlign: 'center' }}+ >{t('createModal.skillSuggestion.installed.description')}</Text></Flexbox>@@ -168,22 +181,37 @@ const SkillInstalledPanel = memo<SkillInstalledPanelProps>(({ onClose, onOpenSkigap={12}justify={'space-between'}style={{- background: cssVar.colorBgContainer,+ background: cssVar.colorFillQuaternary,border: `1px solid ${cssVar.colorFillTertiary}`,- borderRadius: 10,- padding: 10,+ borderRadius: 12,+ padding: 12,+ width: '100%',}}>+ <Flexbox+ align={'center'}+ justify={'center'}+ style={{+ background: cssVar.colorBgContainer,+ border: `1px solid ${cssVar.colorFillTertiary}`,+ borderRadius: 10,+ flex: 'none',+ height: 38,+ width: 38,+ }}+ >+ <Blocks color={cssVar.colorTextSecondary} size={18} />+ </Flexbox><Flexbox flex={1} gap={4} style={{ minWidth: 0 }}><Text ellipsis fontSize={13} style={{ fontWeight: 500 }}>{skill.name}</Text><Text color={cssVar.colorTextTertiary} fontSize={12}>- {skill.identifier}+ {t('createModal.skillSuggestion.installed.ready')}</Text></Flexbox></Flexbox>- <Flexbox horizontal align={'center'} gap={8} justify={'flex-end'}>+ <Flexbox horizontal align={'center'} gap={8} justify={'center'} style={{ width: '100%' }}>{onOpenSkills && (<Button onClick={() => onOpenSkills(skill.identifier)}>{t('createModal.skillSuggestion.actions.openSkills')}@@ -508,31 +536,38 @@ export const CreateAgentModal = memo<CreateAgentModalProps>(footer={null}open={open}title={false}- width={'min(90vw, 760px)'}+ width={installedSkill ? INSTALLED_SKILL_MODAL_WIDTH : CREATE_MODAL_WIDTH}styles={{body: { padding: 0 },}}onCancel={handleClose}>- <Flexbox gap={24} paddingBlock={'16px 24px'} paddingInline={24}>- {/* Header: Create Blank + Close */}- <Flexbox horizontal align="center" gap={4} justify="flex-end">- {!installedSkill && (+ {installedSkill ? (+ <Flexbox gap={12} paddingBlock={'12px 24px'} paddingInline={24}>+ <Flexbox horizontal align="center" justify="flex-end">+ <ActionIcon icon={X} onClick={handleClose} />+ </Flexbox>+ <SkillInstalledPanel+ skill={installedSkill}+ onClose={handleTryInLobeAI}+ onOpenSkills={onOpenSkills ? handleOpenInstalledSkill : undefined}+ />+ </Flexbox>+ ) : (+ <Flexbox gap={24} paddingBlock={'16px 24px'} paddingInline={24}>+ {/* Header: Start Blank + Close */}+ <Flexbox horizontal align="center" gap={4} justify="flex-end"><Button icon={<PencilLineIcon size={14} />} type="text" onClick={handleCreateBlank}>{t('createModal.createBlank')}</Button>- )}- <ActionIcon icon={X} onClick={handleClose} />- </Flexbox>- {/* Title */}- {!installedSkill && (+ <ActionIcon icon={X} onClick={handleClose} />+ </Flexbox>+ {/* Title */}<Flexbox align="center"><h3 style={{ fontSize: 20, fontWeight: 600, margin: 0 }}>{modalTitle}</h3></Flexbox>- )}- {/* ChatInput */}- {open && !installedSkill && (+ {/* ChatInput */}<ChatInputProvideragentId={agentId}allowExpand={false}@@ -566,31 +601,23 @@ export const CreateAgentModal = memo<CreateAgentModalProps>(}/></ChatInputProvider>- )}- {isAgent && installedSkill && (- <SkillInstalledPanel- skill={installedSkill}- onClose={handleTryInLobeAI}- onOpenSkills={onOpenSkills ? handleOpenInstalledSkill : undefined}- />- )}-- {isAgent && skillSuggestion && !installedSkill && (- <SkillSuggestionPanel- installError={skillInstallError}- installingIdentifier={installingSkillIdentifier}- items={skillSuggestion.items}- onContinueCreate={handleContinueCreate}- onInstall={handleInstallSkill}- />- )}+ {isAgent && skillSuggestion && (+ <SkillSuggestionPanel+ installError={skillInstallError}+ installingIdentifier={installingSkillIdentifier}+ items={skillSuggestion.items}+ onContinueCreate={handleContinueCreate}+ onInstall={handleInstallSkill}+ />+ )}- {/* Examples */}- {!skillSuggestion && !installedSkill && (- <Examples suggestMode={type} onExampleClick={handleExampleClick} />- )}- </Flexbox>+ {/* Examples */}+ {!skillSuggestion && (+ <Examples suggestMode={type} onExampleClick={handleExampleClick} />+ )}+ </Flexbox>+ )}</Modal>);},