laguagu/claude-code-nextjs-skills / skills/ai-app
ai-app
VerifiedBuilds full-stack Next.js AI applications with the AI SDK and the shadcn/ui AI Elements patterns. Use when creating a chatbot, agent dashboard or custom AI application.
AI application setup
Build the requested app around its users, data and operations. Keep the existing stack and SDK major unless migration is part of the task; use Bun for new JavaScript projects.
- Resolve the installed AI SDK major through
ai-sdk; useai-sdk-6orai-sdk-7for implementation. For a new app, default to AI SDK 7:ai@7,@ai-sdk/react@4and each provider package atlatest(provider majors differ; Node.js 22+). Keep v6 only when a required dependency pins it. Build new chat UI from the AI Elements patterns in shadcn/ui (https://ui.shadcn.com/docs/ai-elements); they need no v7 patch. The older elements.ai-sdk.dev library (ai-elements) will be deprecated at the end of November 2026, targets v6, and itscontext.tsxfails a v7 typecheck until patched. Read version-matchedai/docs/and provider docs before using web examples. - Use
nextjs-shadcnfor framework setup andfrontend-designfor visual direction. Compose chat UI from the shadcn/ui patterns (Message, Bubble, Message Scroller, Trace; theshadcnskill). For a chatbot, shadcn-ui/chatbot-template is a starting point after upgrading its Next.js (16.3.6) to a release without open security advisories (16.4.5+ on 2026-11-09). Useai-elementsonly for components already copied from elements.ai-sdk.dev. Inspect installed source instead of assuming registry props. - Keep provider credentials and authorization on the server. Resolve model IDs from configuration or the selected provider's catalog.
- Implement the smallest complete user flow. Add persistence, approvals, attachments, search, suggestions or dashboards when the app needs them.
- Match the server stream to the client transport. Verify a second turn, relevant tool states, safe failures and mobile behavior, alongside the project's typecheck/build.
Read for the app being built
- Chatbot: conversation and stream contracts.
- Agent dashboard: execution, approval and run state.
- Examples: current official implementations.
- Project structure: boundaries without a fixed tree.
These references describe requirements, not copyable production templates.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |