Chakra UI v3 Builder
chakra-ui/chakra-ui
Builds responsive, accessible Chakra UI v3 components and layouts, sets up Chakra in new or existing projects, and designs themes with tokens, semantic tokens and recipes.
A skill your agent uses when building Next.js App Router pages, server and client components, fetching data in server components, configuring layouts and middleware, handling routing patterns…
$ npx skills add kid-sid/claude-spellbook --skill nextjs -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install kid-sid/claude-spellbook nextjs --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/kid-sid/claude-spellbook.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/nextjs .claude/skills/nextjs && 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" agent skill from https://github.com/kid-sid/claude-spellbook/tree/main/skills/nextjs into .claude/skills/nextjs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nextjs", 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/kid-sid/claude-spellbook/tree/main/skills/nextjsType 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 kid-sid/claude-spellbook --skill nextjs -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install kid-sid/claude-spellbook nextjs --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kid-sid/claude-spellbook.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/nextjs .agents/skills/nextjs && 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" agent skill from https://github.com/kid-sid/claude-spellbook/tree/main/skills/nextjs into .agents/skills/nextjs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nextjs", 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 kid-sid/claude-spellbook --skill nextjs -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install kid-sid/claude-spellbook nextjs --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kid-sid/claude-spellbook.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/nextjs .cursor/skills/nextjs && 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" agent skill from https://github.com/kid-sid/claude-spellbook/tree/main/skills/nextjs into .cursor/skills/nextjs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nextjs", 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/kid-sid/claude-spellbook.git --path skills/nextjs--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 kid-sid/claude-spellbook --skill nextjs -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install kid-sid/claude-spellbook nextjs --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kid-sid/claude-spellbook.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/nextjs .gemini/skills/nextjs && 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" agent skill from https://github.com/kid-sid/claude-spellbook/tree/main/skills/nextjs into .gemini/skills/nextjs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nextjs", 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 kid-sid/claude-spellbook nextjsInstalls 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 kid-sid/claude-spellbook --skill nextjs -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/kid-sid/claude-spellbook.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/nextjs .github/skills/nextjs && 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" agent skill from https://github.com/kid-sid/claude-spellbook/tree/main/skills/nextjs into .github/skills/nextjs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nextjs", 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 kid-sid/claude-spellbook --skill nextjs -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install kid-sid/claude-spellbook nextjs --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kid-sid/claude-spellbook.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/nextjs .opencode/skills/nextjs && 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" agent skill from https://github.com/kid-sid/claude-spellbook/tree/main/skills/nextjs into .opencode/skills/nextjs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nextjs", 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.
nextjsA skill your agent uses when building Next.js App Router pages, server and client components, fetching data in server components, configuring layouts and middleware, handling routing patterns…
Nextjs is an agent skill from kid-sid/claude-spellbook. Use when building Next.js App Router pages, server and client components, fetching data in server components, configuring layouts and middleware, handling routing patterns, optimizing images and fonts, or deploying a Next.js application.
Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Frontend & Design. It works with Next.js. The repository describes itself as: A curated collection of skills, prompts, and workflows that extend Claude's capabilities — your personal grimoire for AI-powered development. The licence is MIT.
Read from SKILL.md and the folder at commit a7c2ac9. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Nextjs loads about 2.8k tokens when it runs. Until then it costs about 61 tokens; SKILL.md has 593 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 found no risky patterns in SKILL.md.
Automated 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 kid-sid/claude-spellbook at commit a7c2ac9, republished under its MIT licence (© kid-sid). 593 words, ~2,845 tokens.
.claude/skills/nextjs/SKILL.md (or your agent's skills folder).Patterns for building production Next.js applications with the App Router — server components, data fetching, routing, middleware, and performance.
app/ directory)This is the most important decision in App Router — default to Server, opt into Client only when needed.
| Capability | Server Component | Client Component |
|---|---|---|
| Async / await at component level | Yes | No |
| Access database, secrets, fs | Yes | No |
useState, useEffect, hooks | No | Yes |
Event handlers (onClick, etc.) | No | Yes |
| Browser APIs | No | Yes |
| Rendered on | Server only | Server (initial) + Client |
| Bundle size impact | Zero JS sent | Adds to JS bundle |
// BAD — making the whole page a Client Component just for one interactive part
"use client";
export default function Page() {
const data = await fetchFromDB(); // ❌ can't await in client component
return <div onClick={() => ...}>{data}</div>;
}
// GOOD — keep data fetching in Server Component, isolate interactivity
// app/page.tsx (Server Component — no directive needed)
export default async function Page() {
const data = await fetchFromDB();
return <div><InteractiveWidget data={data} /></div>;
}
// components/interactive-widget.tsx
"use client";
export function InteractiveWidget({ data }: { data: Data }) {
const [open, setOpen] = useState(false);
return <button onClick={() => setOpen(!open)}>{data.title}</button>;
}Push "use client" as far down the tree as possible.
app/
layout.tsx — root layout (required)
page.tsx — route segment UI
loading.tsx — Suspense boundary fallback
error.tsx — error boundary ("use client" required)
not-found.tsx — 404 UI
route.ts — API route handler
(auth)/ — route group (no URL segment)
login/page.tsx — /login
register/page.tsx — /register
blog/
[slug]/page.tsx — /blog/any-slug
[...slug]/page.tsx — /blog/a/b/c (catch-all)
[[...slug]]/ — optional catch-all
@modal/ — parallel route slot (named outlet)// app/blog/[slug]/page.tsx
interface Props {
params: Promise<{ slug: string }>;
searchParams: Promise<{ page?: string }>;
}
export default async function BlogPost({ params, searchParams }: Props) {
const { slug } = await params;
const { page = "1" } = await searchParams;
const post = await getPost(slug);
if (!post) notFound();
return <article>{post.content}</article>;
}
// Static generation — provide all known slugs at build time
export async function generateStaticParams() {
const posts = await getAllPosts();
return posts.map((p) => ({ slug: p.slug }));
}app/
(marketing)/
layout.tsx — marketing shell (nav + footer)
page.tsx — /
about/page.tsx — /about
(app)/
layout.tsx — app shell (sidebar + auth check)
dashboard/page.tsx — /dashboard
settings/page.tsx — /settingsRoute groups let multiple layouts share the same URL namespace without polluting the URL.
// Fetch runs on the server — secrets never reach the browser
export default async function ProductList() {
const products = await fetch("https://api.example.com/products", {
next: { revalidate: 60 }, // ISR: revalidate every 60 seconds
// next: { tags: ["products"] } — on-demand revalidation
// cache: "no-store" — always fresh (SSR)
// cache: "force-cache" — static (default)
}).then((r) => r.json());
return <ul>{products.map((p) => <li key={p.id}>{p.name}</li>)}</ul>;
}// BAD — sequential, slow
const user = await getUser(id);
const posts = await getPosts(id); // waits for user first
// GOOD — parallel
const [user, posts] = await Promise.all([getUser(id), getPosts(id)]);| Need | Cache option | Revalidation |
|---|---|---|
| Static content (rarely changes) | force-cache (default) | revalidatePath / revalidateTag |
| Frequently updated | next: { revalidate: N } | Time-based ISR |
| Always live | cache: "no-store" | None — fetched every request |
| Per-user data | cache: "no-store" + auth header | None |
// app/actions.ts
"use server";
import { revalidatePath } from "next/cache";
export async function createPost(formData: FormData) {
const title = formData.get("title") as string;
await db.post.create({ data: { title } });
revalidatePath("/blog"); // bust cache after mutation
}
// app/new-post/page.tsx (Server Component)
import { createPost } from "../actions";
export default function NewPostPage() {
return (
<form action={createPost}>
<input name="title" />
<button type="submit">Create</button>
</form>
);
}// app/api/users/route.ts
import { NextRequest, NextResponse } from "next/server";
export async function GET(request: NextRequest) {
const { searchParams } = request.nextUrl;
const page = Number(searchParams.get("page") ?? 1);
const users = await getUsers(page);
return NextResponse.json(users);
}
export async function POST(request: NextRequest) {
const body = await request.json();
const user = await createUser(body);
return NextResponse.json(user, { status: 201 });
}
// app/api/users/[id]/route.ts
export async function DELETE(
_req: NextRequest,
{ params }: { params: Promise<{ id: string }> }
) {
const { id } = await params;
await deleteUser(id);
return new NextResponse(null, { status: 204 });
}// middleware.ts (runs on the Edge — no Node.js APIs)
import { NextRequest, NextResponse } from "next/server";
export function middleware(request: NextRequest) {
const token = request.cookies.get("session")?.value;
if (!token && request.nextUrl.pathname.startsWith("/dashboard")) {
return NextResponse.redirect(new URL("/login", request.url));
}
return NextResponse.next();
}
export const config = {
matcher: ["/dashboard/:path*", "/settings/:path*"],
};// app/blog/[slug]/page.tsx
import type { Metadata } from "next";
export async function generateMetadata({ params }: Props): Promise<Metadata> {
const { slug } = await params;
const post = await getPost(slug);
return {
title: post.title,
description: post.excerpt,
openGraph: {
title: post.title,
images: [post.coverImage],
},
};
}// Images — always use next/image for automatic optimization
import Image from "next/image";
<Image
src="/hero.jpg"
alt="Hero"
width={1200}
height={630}
priority // LCP image — load eagerly
placeholder="blur"
/>
// Remote images require config
// next.config.ts
const config = {
images: {
remotePatterns: [{ protocol: "https", hostname: "cdn.example.com" }],
},
};
// Fonts — use next/font for zero-layout-shift loading
import { Inter } from "next/font/google";
const inter = Inter({ subsets: ["latin"], display: "swap" });
export default function RootLayout({ children }) {
return <html className={inter.className}>{children}</html>;
}// app/dashboard/loading.tsx — automatic Suspense boundary
export default function Loading() {
return <DashboardSkeleton />;
}
// app/dashboard/error.tsx — must be a Client Component
"use client";
export default function Error({
error,
reset,
}: {
error: Error;
reset: () => void;
}) {
return (
<div>
<p>Something went wrong: {error.message}</p>
<button onClick={reset}>Try again</button>
</div>
);
}| Variable prefix | Available in | Use for |
|---|---|---|
NEXT_PUBLIC_* | Server + browser | Public config (API URLs, feature flags) |
| No prefix | Server only | Secrets, DB URLs, API keys |
// Safe — server-only
const dbUrl = process.env.DATABASE_URL;
// Exposed to browser — only for non-sensitive values
const apiUrl = process.env.NEXT_PUBLIC_API_URL;Never put secrets in NEXT_PUBLIC_* variables — they are inlined into the client bundle.
"use client" on a page or layout — turns the entire subtree into client-side JS; push it down to the specific interactive component instead.useEffect — causes a client-side waterfall; fetch in a Server Component and pass data as props or use a Server Action.NEXT_PUBLIC_* env vars — these are inlined into the browser bundle and visible to anyone.await for independent data — use Promise.all to fetch in parallel; sequential awaits multiply latency.<img> instead of next/image — misses automatic format conversion, lazy loading, and size optimization that directly affect CWV scores.generateStaticParams — dynamic routes default to runtime rendering; add generateStaticParams for known paths to get static generation."use client" is at the leaf of the component tree — no unnecessary client boundaries higher upPromise.all, not sequential awaitforce-cache, revalidate, or no-store — not left to default accidentallyNEXT_PUBLIC_*next/image used for all <img> elements — width, height, and alt providednext/font used for web fonts — no <link> tags loading fonts in <head>generateMetadata exported from every public-facing pagegenerateStaticParams added for dynamic routes with known pathsloading.tsx and error.tsx present for routes with async datamatcher is as narrow as possible — not running on static assets© kid-sid, 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 skills/nextjs of kid-sid/claude-spellbook.
Open the folder on GitHubat commit a7c2ac9
Nextjs 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 this skillkid-sid/claude-spellbook | 189 | — | ~2.8k | Automated safety check: Pass | MIT | |
| Chakra UI v3 Builderchakra-ui/chakra-ui | 41k | — | ~3.1k | Automated safety check: Pass | MIT | |
| React View Transitions Guidevercel-labs/next-beats | 167 | 10 repos | ~3.1k | Automated safety check: Pass | MIT | |
| Website ClonerJCodesMore/ai-website-cloner-template | 36k | — | ~1.7k | Automated safety check: Pass | MIT | |
| Wcag Audit PatternsvmDeshpande/ai-agent-automation | 178 | 11 repos | ~610 | Automated safety check: Pass | Apache-2.0 | |
| Vercel React Best Practicessanity-io/sanity | 6.4k | 130 repos | ~1.6k | Automated safety check: Pass | MIT |
chakra-ui/chakra-ui
Builds responsive, accessible Chakra UI v3 components and layouts, sets up Chakra in new or existing projects, and designs themes with tokens, semantic tokens and recipes.
vercel-labs/next-beats
Guides implementing animated page and state transitions in React with the native View Transition API, covering shared elements, list reorders and directional navigation.
JCodesMore/ai-website-cloner-template
Rebuilds existing web pages as editable local code that matches their content, assets, responsive layout and interactions, including Framer sites and animated pages.
vmDeshpande/ai-agent-automation
Conduct WCAG 2.2 accessibility audits with automated testing, manual verification, and remediation guidance.
sanity-io/sanity
React and Next.js performance optimization guidelines from Vercel Engineering.
cloudflare/skills
Set up, repair, or migrate to Cloudflare Turnstile bot verification in an existing frontend and backend, including server-side Siteverify.
kid-sid/claude-spellbook
A skill your agent uses when building or reviewing UI components for keyboard and screen reader compatibility, adding ARIA to custom widgets, auditing a page for WCAG AA conformance, or preparing…
kid-sid/claude-spellbook
A skill your agent uses when building, wiring, or debugging an Agentex agent — choosing agent type, configuring acp.py and manifest.yaml, using adk.messages or adk.state, or resolving…
kid-sid/claude-spellbook
A skill your agent uses when building production LLM applications — designing RAG pipelines, choosing vector databases, implementing agent orchestration, optimizing cost, or adding AI safety…
kid-sid/claude-spellbook
A skill your agent uses when building or refactoring Angular applications — choosing between signals, RxJS, and NgRx for state, configuring routing with guards and lazy loading, optimizing change…
kid-sid/claude-spellbook
A skill your agent uses when designing new REST endpoints, reviewing an existing API contract, adding pagination or filtering, planning a versioning strategy, or building a public or partner-facing…
kid-sid/claude-spellbook
A skill your agent uses when implementing login flows, issuing or validating JWTs, setting up OAuth2/OIDC with a provider, designing role-based or attribute-based access control, securing API…
Works with
Categories
A skill your agent uses when building Next.js App Router pages, server and client components, fetching data in server components, configuring layouts and middleware, handling routing patterns…. Nextjs is an agent skill from kid-sid/claude-spellbook.js application.
Nextjs fits situations like: building Next.js App Router pages; server and client components; fetching data in server components; configuring layouts and middleware.
Run `npx skills add kid-sid/claude-spellbook --skill nextjs -a claude-code`. Or copy the skill folder (skills/nextjs in kid-sid/claude-spellbook) into .claude/skills/nextjs in your project. Claude Code loads it when a task matches its description.
Run `npx skills add kid-sid/claude-spellbook --skill nextjs -a codex`. Or copy the skill folder (skills/nextjs in kid-sid/claude-spellbook) into .agents/skills/nextjs 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 kid-sid/claude-spellbook --skill nextjs -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, .gemini/skills/nextjs, .github/skills/nextjs and .opencode/skills/nextjs in your project.
SKILL.md names no scripts, command-line tools or credentials: Nextjs is instructions for the agent only. Our summary lists: Node.js.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Nextjs is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.8k tokens (SKILL.md is roughly 11k 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: Chakra UI v3 Builder (chakra-ui/chakra-ui, 41k stars), React View Transitions Guide (vercel-labs/next-beats, 167 stars), Website Cloner (JCodesMore/ai-website-cloner-template, 36k stars) and Wcag Audit Patterns (vmDeshpande/ai-agent-automation, 178 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
kid-sid (a GitHub user) maintains it in kid-sid/claude-spellbook, which has 189 GitHub stars. The repository holds 52 skills in this directory. The repository was last updated on August 5, 2026.
Source: kid-sid/claude-spellbook on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.