nextjs-development
БесплатноЗапускает вложенные скриптыНе проверенNext.js 16.2.4 with TypeScript — App Router, Server Components, use cache directive, Turbopack dev, Server Actions, ISR, SSR, SSG, MCP devtools, metadata API…
от PracticalSwan★ 25 звёзд на GitHubОб этом скилле
Next.js Development
Optimized for Next.js 16+, React 19+, TypeScript 5.5+, Turbopack, and App Router-first architectures.
Comprehensive reference for Next.js (latest: 16.2.4) with the App Router, TypeScript, and modern patterns. Covers project structure, Server/Client Components, data fetching, caching with the use cache directive, Server Actions, MCP devtools integration, and performance optimization.
- Leverage native parallel subagent dispatch and 200k+ context windows where available.
Component Review Rubric Reference
Apply the shared Component Review Rubric before approving Next.js components, then run the Next.js-specific checks below.
Cross-Client Portability
This skill is written to stay usable across GitHub Copilot, Claude Code, and Codex.
- GitHub Copilot: keep the folder in a Copilot-visible skill path or wrap the workflow in project instructions when folder discovery is unavailable.
- Claude Code: keep the folder in a local skills directory or a compatible plugin source.
- Codex: install or sync the folder into
$CODEX_HOME/skills/nextjs-developmentand restart Codex after major changes.
MCP Availability And Fallback
Preferred MCP Server: Next.js MCP
- Fallback prompt: "Use the Next.js Development skill without MCP. Follow the documented local or manual fallback, show the selected tool surface, and report the verification evidence."
- Use
next dev,next build,next lint, browser console output, and local server logs when live MCP diagnostics are unavailable. - Verify routing, rendering mode, and data-fetching behavior with the bundled examples and a running dev server.
- Do not claim an MCP operation was used when the active host does not expose it.
Anti-Patterns
- Mixing server and client responsibilities: Bundle size, caching, and auth decisions become harder to reason about.
- Using legacy synchronous request APIs: Modern Next.js expects async request surfaces such as
params,headers(), andcookies(). - Skipping route-level loading and error states: Streaming apps feel broken when only the happy path is implemented.
Verification Protocol
Before claiming "skill applied successfully":
- Pass/fail: The Nextjs Development guidance is tied to a concrete route, component, screen, or design artifact.
- Pass/fail: Component states cover loading, empty, error, success, and responsive breakpoints where applicable.
- Pass/fail: Accessibility, visual hierarchy, and interaction behavior are reviewed against the shared component rubric.
- Pressure-test scenario: Review the component on a narrow mobile viewport, keyboard-only path, and slow-loading state.
- Success metric: Zero generic UI approval; every approval cites rendered behavior or source evidence.
Before and After Example
// Before
export default function ProductPage({ params }: { params: { id: string } }) {
const [product, setProduct] = useState<Product | null>(null);
useEffect(() => {
fetch(`/api/products/${params.id}`).then((r) => r.json()).then(setProduct);
}, [params.id]);
return product ? <ProductView product={product} /> : <Spinner />;
}
// After
export default async function ProductPage({
params,
}: {
params: Promise<{ id: string }>
}) {
const { id } = await params;
const product = await getProduct(id);
return <ProductView product={product} />;
}
Moves data fetching into the server component and follows the async request API used in current Next.js releases.
Activation Conditions
Use symptom -> action triggers: when one matches, apply this skill and verify with the protocol below.
App Router & Routing
- Creating or modifying
page.tsx,layout.tsx,loading.tsx,error.tsx,not-found.tsx - Working with dynamic routes
[slug], catch-all[...slug], optional catch-all...slug - Parallel routes
@slot, intercepting routes, route groups(group) - New v15/v16 file conventions:
forbidden.tsx,proxy.ts,template.tsx,unauthorized.tsx
Server & Client Components
- Deciding when to use
"use client"or"use server"directives - Component boundary questions, RSC + RCC composition patterns
- Passing Server Components as children/props to Client Components
taintAPI for data security
Data Fetching & Caching
- Using
use cachedirective (replacescache: 'force-cache') cacheTag(),cacheLife(),revalidateTag(),revalidatePath()- Async Request APIs:
await cookies(),await headers(),await params,await searchParams after()for post-response work,connection()for dynamic rendering
Server Actions & Forms
"use server"in functions or module scope<Form>component with client-side navigation- Form validation, optimistic updates, error handling
after()for side-effects after action comp
Установить nextjs-development в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл nextjs-development?
Next.js 16.2.4 with TypeScript — App Router, Server Components, use cache directive, Turbopack dev, Server Actions, ISR, SSR, SSG, MCP devtools, metadata API, route handlers, instrumentation.
Как установить скилл nextjs-development?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nextjs-development запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic