nextjs
Next.js App Router setup guide for Better Translate routing, server helpers, and optional React hooks.
от jralvarenga★ 23 звезды на GitHub
Установить nextjs в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Next.js Skill
Use this guide when the app is a Next.js App Router app.
Correct package combination
- always:
@better-translate/core - always:
@better-translate/nextjs - optional:
@better-translate/reactfor client-side hooks and providers
Minimum file set
The smallest practical Next.js setup usually has these files:
src/lib/i18n/config.tssrc/lib/i18n/routing.tssrc/lib/i18n/request.tssrc/lib/i18n/server.tssrc/lib/i18n/navigation.tssrc/proxy.ts
What each one does
config.tscreates the core translatorrouting.tsdefines the locale route shaperequest.tsexposes the translator to the Next.js adapterserver.tscreates request-aware helpers likegetTranslations()navigation.tscreates locale-aware links and router helpersproxy.tsredirects requests into locale-prefixed URLs
Keep TypeScript autocomplete available
Create and export the typed core translator once, then let the Next.js adapter and optional React hooks read from it.
- server helpers stay typed because they are created from the shared translator config
- client hooks stay typed by using
useTranslations<typeof translator>() - or by registering the translator once with module augmentation in React code
Important rule
Do not replace the core package with the Next.js package.
Next.js depends on the translator you created in @better-translate/core.
When to add React too
Add @better-translate/react only when client components need:
useTranslations()- client-side locale switching
- a provider around part of the tree
If you add React hooks, use the same exported translator type that the rest of the app uses so key and locale autocomplete stay aligned.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл nextjs?
Next.js App Router setup guide for Better Translate routing, server helpers, and optional React hooks.
Как установить скилл nextjs?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nextjs запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis 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…