next-intl-routing-and-navigation

next-intl-routing-and-navigation is a skill for Claude Code, Codex from andrewsrigom/agent-skills. It costs 65 tokens per session (1,003 once invoked), scanned A, original, MIT.

Instructions for handling languages and translated URLs in Next.js App Router, the part of Next.js used to define pages and layouts.

In plain words
What is it for?
Use them to configure language prefixes or domains, localized pathnames, language switchers, alternate links, and locale-aware links and routers.
Why use it?
They help keep locale detection, language-specific paths, domain routing, cookies, and navigation consistent.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use them to configure language prefixes or domains, localized pathnames, language switchers, alternate links, and locale-aware links and routers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/andrewsrigom/agent-skills/next-intl-routing-and-navigation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add andrewsrigom/agent-skills --skill next-intl-routing-and-navigation
Clone the repo
git clone --depth 1 https://github.com/andrewsrigom/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for next-intl-routing-and-navigation

README.md
[![agentmods](https://agentmods.dev/badge/skills/andrewsrigom/agent-skills/next-intl-routing-and-navigation/github.svg)](https://agentmods.dev/skills/andrewsrigom/agent-skills/next-intl-routing-and-navigation)
Your own site
<a href="https://agentmods.dev/skills/andrewsrigom/agent-skills/next-intl-routing-and-navigation"><img src="https://agentmods.dev/badge/skills/andrewsrigom/agent-skills/next-intl-routing-and-navigation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for next-intl-routing-and-navigation

Your own site · 80×15
<a href="https://agentmods.dev/skills/andrewsrigom/agent-skills/next-intl-routing-and-navigation"><img src="https://agentmods.dev/badge/skills/andrewsrigom/agent-skills/next-intl-routing-and-navigation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,003 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00065 $0.01003
Opus 5 $0.00032 $0.00502
Sonnet 5 $0.00013 $0.00201
Haiku 4.5 $0.00006 $0.00100

Measured 12d ago against content hash ec28d5d235dd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

next-intl-routing-and-navigation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

next-intl/next-intl-routing-and-navigation/SKILL.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Next Intl Routing and Navigation

Use this skill when the task is primarily about URL structure, locale negotiation, or locale-aware navigation.

Scope

  • App Router locale routing setup
  • defineRouting, createMiddleware, createNavigation
  • localePrefix, localeDetection, localeCookie, alternateLinks
  • localized pathnames, domains, getPathname, and base-path-aware URL generation
  • locale switchers and CMS-driven localized URLs

Routing cues

  • defineRouting, createNavigation, Link, useRouter, usePathname, getPathname, locale switcher, domain routing, pathnames, proxy.ts, middleware.ts, NEXT_LOCALE, hreflang -> use this skill
  • ICU messages, useTranslations, useFormatter, rich text, message validation -> use next-intl-messages-and-formatting
  • getRequestConfig, setRequestLocale, getTranslations, metadata, Server Actions, testing -> use next-intl-server-runtime
  • plugin setup, TypeScript augmentation, Crowdin, useExtracted, message loading strategy -> use next-intl-workflows-and-tooling

Default path

  1. Read references/routing-architecture.md first.
  2. If the task touches locale switchers, cookies, alternate links, or getPathname, read references/locale-switchers-and-alternate-links.md.
  3. If the task touches localized slugs, domains, or SEO-facing URLs, read references/pathnames-domains-and-cms.md.
  4. Keep routing.ts, proxy.ts or middleware.ts, navigation helpers, and locale-switcher behavior derived from one shared routing object.
  5. Validate any incoming locale with hasLocale(...) before treating it as trusted.

When to deviate

  • Disable or customize automatic alternate links when URLs vary outside the routing config or locale coverage differs.
  • Use domain routing or CMS-driven slugs only when the app actually needs them.
  • Move to server-runtime when the issue is request config or metadata rather than URL structure.

Read the full file on GitHub · 83 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 83 lines · 65 tokens per session scan A ec28d5d235dd

Subscribe to this mod's changes

next-intl-routing-and-navigation is a skill published in the GitHub repository andrewsrigom/agent-skills (2 stars, last pushed 5mo ago), licensed MIT. It adds 65 tokens to every session and 1,003 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

harden

Improve interface resilience through better error handling, i18n support, text overflow handling, and edge case management. Makes interfaces robust and production-ready. Use when the user asks to harden, make production-ready, handle edge cases, add error states, or fix overflow and i18n issues.

fengshao1227/ccg-workflow · 62 tokens

localization-toolkit

This skill should be used when setting up, auditing, or enforcing internationalization/localization in UI codebases (React/TS, i18next or similar, JSON locales), including installing/configuring the i18n framework, replacing hard-coded strings, ensuring en-US/zh-CN coverage, mapping error codes to localized messages…

zebbern/claude-code-guide · 82 tokens

json-ui

CRITICAL: Use for json-ui component rendering and development. Triggers on: json-ui, json render, component catalog, report render, HTML report, I18nString, i18n, bilingual, language switch, dual language, PaperHeader, AuthorList, Abstract, MetricsGrid, Section, Highlight, Zod schema, catalog.ts, cli.ts…

actionbook/actionbook · 118 tokens

experience-ui-bundle-localize

MUST activate to localize / internationalize a uiBundles//src/ project (React or Angular): extract hardcoded user-facing strings into Custom Labels, wire a runtime i18n library over the Platform SDK backend, add labels for another language, or troubleshoot label rendering across locales. Triggers: user-facing string…

forcedotcom/sf-skills · 225 tokens

experience-lwc-rtl-validate

Use this skill to review a Lightning Web Component (.html, .js, .css files) for right-to-left (RTL) internationalization correctness, producing a finding list with code-level fixes covering CSS logical properties, bidirectional text handling, keyboard semantics, and RTL-aware SLDS class usage. TRIGGER when the user…

forcedotcom/sf-skills · 197 tokens

extract-source-sample

Given the path to a finished content-goose ad-run folder, extract everything that defines that ad — recipe shot list, VO script, characters, voices, world, atom-skills, master mp4 — and emit a source-sample.json in the exact shape the upload-ad-sample skill writes to the Goose Ads library. Also links every character…

gooseworks-ai/goose-skills · 160 tokens