laguagu/claude-code-nextjs-skills / skills/nextjs-chatbot
nextjs-chatbot
VerifiedProduction Next.js web-chat integration: tool approval, persisted conversations, tool result UI, grounded retrieval, follow-up suggestions and embedded widgets. Use when building or debugging a web chatbot that needs these features. Use nextjs-shadcn for scaffolding and ai-sdk for general SDK APIs; multi-platform bots use Chat SDK.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 5.6 KB |
| hitl.md | markdown | 4.1 KB |
| persistence.md | markdown | 4.0 KB |
| popup-widget.md | markdown | 1.6 KB |
| search.md | markdown | 1.8 KB |
| suggestions.md | markdown | 1.4 KB |
| testing.md | markdown | 2.2 KB |
| tool-rendering.md | markdown | 1.7 KB |
| web-search.md | markdown | 1.6 KB |
web-search.md
View on GitHub# Web search
Use external web search when the supported task needs public or current
information beyond the application's authoritative sources. Decide allowed
source scope and provider data policy before adding it.
Check the selected model, endpoint and installed provider for native search
support. Capabilities differ between providers and deployments; Azure names
are user-defined, so do not infer endpoint support from a name regex. A
third-party search SDK or server-side fetch is an alternative when it fits the
task.
Treat search results and fetched text as untrusted data. Keep tool permissions
and trusted instructions separate from retrieved content. Validate fetch
destinations, redirects and response size to prevent access to private network
resources or unbounded downloads. Apply timeouts and bound source counts.
Preserve source URLs, relevant timestamps and citation metadata through the
tool/UI path. Provider source parts reach `useChat` as `source-url` or
`source-document` only when the UI stream sets `sendSources: true` (default
`false`); custom tool citations need their own typed result path. Answer with
useful sources and distinguish fresh evidence,
stale evidence, missing coverage and tool failure.
Cache by source/query policy and the required freshness, not a universal
one-hour TTL. Include identity/authorization in keys where results differ.
Search failure should not silently produce a fabricated answer.
Use the installed provider docs and the
[AI SDK provider index](https://ai-sdk.dev/providers) for current capability
contracts; use [search.md](search.md) for application retrieval.
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: 198k | 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: 198k | 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: 198k | Updated | Claude CodeCodex | Verified | Install |