lov-integrate-agent-uiux
БесплатноЗапускает вложенные скриптыНе проверен把 Agent 对话记录、工具过程、状态、Markdown 与输入区集成进 React Native 或 React 应用;触发语包括“接入 AI 对话 UI”与 "integrate agent chat UI"。
от lovstudio★ 72 звезды на GitHubОб этом скилле
Agent 对话界面 · Agent Chat UI
Integrate a production-shaped Agent conversation surface into an existing app. The deliverable includes a normalized transcript contract, accessible UI components, target-stack adapters, and a verification report.
Triggers
Activate when
- 用户说“参考这个 AI 聊天记录,帮我接入一套 Agent 对话 UI 组件”。
- 用户说“把工具调用、运行状态、Markdown 和输入框整合进现有 App”。
- The user asks to “integrate agent chat UI” or “build reusable AI conversation components”.
Do not activate when
- 只生成整套新应用外壳;使用 app generator 能力,并将本 Skill 作为可选下游。
- 只修手机端溢出、安全区或响应式布局;使用 mobile adaptation 能力。
- 只连接模型 API、鉴权或计费且不需要对话显示;使用对应 LLM integration 能力。
- 只做视觉重绘、不需要 Agent 消息语义和状态契约;使用 frontend design 能力。
User Profile (cross-session)
Read skill.yaml on every invocation. Resolve user, brand, workspace, shared
preferences, and skills.lov-integrate-agent-uiux records without copying
personal values into this portable source. Persist only direct durable user
statements through scripts/profile_store.py, then report the saved Profile path.
See references/user-profile.md.
Skill Group Composition
Read references/skill-composition.md before composing adjacent capabilities.
Sibling Skills are optional artifact handoffs and never hidden dependencies.
Required resources
Resolve SKILL_DIR from the active Skill context, then verify:
$SKILL_DIR/scripts/agent_uiux.py$SKILL_DIR/assets/common$SKILL_DIR/assets/react-native$SKILL_DIR/assets/react$SKILL_DIR/references/integration-contract.md$SKILL_DIR/references/yoda-mobile-patterns.md$SKILL_DIR/references/acceptance-checklist.md
Workflow (MANDATORY)
Step 0: Read context and protect the target
- Read repository instructions, current working tree state, package manifest, UI conventions, existing chat components, and supported platforms.
- Read the shared Profile using
scripts/profile_store.py read --skill-id lov-integrate-agent-uiux --prettywhen a Profile is configured. - Preserve unrelated edits. Do not overwrite an occupied component directory unless the user explicitly authorizes replacement and the old files are backed up.
- Read
references/integration-contract.mdandreferences/yoda-mobile-patterns.mdbefore designing the adapter.
Step 1: Audit the host application
Run the deterministic audit:
python3 "$SKILL_DIR/scripts/agent_uiux.py" audit <project-path> --format json
Confirm the detected stack, source root, package manager, existing design tokens, message data source, send/retry contract, realtime mechanism, and test commands. If the stack is not React Native/Expo or React Web, use the neutral contract as the implementation source and state that the bundled scaffold is unavailable.
Step 2: Map real data to the normalized contract
Create one adapter from the host's transport/domain objects to AgentMessage,
AgentSessionState, AgentAttachment, and PendingInteraction. Keep API calls,
SSE/WebSocket/polling, persistence, and provider-specific fields outside the UI
components. Preserve stable message and tool-call IDs.
Required semantic coverage:
- user, assistant, tool, and status roles;
- commentary versus final assistant phases;
- running, completed, and failed tool states;
- Markdown, plain text, and code;
- pending choice, confirmation, or text interactions;
- session working, waiting, error, completed, and idle states;
- idempotent send/retry identity and preserved composer draft on failure.
Step 3: Scaffold the target-stack components
Preview first:
python3 "$SKILL_DIR/scripts/agent_uiux.py" scaffold <project-path> --dry-run
Then scaffold into the detected source tree:
python3 "$SKILL_DIR/scripts/agent_uiux.py" scaffold <project-path>
Use --stack react-native or --stack react only to override a wrong detection.
Use --component-dir <relative-path> to follow an established component layout.
The command refuses occupied targets; do not use --force without explicit user
authorization. Import files directly from their source modules rather than
adding a re-export barrel when the host forbids re-exports.
Step 4: Integrate into the real screen
- Bind normalized messages, session state, pending interaction, draft, and send
callback to
AgentConversation. - Map host design tokens into
AgentUiTheme; do not hard-code product branding. - Keep the newest content visible only while the user is already near the end; expose a jump-to-latest control otherwise.
- Group adjacent tool events and keep tool details collapsed by default.
- Keep input editable and preserved across recoverable send failures. Surface a copyable request/context ID in diagnostics without exposing secrets.
- Add loading, empty, offline, waiting, error, disabled, and long-content states.
- Preserve keyboard, safe-area, screen-reader, reduced-motion, localization, and minimum touch-target behavior of the host platform.
Step 5: Verify the integrated
Установить lov-integrate-agent-uiux в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл lov-integrate-agent-uiux?
把 Agent 对话记录、工具过程、状态、Markdown 与输入区集成进 React Native 或 React 应用;触发语包括“接入 AI 对话 UI”与 "integrate agent chat UI"。
Как установить скилл lov-integrate-agent-uiux?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lov-integrate-agent-uiux запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic