← Products

AI
⚙ Needs: a Next.js project (opinionated stack: bun, AI SDK 7,…

Next.js Chatbot — production patterns for web chatbots (AI SDK 7)

Opinionated blueprint for production Next.js web chatbots: AI SDK 7 ToolLoopAgent, human-in-the-loop tool approval, PostgreSQL session persistence, consent gating, SQL-first search, per-tool UI rendering, popup widget embedding, streaming error handling, theming, and evals

At a glance
What
Opinionated blueprint for production Next.js web chatbots: AI SDK 7 ToolLoopAgent, human-in-the-loop tool approval, PostgreSQL session persistence, consent gating, SQL-first search, per-tool UI rendering, popup widget embedding, streaming error handling, theming, and evals
Cost
Free
Needs
a Next.js project (opinionated stack: bun, AI SDK 7, shadcn/ui + ai-elements, Drizzle + PostgreSQL); a billed model API key for live responses; check package.json — v6 codebases need the v6 name translations included in the skill
Install
Copy the installer prompt below into your Muse — your agent does the rest.

Version:

@
Created by: @laguagu
⌁

Install

Prerequisites: a Next.js project (opinionated stack: bun, AI SDK 7, shadcn/ui + ai-elements, Drizzle + PostgreSQL); a billed model API key for live responses; check package.json — v6 codebases need the v6 name translations included in the skill Install "Next.js Chatbot — production patterns for web chatbots (AI SDK 7)" for me. It gives my agent @laguagu's production chatbot blueprint: AI SDK 7 ToolLoopAgent setup, route handler with consent gating and PostgreSQL session persistence, human-in-the-loop tool approval, per-tool UI rendering, popup widget embedding, streaming error handling (never leak raw error text to the browser), scope enforcement and prompt-injection defense, grounding rules, theming, and the testing split (UI harness vs model benchmarks). MIT licensed. Repository: https://github.com/laguagu/claude-code-nextjs-skills/blob/main/skills/nextjs-chatbot/SKILL.md 1. Fetch the SKILL.md file (and any helper files) from the repository path into a temporary folder and summarize what it does in one or two sentences. 2. Safety check: review the SKILL.md and scripts for anything suspicious (unexpected network calls, shell commands, credential harvesting). This repo should contain zero secrets in code — the model key lives in env, never in code. Verify that holds here; STOP on any red flag and tell me. 3. Install it as a skill: copy SKILL.md and its helper files into the agent's skills directory, in a folder named "nextjs-chatbot". 4. Verify with no network calls: frontmatter valid, files in place. 5. Report what was installed, where, and what I still need to do myself (e.g. check my AI SDK version against the v6/v7 translation table; add the recommended MCP servers to .mcp.json; set up the PostgreSQL chat_sessions/chat_messages tables; keep my model key in env only). GitHub is optional: if I have a GitHub account or the gh CLI, you may use it; otherwise public access is fine. Never require it unless it's in the prerequisites above. Rules: don't touch anything outside the temp folder and the install target. If anything looks off, stop and ask me.

?

Questions

How do I install a build?

Every product page includes a copy-paste install prompt. Paste it into your Muse and it sets the build up for you — no manual configuration.

Where does my money go?

Straight to the seller. Skill Harbor never processes payments: checkout happens on the seller’s own page, usually Stripe.

What does the ✓ next to a creator’s name mean?

It means we confirmed the identity of the person behind the listing. It says nothing about the code itself — always check a build before installing it.