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.5 $0.00026 $0.00401
Sonnet 5.5 $0.00013 $0.00201
Haiku 4.5 $0.00006 $0.00100

Measured 2mo ago against content hash ec28d5d235dd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 7mo ago), licensed MIT. It adds 65 tokens to every session and 1,003 once invoked, about $0.0003 per session on Opus 5.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

next-intl-routing-and-navigation compared with skills from other repositories

next-intl-routing-and-navigation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
next-intl-routing-and-navigationandrewsrigom/agent-skillsSkill27mo agoMITA65Claude Code, Codex
intl-expansionalirezarezvani/claude-skillsSkill29k2d agoMITA27Claude Code
azure-ai-translation-text-pymicrosoft/skillsSkill3.2kyesterdayMITA60Claude Code
chinese-documentationjnMetaCode/superpowers-zhSkill8.5k12d agoMITA62Claude Code
hardenfengshao1227/ccg-workflowSkill6.0k5d agoMITA62Claude Code
edit-sitemicrosoft/power-platform-skillsSkill1.1ktodayMITA104Claude Code
asc-subscription-localizationrorkai/app-store-connect-cli-skillsSkill1.1ktodayMITA60Claude Code