pixelcraft-chat-ui
Installation
SKILL.md
Pixelcraft chat UI
Conversational interfaces fall into two distinct architectural tracks. Identify which track you are building first so you neither force web-app chrome into a host-constrained messaging payload nor under-design an app-owned AI workbench:
- Track A — Host-constrained Messaging & Mini Apps: Slack, Discord, Telegram, Zalo, WhatsApp, Microsoft Teams, LINE, and WeChat. The host controls typography, spacing, theme, accessibility tree, notifications, and hard payload/timeout limits. Reduce every turn to the smallest actionable native primitive and preserve plain-text fallback.
- Track B — App-owned AI & Agentic Chat Workspaces: Custom web, desktop, or mobile AI assistants, copilots, and multi-agent workbenches. You own scroll physics, streaming Markdown stability, collapsible tool/reasoning traces, conversation branching, split artifact panes, citations, and human-in-the-loop approval gates.
Surface craft
Let the message carry the essential meaning as scannable text, then offer the next relevant native action. For Track A, verify interaction acknowledgements (3 s windows), expired or duplicate taps, byte/character budgets, and plain-text fallback on degraded clients. For Track B, verify scroll-yield when the user scrolls up mid-stream, Stop abort integrity, collapsed traces, and idempotent approval cards. Never mistake fake typing theater, decorative blocks, or emoji bullet spam for usable interaction.
References
- Read references/slack-discord.md when building Slack Block Kit (including AI Assistant streaming surfaces,
table/rich_textblocks) or Discord embeds, Components V2, expanded Modals, and Embedded Activities. - Read references/mobile-business-platforms.md when building Telegram Bots/Mini Apps (Bot API 8.x–9.x), Zalo Mini Apps/ZNS, WhatsApp Interactive Messages & Flows, Microsoft Teams Adaptive Cards/AI Library, LINE LIFF/Flex Messages, or WeChat Mini Programs.
- Read references/conversation-design.md when designing progressive disclosure, ephemeral vs persistent state, idempotent interaction lifecycles, plain-text fallbacks, and privacy/anti-slop rules across any chat surface.
- Read references/agentic-workspace.md when designing app-owned AI workspaces: streaming scroll-yield, tool/reasoning traces, approval gates, split artifact panes, branching/edit-and-fork, multimodal/voice/
@-mentions, resumable runs, context transparency, and streaming Markdown/XSS safety. - Read references/ai-ui-libraries.md when implementing AI frontend SDKs and protocols: Vercel AI SDK v5/v6 (React, Vue, Svelte, Angular),
assistant-ui, CopilotKit v2, AG-UI, MCP Apps/MCP-UI, OpenAI Apps SDK (window.openai), Google A2UI, AI Elements/prompt-kit, or LangGraphuseStream.