dashboard-chat-best-practices
Skill5.5k starsChanged 2 months agoApache-2.0View on GitHub
Apply dashboard-grade chat UX patterns in the Eve chat template. Use when changing Next.js Cache Components/PPR behavior, static shell layout, Suspense bootstrap boundaries, theme hydration, auth display hydration, signed-in/signed-out static shell behavior, optimistic messages, streaming row identity, composer/sidebar interactions, thinking/tool rendering, responsive styling, visual polish, or Vercel dashboard chat comparisons.
Trending
Quiet since September.about the whole repository
Who's talking about vercel/eve
- @projectnothing.bsky.social“When frameworks like eve break out, it’s a sign: AI agents are no longer side projects—they’re becoming a …”Bluesky · Jun 17, 2026 · 3 likes
- @github-trending-js.bsky.social“📦 vercel / eve ⭐ 5,184 (+40) 🗒 TypeScript The Open Framework for Building Agents”Bluesky · Sep 17, 2026 · 2 likes
- DataDog/dd-trace-js“feat(llmobs): add external experiment recorder”GitHub · Jul 31, 2026 · 2 reactions
- ComposioHQ/composio“chore(deps-dev): bump the npm-development group with 8 updates”GitHub · Sep 25, 2026 · 1 reactions
- @technews4869.bsky.social“github.com/vercel/eve GitHub - vercel/eve: The Open Framework for Building Agents”Bluesky · Sep 20, 2026 · 1 likes
The biggest 5 of 23 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 23
Talked about on GitHub and Bluesky (23 times).
On GitHub · 17
- Jul 31, 2026feat(llmobs): add external experiment recorder — DataDog/dd-trace-js2 reactions · 5 comments
- Sep 25, 2026chore(deps-dev): bump the npm-development group with 8 updates — ComposioHQ/composio1 reaction · 4 comments
- Sep 14, 2026chore(deps): bump the production-dependencies group across 1 directory with 13 updates — byronwade/rebuzzle.byronwade.com1 reaction · 5 comments
- Sep 11, 2026chore(deps-dev): bump the npm-development group with 5 updates — ComposioHQ/composio1 reaction · 4 comments
- Sep 7, 2026chore(deps): bump the production-dependencies group across 1 directory with 12 updates — byronwade/rebuzzle.byronwade.com1 reaction · 4 comments
12 more on GitHub
- Sep 1, 2026@nuxt/kit missing @nuxt/schema dependency breaks TypeScript with pnpm 12 GVS — nuxt/nuxt1 reaction
- Aug 31, 2026chore(deps): bump the production-dependencies group with 11 updates — byronwade/rebuzzle.byronwade.com1 reaction · 4 comments
- Aug 13, 2026基于 vercel/eve 实现 agents demo 切片 — SawanaLabs/agent-demos1 reaction · 3 comments
- Jul 28, 2026fix(nitro): vercel function rules - preserve relative symlinks — nitrojs/nitro1 reaction · 4 comments
- Jul 3, 2026Add Eve adapter (eve_gateway + eve_local) — paperclipai/paperclip1 reaction · 5 comments
- Jun 30, 2026Install eve skill from vercel/eve — TommyBez/evex1 reaction · 2 comments
- Jun 19, 2026[codex] Read downloads from the sandbox stream — remiconnesson/eve-single-user-agent-starter1 reaction · 1 comment
- Sep 6, 2026build(deps-dev): bump eve from 0.29.2 to 0.51.0 — caveman-ai/agent-sdk0 reactions
- Aug 31, 2026chore(deps): bump eve from 0.22.6 to 0.47.2 — Guileszz/supercli0 reactions · 1 comment
- Aug 26, 2026Bump eve from 0.30.8 to 0.44.3 — aishah-dot/eca0 reactions · 2 comments
- Aug 26, 2026chore(deps): bump eve from 0.31.3 to 0.44.3 in /examples/eve-langfuse-poc — AiLabSportnavi/LangfuseMonitoring0 reactions · 1 comment
- Aug 21, 2026deps: bump eve from 0.38.3 to 0.39.0 — jamesnavinhill/luna0 reactions · 1 comment
On Bluesky · 6
- Jun 17, 2026When frameworks like eve break out, it’s a sign: AI agents are no longer side projects—they’re becoming a new pillar of mainstream software… — @projectnothing.bsky.social3 likes and reposts
- Sep 17, 2026📦 vercel / eve ⭐ 5,184 (+40) 🗒 TypeScript The Open Framework for Building Agents — @github-trending-js.bsky.social2 likes and reposts
- Sep 20, 2026github.com/vercel/eve GitHub - vercel/eve: The Open Framework for Building Agents — @technews4869.bsky.social1 likes and repost
- Aug 11, 2026Cloudflare OS blog: blog.cloudflare.com/cloudflare-os/, github.com/cloudflare/cloudflare-os Vercel eve: vercel.com/blog/introducing-eve ·… — @akash-bhatia.bsky.social1 likes and repost
- Jul 2, 2026Vercel's eve is a filesystem-first framework for durable AI agents: an agent is a directory of instructions, tools, skills, channels, and… — @agentpalisade.bsky.social1 likes and repost
1 more on Bluesky
- Jun 17, 2026The Framework for Building Agents https://github.com/vercel/eve — @laxima-tech.bsky.social1 likes and repost
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- apps/docs/AGENTS.mdAGENTS.md
- apps/templates/eve-chat-template/AGENTS.mdAGENTS.md
- apps/templates/eve-llm-council-template/AGENTS.mdAGENTS.md
- apps/templates/eve-slack-agent-template/AGENTS.mdAGENTS.md
- apps/templates/personal-agent-template/AGENTS.mdAGENTS.md
- packages/eve-code/AGENTS.mdAGENTS.md
- packages/eve-computer-use/AGENTS.mdAGENTS.md
- apps/templates/eve-chat-template/CLAUDE.mdCLAUDE.md
- apps/templates/eve-llm-council-template/CLAUDE.mdCLAUDE.md
- apps/templates/eve-slack-agent-template/CLAUDE.mdCLAUDE.md
- apps/templates/personal-agent-template/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- gh-pr-descriptionSkill
- technical-writingSkill
- test-auditSkill
- eve-chat-template-eveSkill
- mounted-skillSkill
- local-guideSkill
- toolkit-guideSkill
- investigateSkill
- lookup-agent-runSkill
- prSkill
- reviewSkill
- eveSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
33 rules. About 0 are common, 20 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈20
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill to keep the template's web chat feeling like a polished dashboard surface: stable, quiet, fast to first paint, and …
- Distinctive: line 15
Keep the aesthetic restrained and work-focused: dense but readable spacing, quiet borders, predictable controls, and minimal decoration.
- Distinctive: line 16
Prefer existing shadcn/Tailwind primitives and local components over new abstractions.
- Distinctive: line 17
Use icons for compact commands, with accessible labels/tooltips.
- Very specific: line 21
Keep cacheComponents: true enabled in next.config.ts.
- Very specific: line 22
Keep the shell cheap and deterministic.
- Very specific: line 25
Use sync components to hand resolved server data to the client shell.
- Very specific: line 26
Keep Suspense fallbacks null for these sync boundaries when the visible shell already has stable placeholders.
- Very specific: line 27
Do not call notFound() until the dynamic boundary has enough real viewer/setup/chat data to prove the chat is inaccessible.
- Distinctive: line 28
Keep root and session routes visually distinct but structurally compatible.
- Distinctive: line 29
Treat PPR/static shell work as a latency feature and a correctness feature.
- Distinctive: line 34
Keep bootstrap data out of the blocking route path.
- Distinctive: line 37
Never treat the auth hint as authority.
- Very specific: line 38
Keep suppressHydrationWarning only where it protects known pre-hydration document mutations such as theme/auth display hints.
- Very specific: line 45
After bootstrap resolves, render from real viewer state: viewer ?
- Very specific: line 46
When a signed-out user submits text, save the draft to sessionStorage, open the auth modal, and restore the draft after sign-in.
- Distinctive: line 52
Keep live chat state centralized where possible.
- Distinctive: line 53
Prefer stable row identities for streaming responses.
- Distinctive: line 54
Use a separate thinking presence only when there is no meaningful assistant text yet or a turn is still finalizing.
- Distinctive: line 55
Avoid letting final snapshot writes fight live state.
- Very specific: line 59
Keep ChatComposer controlled by the page: value, onChange, onSubmit, disabled, disabledReason, isBusy, and isPreparing.
- Very specific: line 64
Keep sidebar history cursor-paginated and optimistic.
- Distinctive: line 65
Keep mobile sidebar overlay behavior separate from desktop persistent state.
- Distinctive: line 70
Use Streamdown for assistant markdown.
- Distinctive: line 74
Keep text inside controls and cards from overflowing at mobile widths.
- Very specific: line 78
Use the existing token system: background, foreground, muted, border, card, accent, and local opacity patterns.
- Distinctive: line 79
Keep cards modest. Do not nest cards inside cards.
- Distinctive: line 80
Keep radius consistent with the template.
- Distinctive: line 81
Avoid large decorative gradients, orbs, blobs, and marketing-style hero layouts in the chat app.
- Very specific: line 82
Use lucide icons when an icon exists.
- Distinctive: line 83
Avoid layout shifts from loading, hover, or stream state.
- Very specific: line 87
Run pnpm typecheck and pnpm build after UI or app-router changes.
- Distinctive: line 89
Use screenshots or browser checks for visual changes across desktop and mobile.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Dashboard Chat Best Practices
Overview
Use this skill to keep the template's web chat feeling like a polished dashboard surface: stable, quiet, fast to first paint, and predictable under streaming state.
Product Shape
- Build the actual chat surface, not a marketing page. The first screen should be a usable composer, sidebar, or chat route.
- Keep the aesthetic restrained and work-focused: dense but readable spacing, quiet borders, predictable controls, and minimal decoration.
- Prefer existing shadcn/Tailwind primitives and local components over new abstractions.
- Use icons for compact commands, with accessible labels/tooltips. Avoid explanatory in-app text for behavior that good controls can imply.
Cache Components And PPR Basics
- Keep
cacheComponents: trueenabled innext.config.ts. Treat the chat route as a static shell with dynamic data streamed into Suspense boundaries. - Keep the shell cheap and deterministic. Do not make
app/(chat)/layout.tsxwait on auth, database, chat history, or per-chat data before rendering the shell. - Pass cheap initial state into
AgentChatShell: empty history,initialNextCursor: null,viewer: null, andgetInitialSetupStatus(). - Load expensive or request-bound data inside hidden Suspense children:
ResolvedChatBootstrapfor setup/viewer/sidebar history andExistingChatfor active chat data. - Use sync components to hand resolved server data to the client shell.
AgentChatBootstrapSyncshould update setup status, viewer, and history.AgentChatRouteSyncshould update the active chat for the current route. - Keep Suspense fallbacks
nullfor these sync boundaries when the visible shell already has stable placeholders. Do not add loading panels that push the chat frame around. - Do not call
notFound()until the dynamic boundary has enough real viewer/setup/chat data to prove the chat is inaccessible. The outer shell should still render while that decision is loading. - Keep root and session routes visually distinct but structurally compatible. The root page can center the composer; the session page can pin it near the bottom. Both should live inside the same shell.
- Treat PPR/static shell work as a latency feature and a correctness feature. The goal is first paint without auth/database blocking, then precise data reconciliation after bootstrap.
Static Shell And Hydration
- Preserve the shell-first strategy.
AgentChatShellshould paint the sidebar frame, top controls, and route body before auth, setup, or chat history finishes loading. - Keep bootstrap data out of the blocking route path. Use hidden Suspense sync components to hydrate setup status, viewer, sidebar history, and active chat data.
- Preserve theme pre-hydration. Theme should be resolved before React paints so dark/light mode does not flash or mismatch.
- Preserve auth display pre-hydration. The
eve_logged_incookie is a display hint only; the head script setsdata-eve-auth-displayso CSS can hide the wrong signed-in/signed-out branch before viewer data resolves. - Never treat the auth hint as authority. Server actions, chat loading, Eve auth, and rate limits must use the real Better Auth session.
- Keep
suppressHydrationWarningonly where it protects known pre-hydration document mutations such as theme/auth display hints.
Same Route, Signed In Or Out
- Render one shared route shell for signed-in and signed-out states. Do not fork the page into separate auth routes just to show different controls.
- While bootstrap is loading, render both possible placeholders inside
AuthDisplayLoggedInandAuthDisplayLoggedOut; let the document dataset hide the wrong branch. - For signed-out users, show the Sign in affordance immediately. For signed-in users, show a neutral user-menu placeholder instead of flashing Sign in.
- After bootstrap resolves, render from real
viewerstate:viewer ? <UserMenu /> : <SidebarSignInButton />. - When a signed-out user submits text, save the draft to
sessionStorage, open the auth modal, and restore the draft after sign-in.
Optimistic Messaging And Row Identity
- Show an optimistic user bubble immediately on send, but keep persisted Eve events as the source of truth.
- Clear the optimistic user bubble only when the reduced event log contains the real latest user message.
- Keep live chat state centralized where possible. Avoid rendering from multiple competing sources in the same frame.
- Prefer stable row identities for streaming responses. A "thinking" or "streaming reply" row should become the assistant row without remounting into a different component path.
- Use a separate thinking presence only when there is no meaningful assistant text yet or a turn is still finalizing. Fade it out rather than abruptly removing it.
- Avoid letting final snapshot writes fight live state. During streaming, prefer the live source; after settle, reconcile with the canonical snapshot.
Composer And Sidebar
- Keep
ChatComposercontrolled by the page:value,onChange,onSubmit,disabled,disabledReason,isBusy, andisPreparing. - Enter should submit. Shift+Enter should insert a newline. Disabled states should expose actionable tooltip text.
- Busy state should show Stop. Preparing state should show a spinner. Empty or over-limit input should disable send without moving layout.
- Root and session pages can place the composer differently, but they should share the same component and control contract.
- Persist desktop sidebar open state in a cookie and write a pre-hydration document hint to avoid open-then-collapse flicker.
- Keep sidebar history cursor-paginated and optimistic. Use
touchChat,removeChat, and title updates for sidebar state; do not make sidebar state the transcript source of truth. - Keep mobile sidebar overlay behavior separate from desktop persistent state.
Message Rendering
- Render user messages as compact right-aligned bubbles. Render assistant text as full-width left-aligned prose.
- Use Streamdown for assistant markdown. Keep code blocks, lists, and inline code readable in both themes.
- Group related dynamic tool parts into compact rows. Expand details only when there is useful input, output, error, or HITL control.
- Render reasoning as a collapsible block. Label active reasoning as "Thinking..." and settled reasoning as "Reasoning".
- Render connection authorization as a structured card, not prose embedded in assistant text.
- Keep text inside controls and cards from overflowing at mobile widths. Prefer stable dimensions for buttons, tool rows, counters, and composer controls.
Styling Rules
- Use the existing token system:
background,foreground,muted,border,card,accent, and local opacity patterns. - Keep cards modest. Do not nest cards inside cards. Use cards for messages, modals, repeated items, or framed controls, not whole-page decoration.
- Keep radius consistent with the template. Avoid large pill shapes unless the local component already uses them.
- Avoid large decorative gradients, orbs, blobs, and marketing-style hero layouts in the chat app.
- Use lucide icons when an icon exists. Add
aria-labelfor icon-only buttons and tooltip text where meaning is not obvious. - Avoid layout shifts from loading, hover, or stream state. Reserve stable space for composer controls, sidebar rows, auth placeholders, and thinking/tool rows.
Verification
- Run
pnpm typecheckandpnpm buildafter UI or app-router changes. - Manually check root signed-out, root signed-in, auth modal draft restore, first-message navigation, follow-up optimistic send, streaming assistant row, Connect/Skip auth cards, theme first paint, desktop sidebar cookie restore, and mobile sidebar overlay when touched.
- Use screenshots or browser checks for visual changes across desktop and mobile. Watch specifically for auth flicker, theme flash, composer jumps, sidebar jumps, and message remount flicker.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

