Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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-development and 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(), and cookies().
  • 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":

  1. Pass/fail: The Nextjs Development guidance is tied to a concrete route, component, screen, or design artifact.
  2. Pass/fail: Component states cover loading, empty, error, success, and responsive breakpoints where applicable.
  3. Pass/fail: Accessibility, visual hierarchy, and interaction behavior are reviewed against the shared component rubric.
  4. Pressure-test scenario: Review the component on a narrow mobile viewport, keyboard-only path, and slow-loading state.
  5. 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
  • taint API for data security

Data Fetching & Caching

  • Using use cache directive (replaces cache: '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
Полный SKILL.md на GitHub

Установить nextjs-development в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

CHANGELOG.mdLICENSE.txtexamples/data-fetching-patterns.mdexamples/server-client-components.mdreferences/app-router-reference.mdreferences/nextjs-mcp-server.mdscripts/page-generator.ps1

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить nextjs-development с