vue-ai-apps
Building AI/LLM and agent apps with Vue 3 and Nuxt: streaming chat UIs, the Vercel AI SDK (`ai` + `@ai-sdk/vue`), `useChat`, tool calling, structured output…
Skill by PyModel
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/pymodel-vue-ai-apps
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend, cloud, ml, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/vue-ai-apps
What's inside
- Skill name
vue-ai-apps- Description
- Building AI/LLM and agent apps with Vue 3 and Nuxt: streaming chat UIs, the Vercel AI SDK (`ai` + `@ai-sdk/vue`), `useChat`, tool calling, structured output, and abort/error handling. Load for AI chatbots, assistant UIs, LLM streaming, or agent frontends in Vue or Nuxt.
- License
- MIT
- Instructions
- 45 lines in SKILL.md · view on GitHub
Files (5)
- SKILL.md
- error-handling-and-abort.md · references/
- streaming-chat-ui.md · references/
- structured-output.md · references/
- tool-calling.md · references/
SKILL.md (first lines)
# Vue AI Apps Workflow
Building the **Vue/Nuxt front end** for LLM and agent features with the Vercel AI SDK. This skill covers the Vue-specific integration; the model layer (`streamText`, `tool`, providers) is shown as shape only — follow the AI SDK docs for the current core API, which moves between minor versions.
Assumes the foundations in `vue-best-practices` (Composition API, `<script setup lang="ts">`, composables). Load that skill for component structure and reactivity.
## Core Principles
- **Keys never reach the client.** The provider API key lives on the server. The browser talks to *your* endpoint, never to the model provider directly.
- **Server streams, client consumes.** A server route runs `streamText`/`streamObject` and returns a stream; the Vue component renders it incrementally. Never block on the full response.
- **Render message *parts*, not a content string.** AI SDK messages are `UIMessage[]` made of typed `parts` (text, tool calls, reasoning). Iterate `message.parts`.
- **Drive UI from `status`, not a boolean.** Disabled inputs, spinners, and the stop button key off the `status` state machine.
## 1) Confirm the stack (required)
- Packages: `ai` (core), `@ai-sdk/vue` (composables), a provider (`@ai-sdk/openai`, `@ai-sdk/anthropic`, …), `zod` for tool/object schemas.
- `useChat` from `@ai-sdk/vue` works against **any** streaming backend. The server snippets here use **Nuxt/Nitro** (`defineEventHandler`, `readBody`); for a non-Nuxt backend, keep the same AI SDK calls in your own route handler.
- This skill targets the **v5+ API**, verified against `ai@7` / `@ai-sdk/vue@4`: messages have `parts`; the hook does not manage input; `status` is `'submitted' | 'streaming' | 'ready' | 'error'`; tool schemas use `inputSchema`; `useObject` is exported as `experimental_useObject`. The pre-v5 API (`ai@4`: `message.content`, hook-managed `input`, `isLoading`, `parameters`) differs — check the installed version first.
## 2) Build the streaming chat UI (required for chat features)
- Reference: [streaming-chat-ui](references/streaming-chat-ui.md)
- Server route streams with `streamText` + `toUIMessageStreamResponse()`.
- Client: `useChat()` returns Vue refs. Own your own `input` ref; call `sendMessage({ text })`. Render `message.parts`.
## 3) Add capabilities only when the feature needs them
- **Tool calling** (agent actions, function calling) → [tool-calling](references/tool-calling.md)
- **Structured output** (stream a typed object, not chat) → [structured-output](references/structured-output.md)
## 4) Handle abort and errors (required before shipping)
- Reference: [error-handling-and-abort](references/error-handling-and-abort.md)
- Wire `stop()`, the `error` ref, and `onError`. A streaming UI without an abort path is not done.
## 5) Final self-check
- Provider key is server-only; no key or provider call in client code.
- Component renders `message.parts`, not `message.content`.
- Input is disabled and a stop button shows while `status` is `submitted`/`streaming`.
- Errors are surfaced to the user and retryable (`clearError()` + `regenerate()`).
- Tool/object schemas validate input with `zod`.
- Core AI SDK calls were checked against the installed SDK version, not assumed.From PyModel/vue3-best-practices, MIT.
More from PyModel/vue3-best-practices
- 0.552score
vue-best-practices
github.com/PyModel
MUST be used for Vue.js tasks.
SkillBFreshness: B★ 1Claude Code +9 - 0.547score
vue-debug-guides
github.com/PyModel
Vue 3 debugging and error handling for runtime errors, warnings, async failures, and SSR/hydration issues.
SkillBFreshness: B★ 1Claude Code +9 - 0.544score
vue-router-best-practices
PyModel
Vue Router 4/5 patterns, navigation guards, route params, file-based routing, and route-component lifecycle interactions.
SkillBFreshness: B★ 1Claude Code +9 - 0.544score
vue-testing-best-practices
PyModel
Use for Vue.js testing.
SkillBFreshness: B★ 1Claude Code +9 - 0.539score
vue-pinia-best-practices
PyModel
Pinia stores, state management patterns, store setup, and reactivity with stores (Pinia 2-4: store API unchanged; v4 is ESM-only and requires…
SkillBFreshness: B★ 1Claude Code +9 - 0.536score
vue-options-api-best-practices
PyModel
Vue 3 Options API style (data(), methods, this context).
SkillBFreshness: B★ 1Claude Code +9 - 0.536score
vue-jsx-best-practices
PyModel
JSX syntax in Vue (e.g., class vs className, JSX plugin config).
SkillBFreshness: B★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Aug 16, 2026 (2 months ago)
- Last release
- Aug 16, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/PyModel/vue3-best-practices
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from PyModel
- 0.665score
Designer Skill MCP
PyModel
UI design MCP: design references, intent routing, anti-slop static detector and gate.
ConnectorAFreshness: ALocalRead-only★ 48Claude Code +5 - 0.595score
Claude Agy MCP
PyModel
Delegate heavy tasks from Claude Code to the Antigravity CLI (Gemini) with quota-aware failover.
ConnectorBFreshness: BLocal★ 7Claude Code +5 - 0.544score
vue-router-best-practices
PyModel
Vue Router 4/5 patterns, navigation guards, route params, file-based routing, and route-component lifecycle interactions.
SkillBFreshness: B★ 1Claude Code +9 - 0.544score
vue-testing-best-practices
PyModel
Use for Vue.js testing.
SkillBFreshness: B★ 1Claude Code +9 - 0.539score
vue-pinia-best-practices
PyModel
Pinia stores, state management patterns, store setup, and reactivity with stores (Pinia 2-4: store API unchanged; v4 is ESM-only and requires…
SkillBFreshness: B★ 1Claude Code +9 - 0.536score
vue-options-api-best-practices
PyModel
Vue 3 Options API style (data(), methods, this context).
SkillBFreshness: B★ 1Claude Code +9
Cite this page
vue-ai-apps skill. Agent Mart. https://agentmart.dev/skills/pymodel-vue-ai-apps (last updated 2026-10-24)