Skip to content
Back to skills

Agent Studio Chat

ASecurity

Work on Agent Studio chat (UI + streaming) and the /api/chat route. Use for tasks like message rendering, reasoning display, editing/regenerate, Zustand chat stores, model/settings UI, and OpenRouter or Vercel AI SDK integration. 聊天功能开发/排障:流式输出、Reasoning 展示、消息编辑与重新生成、模型与参数设置。

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
developmentapi

Works with

  • api

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill agent-studio-chat --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agent Studio Chat?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Agent Studio Chat
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-agent-studio-chat/badge)](https://www.skillsdirectory.com/skills/david-li0406-agent-studio-chat)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: agent-studio-chat
description: Work on Agent Studio chat (UI + streaming) and the /api/chat route. Use for tasks like message rendering, reasoning display, editing/regenerate, Zustand chat stores, model/settings UI, and OpenRouter or Vercel AI SDK integration. 聊天功能开发/排障:流式输出、Reasoning 展示、消息编辑与重新生成、模型与参数设置。
---

# Agent Studio Chat

## Follow the data flow

- Start from `src/components/features/chat/hooks/useChatLogic.ts` (Vercel AI SDK `useChat` + `DefaultChatTransport`).
- Server route is `src/app/api/chat/route.ts` (OpenRouter provider + `streamText`).
- UI entry is `src/components/features/chat/ChatInterface.tsx` (Virtuoso list + `ChatInput`).

## Know the state layers

- Conversation persistence: `src/lib/store/useChatStore.ts`
- UI-only transient state (editing/copy): `src/lib/store/useChatUIStore.ts`
- Model + sampling + system instructions: `src/lib/store/useSettingsStore.ts` and `src/components/features/settings/SettingsPanel.tsx`

## Make safe changes

- Preserve `UIMessage.parts` when needed (reasoning parts may carry provider metadata; see `src/app/api/chat/route.ts`).
- Prefer adding new transient UI flags to `useChatUIStore` to avoid prop drilling.
- Keep feature code under `src/components/features/chat/` and reuse `src/components/ui/*` primitives.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…