skills/frontend/assistant-chat-ui/SKILL.md
Patterns for AI assistant UIs — chat, tool rendering, rich components. Uses assistant-ui + Vercel AI SDK + json-render + shadcn + TanStack Query. For chat interfaces, agent dashboards, conversational UIs.
npx skillsauth add devjarus/coding-agent assistant-chat-uiInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
@assistant-ui/react -- Chat UI primitives (Thread, messages, composer)
@assistant-ui/react-ai-sdk -- Bridges assistant-ui with Vercel AI SDK
@assistant-ui/react-markdown -- Markdown rendering in chat messages
ai -- Vercel AI SDK (streaming, transport)
@ai-sdk/react -- React hooks (useChat)
@json-render/react -- JSON-to-component rendering for structured output
@json-render/shadcn -- Pre-built shadcn components for json-render
@tanstack/react-query -- Server state for threads, settings, side panels
shadcn/ui -- Component library (cards, buttons, dialogs)
useChat with AssistantRuntimeProvidermakeAssistantToolUI; show loading/complete/error statesCompositeAttachmentAdapter (PDFs, images)@json-render/react + shadcn catalogprepareSendMessagesRequest to send only the last message when server has historyonError -- network, auth, model, timeoutCompositeAttachmentAdaptertesting
Multi-source research method — decompose a question, fan out parallel investigators, interleaved-think each result, verify claims adversarially, synthesize a cited answer. Use for breadth-heavy research, stack comparisons, "which approach wins" questions.
testing
Decide when to use unit vs integration vs e2e tests, and when to mock vs use the real thing per dependency. Dependency injection is the enabler — without it you end up monkey-patching imports. Apply when writing tests of any kind.
development
Test-driven development process — write failing test, implement to pass, refactor. Use when implementing any feature or fixing bugs.
development
Patterns for sharing types, API contracts, and validation schemas between frontend and backend. Use when multiple domains consume the same data shapes to prevent contract drift.