AI SDK
vercel-labs/ai-facts
Answer questions about the AI SDK and help build AI-powered features.
A skill your agent uses when adding chat routes, LLM tools, structured outputs, or streaming UI with the Vercel AI SDK in this Next.js AI app.
$ npx skills add johnku2011/boilerplates-with-ai-skills --skill nextjs-ai-sdk -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install johnku2011/boilerplates-with-ai-skills nextjs-ai-sdk --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/johnku2011/boilerplates-with-ai-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/boilerplates/nextjs-ai-app/skills/nextjs-ai-sdk .claude/skills/nextjs-ai-sdk && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "nextjs-ai-sdk" agent skill from https://github.com/johnku2011/boilerplates-with-ai-skills/tree/main/boilerplates/nextjs-ai-app/skills/nextjs-ai-sdk into .claude/skills/nextjs-ai-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nextjs-ai-sdk", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/johnku2011/boilerplates-with-ai-skills/tree/main/boilerplates/nextjs-ai-app/skills/nextjs-ai-sdkType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add johnku2011/boilerplates-with-ai-skills --skill nextjs-ai-sdk -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install johnku2011/boilerplates-with-ai-skills nextjs-ai-sdk --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/johnku2011/boilerplates-with-ai-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/boilerplates/nextjs-ai-app/skills/nextjs-ai-sdk .agents/skills/nextjs-ai-sdk && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "nextjs-ai-sdk" agent skill from https://github.com/johnku2011/boilerplates-with-ai-skills/tree/main/boilerplates/nextjs-ai-app/skills/nextjs-ai-sdk into .agents/skills/nextjs-ai-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nextjs-ai-sdk", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add johnku2011/boilerplates-with-ai-skills --skill nextjs-ai-sdk -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install johnku2011/boilerplates-with-ai-skills nextjs-ai-sdk --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/johnku2011/boilerplates-with-ai-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/boilerplates/nextjs-ai-app/skills/nextjs-ai-sdk .cursor/skills/nextjs-ai-sdk && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "nextjs-ai-sdk" agent skill from https://github.com/johnku2011/boilerplates-with-ai-skills/tree/main/boilerplates/nextjs-ai-app/skills/nextjs-ai-sdk into .cursor/skills/nextjs-ai-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nextjs-ai-sdk", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/johnku2011/boilerplates-with-ai-skills.git --path boilerplates/nextjs-ai-app/skills/nextjs-ai-sdk--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add johnku2011/boilerplates-with-ai-skills --skill nextjs-ai-sdk -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install johnku2011/boilerplates-with-ai-skills nextjs-ai-sdk --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/johnku2011/boilerplates-with-ai-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/boilerplates/nextjs-ai-app/skills/nextjs-ai-sdk .gemini/skills/nextjs-ai-sdk && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "nextjs-ai-sdk" agent skill from https://github.com/johnku2011/boilerplates-with-ai-skills/tree/main/boilerplates/nextjs-ai-app/skills/nextjs-ai-sdk into .gemini/skills/nextjs-ai-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nextjs-ai-sdk", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install johnku2011/boilerplates-with-ai-skills nextjs-ai-sdkInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add johnku2011/boilerplates-with-ai-skills --skill nextjs-ai-sdk -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/johnku2011/boilerplates-with-ai-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/boilerplates/nextjs-ai-app/skills/nextjs-ai-sdk .github/skills/nextjs-ai-sdk && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "nextjs-ai-sdk" agent skill from https://github.com/johnku2011/boilerplates-with-ai-skills/tree/main/boilerplates/nextjs-ai-app/skills/nextjs-ai-sdk into .github/skills/nextjs-ai-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nextjs-ai-sdk", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add johnku2011/boilerplates-with-ai-skills --skill nextjs-ai-sdk -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install johnku2011/boilerplates-with-ai-skills nextjs-ai-sdk --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/johnku2011/boilerplates-with-ai-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/boilerplates/nextjs-ai-app/skills/nextjs-ai-sdk .opencode/skills/nextjs-ai-sdk && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "nextjs-ai-sdk" agent skill from https://github.com/johnku2011/boilerplates-with-ai-skills/tree/main/boilerplates/nextjs-ai-app/skills/nextjs-ai-sdk into .opencode/skills/nextjs-ai-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nextjs-ai-sdk", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
nextjs-ai-sdkA skill your agent uses when adding chat routes, LLM tools, structured outputs, or streaming UI with the Vercel AI SDK in this Next.js AI app.
Nextjs AI SDK is an agent skill from johnku2011/boilerplates-with-ai-skills. Use when adding chat routes, LLM tools, structured outputs, or streaming UI with the Vercel AI SDK in this Next.js AI app.
Its SKILL.md is about 450 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Next.js App Router + AI SDK + Zod; requires OPENAIAPIKEY (or compatible provider env)
It sits in AI & LLM Engineering, covering Structured output and tool calling. It works with Vercel AI SDK, Next.js, npm and Zod. The licence is MIT.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 475dc6a. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
ReadBashFrom allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
npmFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
OPENAI_API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Next.js App Router + AI SDK + Zod; requires OPENAI_API_KEY (or compatible provider env)
From compatibility in the SKILL.md frontmatter.
Nextjs AI SDK loads about 446 tokens when it runs. Until then it costs about 34 tokens; SKILL.md has 211 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
allowed-tools: Read, BashAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from johnku2011/boilerplates-with-ai-skills at commit 475dc6a, republished under its MIT licence (© johnku2011). 211 words, ~446 tokens.
.claude/skills/nextjs-ai-sdk/SKILL.md (or your agent's skills folder).Build AI product features with the Vercel AI SDK: server route handlers for streaming, Zod-validated tool schemas, and thin client UI. Keep secrets and model calls on the server.
app/api/chat/route.ts with streamText (or equivalent) — never
call providers from client components with secret keys.lib/tools.ts (or colocated modules); return
typed, small results agents/UI can render.generateObject / schema) when the UI needs a
known shape instead of free-form prose.app/page.tsx (or chat UI) as a client leaf; pass messages to the API
route only.npm run typecheck and npm run build. Smoke the chat UI with
npm run dev when changing streaming behavior.OPENAI_API_KEY (or provider env) only on the server.project-security before shipping.NEXT_PUBLIC_*.© johnku2011, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in boilerplates/nextjs-ai-app/skills/nextjs-ai-sdk of johnku2011/boilerplates-with-ai-skills.
Open the folder on GitHubat commit 475dc6a
Nextjs AI SDK next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Nextjs AI SDK this skilljohnku2011/boilerplates-with-ai-skills | 240 | — | ~446 | Automated safety check: Notes | MIT | |
| AI SDKvercel-labs/ai-facts | 168 | 21 repos | ~1.2k | Automated safety check: Pass | None | |
| Vercel AI SDK Expertmajiayu000/claude-skill-registry | 666 | 3 repos | ~2.2k | Automated safety check: Pass | MIT | |
| Adynato Web APImajiayu000/claude-skill-registry | 666 | 1 repos | ~2k | Automated safety check: Pass | MIT | |
| Mem0 Provider for Vercel AI SDKmem0ai/mem0 | 67k | — | ~2.3k | Automated safety check: Pass | Apache-2.0 | |
| AI SDK Developmenttrypostit/trypost | 678 | 2 repos | ~3.5k | Automated safety check: Pass | MIT |
vercel-labs/ai-facts
Answer questions about the AI SDK and help build AI-powered features.
majiayu000/claude-skill-registry
Expert in the Vercel AI SDK. An agent skill from majiayu000/claude-skill-registry.
majiayu000/claude-skill-registry
Web API development conventions for Adynato projects. An agent skill from majiayu000/claude-skill-registry.
mem0ai/mem0
Adds persistent memory to Vercel AI SDK apps with the Mem0 provider, using a wrapped model or standalone retrieve and store utilities.
trypostit/trypost
TRIGGER when working with ai-sdk which is Laravel official first-party AI SDK.
ryokun6/ryos
Add or modify an AI chat tool ("Ask Ryo" capability) in ryOS.
johnku2011/boilerplates-with-ai-skills
A skill your agent uses when reviewing security-sensitive code paths — check auth, secrets, input validation, dependency risk, and data exposure before shipping.
johnku2011/boilerplates-with-ai-skills
A skill your agent uses when reviewing a diff or pull request — check correctness, tests, readability, security, and server/client boundaries before approving.
johnku2011/boilerplates-with-ai-skills
A skill your agent uses when adding or changing FastAPI routes, dependencies, or tests in this Python service — keep endpoints typed, validated, and covered by pytest.
johnku2011/boilerplates-with-ai-skills
Use before scaffolding a bwai project — runs the full startup-goal workflow then recommends the right boilerplate and outputs the exact bwai new command to run.
johnku2011/boilerplates-with-ai-skills
A skill your agent uses when deploying or configuring this project on Vercel — env vars, build settings, serverless limits, and production checks for Next.js or Express.
johnku2011/boilerplates-with-ai-skills
A skill your agent uses when adding or changing routes, middleware, or error handling in this Express.js API, to keep endpoints consistent, validated, and testable.
Works with
Categories
A skill your agent uses when adding chat routes, LLM tools, structured outputs, or streaming UI with the Vercel AI SDK in this Next.js AI app. Nextjs AI SDK is an agent skill from johnku2011/boilerplates-with-ai-skills.js AI app.
Nextjs AI SDK fits situations like: adding chat routes; structured outputs; streaming UI with the Vercel AI SDK in this Next.js AI app.
Run `npx skills add johnku2011/boilerplates-with-ai-skills --skill nextjs-ai-sdk -a claude-code`. Or copy the skill folder (boilerplates/nextjs-ai-app/skills/nextjs-ai-sdk in johnku2011/boilerplates-with-ai-skills) into .claude/skills/nextjs-ai-sdk in your project. Claude Code loads it when a task matches its description.
Run `npx skills add johnku2011/boilerplates-with-ai-skills --skill nextjs-ai-sdk -a codex`. Or copy the skill folder (boilerplates/nextjs-ai-app/skills/nextjs-ai-sdk in johnku2011/boilerplates-with-ai-skills) into .agents/skills/nextjs-ai-sdk in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add johnku2011/boilerplates-with-ai-skills --skill nextjs-ai-sdk -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/nextjs-ai-sdk, .gemini/skills/nextjs-ai-sdk, .github/skills/nextjs-ai-sdk and .opencode/skills/nextjs-ai-sdk in your project.
Going by SKILL.md and its folder, Nextjs AI SDK needs the command-line tools its instructions call (npm) and credentials named OPENAI_API_KEY. Our summary lists: A credential in OPENAI_API_KEY. Its frontmatter pre-approves these tools: Read, Bash. Compatibility (from SKILL.md): Next.js App Router + AI SDK + Zod; requires OPENAI_API_KEY (or compatible provider env).
SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Nextjs AI SDK is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 446 tokens (SKILL.md is roughly 1.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Nextjs AI SDK: AI SDK (vercel-labs/ai-facts, 168 stars), Vercel AI SDK Expert (majiayu000/claude-skill-registry, 666 stars), Adynato Web API (majiayu000/claude-skill-registry, 666 stars) and Mem0 Provider for Vercel AI SDK (mem0ai/mem0, 67k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
johnku2011 (a GitHub user) maintains it in johnku2011/boilerplates-with-ai-skills, which has 240 GitHub stars. The repository holds 18 skills in this directory. The repository was last updated on August 24, 2026.
Source: johnku2011/boilerplates-with-ai-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.