ai-sdk-ui-v7

ai-sdk-ui-v7 is a skill for Claude Code, Codex from blockmatic/basilic. It costs 62 tokens per session (531 once invoked), scanned A, original, MIT.

A toolkit for building React chat interfaces with Vercel AI SDK version 7, including message sending, response status, and streamed-response handling.

In plain words
What is it for?
Use it to implement or troubleshoot React chat UIs that connect to Vercel AI SDK v7.
Why use it?
It helps avoid common chat-interface problems such as responses not appearing, streams failing to parse, or old state being used.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to implement or troubleshoot React chat UIs that connect to Vercel AI SDK v7.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/blockmatic/basilic/ai-sdk-ui-v7
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add blockmatic/basilic --skill ai-sdk-ui-v7
Clone the repo
git clone --depth 1 https://github.com/blockmatic/basilic

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ai-sdk-ui-v7

README.md
[![agentmods](https://agentmods.dev/badge/skills/blockmatic/basilic/ai-sdk-ui-v7/github.svg)](https://agentmods.dev/skills/blockmatic/basilic/ai-sdk-ui-v7)
Your own site
<a href="https://agentmods.dev/skills/blockmatic/basilic/ai-sdk-ui-v7"><img src="https://agentmods.dev/badge/skills/blockmatic/basilic/ai-sdk-ui-v7/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ai-sdk-ui-v7

Your own site · 80×15
<a href="https://agentmods.dev/skills/blockmatic/basilic/ai-sdk-ui-v7"><img src="https://agentmods.dev/badge/skills/blockmatic/basilic/ai-sdk-ui-v7.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 531 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.00531
Opus 5 $0.00031 $0.00266
Sonnet 5 $0.00012 $0.00106
Haiku 4.5 $0.00006 $0.00053

Measured 5d ago against content hash d8ddea05f834, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

ai-sdk-ui-v7 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (templates/nextjs-api-route.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/ai-sdk-ui-v7/SKILL.md · 48 lines

What it actually says

Skill: ai-sdk-ui

Scope

  • Applies to: @ai-sdk/react useChat and DefaultChatTransport from ai
  • Does NOT cover: Backend generation (see ai-sdk-core)

Assumptions

  • SDK major is ai ^7; @ai-sdk/react is a separate package major. Folder follows ai
  • Never write useChat from memory. Grep node_modules/@ai-sdk/react/docs/ and node_modules/ai/docs/, else https://ai-sdk.dev/docs/ai-sdk-ui/chatbot
  • Chat HTTP may be Fastify; pass transport when the URL is not /api/chat

Principles

  • useChat from @ai-sdk/react; DefaultChatTransport from ai
  • Local input state; sendMessage({ text }); status not isLoading; render message.parts
  • Server: see ai-sdk-core. Handlers use createUIMessageStreamResponse + toUIMessageStream({ stream: result.stream }). Leave deprecated toUIMessageStreamResponse() only when the task is unrelated to streaming or the SDK

Constraints

MUST

  • DefaultChatTransport({ api }) when the endpoint is not /api/chat
  • Disable send while status !== 'ready'

AVOID

  • import { useChat } from 'ai/react'
  • toDataStreamResponse / pipeDataStreamToResponse
  • Pre-v5 handleInputChange / handleSubmit / useAssistant

Interactions

Templates

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 48 lines · 62 tokens per session scan A d8ddea05f834

Subscribe to this mod's changes

ai-sdk-ui-v7 is a skill published in the GitHub repository blockmatic/basilic (89 stars, last pushed yesterday), licensed MIT. It adds 62 tokens to every session and 531 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

langchain

Framework for building LLM-powered applications with agents, chains, and RAG. Supports multiple providers (OpenAI, Anthropic, Google), 500+ integrations, ReAct agents, tool calling, memory management, and vector store retrieval. Use for building chatbots, question-answering systems, autonomous agents, or RAG…

davila7/claude-code-templates · 79 tokens

thinking-orbs

Add accessible animated AI loading and agent-status indicators with the React thinking-orbs library. Use when a chat, copilot, voice, search, generation, or tool-running interface needs a semantic working, searching, solving, listening, composing, or shaping state; when replacing a generic spinner with an AI activity…

MengTo/Skills · 88 tokens

menu-visibility

Track which react-horizontal-scrolling-menu items are on screen: useIsVisible(itemId | 'first' | 'last', defaultValue), useLeftArrowVisible/useRightArrowVisible, the options prop (ratio, rootMargin, threshold), items.getVisible()/subscribe/unsubscribe, and the async IntersectionObserver truth model (items must be seen…

asmyshlyaev177/react-horizontal-scrolling-menu · 112 tokens

ss-reference

Compile screenshots, URLs, Figma exports, or an existing UI into a project-local StyleSeed output grammar with evidence, tokens, confidence, anti-patterns, and a validation screen. Use when the user supplies a design reference that StyleSeed does not already model.

bitjaru/styleseed · 56 tokens

ai-app

Full-stack AI application generator with Next.js, AI SDK, and ai-elements. Use when creating chatbots, agent dashboards, or custom AI applications. Triggers: chatbot, chat app, agent dashboard, AI application, Next.js AI, useChat, streamText, ai-elements, build AI app, create chatbot.

laguagu/claude-code-nextjs-skills · 66 tokens

benchmark

Local-only regression / benchmark skill for ui-clone-skills maintainers. Drives the standard ui-reverse-engineering pipeline against the canonical reference site (https://realfood.gov) and records AE/SSIM, iteration count, gate fail counts, and outcome to benchmark/history.csv so prompt / sub-doc / model-version drift…

voidmatcha/ui-clone-skills · 152 tokens