intlayer
Skill1 starsChanged 3 months agoMITView on GitHub
Build, review, debug, configure, migrate, or plan Intlayer v9 internationalization in TanStack Start React apps with current docs. Use for intlayer, react-intlayer, vite-intlayer, intlayer.config.ts, .content.ts dictionaries, t(), useIntlayer, useLocale, IntlayerProvider, getIntlayer, getLocale, validatePrefix, getPrefix, locale routing with {-$locale}, native TanStack Link/useNavigate (no LocalizedLink wrappers), locale switchers, Vite locale proxy, SSR cookies/headers, SEO head/sitemap, CLI build/fill/push/pull, collections, variants, and Next.js next-intlayer avoidance on Start.
In this repository81 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agents-mdSkill
- base-uiSkill
- better-authSkill
- brainstormSkill
- bullmqSkill
- bunSkill
- clickhouseSkill
- clone-to-tempSkill
- compound-uiSkill
- copywritingSkill
- create-durable-planSkill
- d3Skill
- date-fnsSkill
- decimal-jsSkill
- deduplicateSkill
- design-engineerSkill
- designSkill
- drizzle-ormSkill
- effectSkill
- elysia-architectureSkill
- elysiaSkill
- evlogSkill
- feedsmithSkill
- grokSkill
- handoffSkill
- heyapiSkill
- impitSkill
- jsdocSkill
- kafkaSkill
- kill-legacySkill
- legend-stateSkill
- loopSkill
- mantine-hooksSkill
- mobbinSkill
- motionSkill
- oxfmtSkill
- oxlintSkill
- permixSkill
- plain-languageSkill
- playwrightSkill
- react-boundariesSkill
- react-emailSkill
- reactSkill
- reorganizeSkill
- researchSkill
- schema-dtsSkill
- sentrySkill
- seoSkill
- setup-competitors-mdSkill
- setup-copywriting-mdSkill
- setup-icp-mdSkill
- setup-project-mdSkill
- simplify-layoutSkill
- storybookSkill
- subagentsSkill
- tailwindSkill
- tailwind-variantsSkill
- takumiSkill
- tanstack-chartsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this skill when work touches Intlayer i18n, especially Intlayer v9 with TanStack Start (@tanstack/react-start) via intlayer + …
- Very specific: line 23
Prefer bun / bunx in command examples.
- Very specific: line 30
Always set routeFileIgnorePattern for .content.* so content files are not treated as routes.
- Distinctive: line 41
Prefer the repo's existing checks.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Intlayer
Use this skill when work touches Intlayer i18n, especially Intlayer v9 with TanStack Start (@tanstack/react-start) via intlayer + react-intlayer + vite-intlayer.
Workflow
- Inspect the local Intlayer + Start shape before changing code:
- Package versions for
intlayer,react-intlayer,vite-intlayer,@tanstack/react-start,@tanstack/react-router. - Config:
intlayer.config.tslocales,routing.mode,routing.enableProxy,content.contentDir,dictionary.importMode,compiler.enabled. - Vite:
intlayer()plugin,proxy.ignore,tanstackStart({ router: { routeFileIgnorePattern } }). - Routes:
src/routes/__root.tsxshell +IntlayerProvider,src/routes/{-$locale}/layout withvalidatePrefix. - Content:
*.content.{ts,tsx,js,json,...}dictionaries and generated.intlayer/output. - Navigation: reject
LocalizedLink,useLocalizedNavigate, and any other Link/navigate wrappers — use native TanStack Router APIs only.
- Package versions for
- Refresh docs when the task depends on latest behavior, v9 defaults, CMS/editor, or package drift. Start from source-map.md.
- For install, config, Vite plugin, provider, and TypeScript includes, use setup-tanstack-start.md.
- For content declarations,
t(),useIntlayer, collections, variants, and attribute string rendering, use content-dictionaries.md. - For locale routing, native links/navigate, SSR
getLocale/getIntlayer, SEO head, sitemap, and 404s, use routing-ssr-seo.md. - Prefer
bun/bunxin command examples. Prefer the official Start guide over Next.js or Solid Start docs — but do not copy Intlayer'sLocalizedLink/useLocalizedNavigateexamples; use native TanStack RouterLink/useNavigateinstead.
Implementation Judgment
- TanStack Start uses
intlayer+react-intlayer+vite-intlayer. Do not install or copy APIs fromnext-intlayer/next-intlayer/serverorsolid-intlayer. - There is no
tanstack-intlayerpackage. Locale detection/redirect is the Viteintlayer()proxy (routing.enableProxy, defaulttrue), not a TanStack Router middleware API. - No Link/navigate wrappers. Do not create, keep, or recommend
LocalizedLink,useLocalizedNavigate, or any component/hook that wraps TanStackLink/useNavigateto inject locale. Use nativeLinkanduseNavigatewith fulltopaths (/{-$locale}/...) andparams.localefromgetPrefix(locale).localePrefix. On review/migrate, delete existing wrappers and rewrite call sites. - Always set
routeFileIgnorePatternfor.content.*so content files are not treated as routes. - Match the locale route slot to
routing.mode:{-$locale}forprefix-no-default; prefer$localeforprefix-all; remove the slot forno-prefix/search-params. - Client UI:
useIntlayer/useLocalefromreact-intlayer. Server functions,head, and non-React code:getIntlayer/getLocalefromintlayer. - In
beforeLoad, validate locale fromparams.localeviavalidatePrefix— not from cookies/headers (the proxy already handled request locale). - Co-locate
.content.*with features. Setcontent.contentDirexplicitly for Start apps undersrc(do not assume a Next-style./appdefault without checking config). - v9:
compiler.enableddefaults tofalse; bundled proxy/compiler live insideintlayer()— do not require separateintlayerProxy()/intlayerCompiler()unless plugin order demands it. - For production SSR that needs the locale proxy, keep
vite-intlayeravailable at runtime (move out ofdevDependencieswhen docs/proxy require it). - For HTML attributes (
alt,title,aria-label), use.value,.toString(), orString(...)on content nodes.
Verification
Prefer the repo's existing checks. For meaningful Intlayer + Start work, include the relevant subset:
- Typecheck with
.intlayer/**/*.tsincluded and route tree regenerated. - Locale smoke: default locale (no prefix or prefixed), alternate locales, invalid prefix → 404 redirect, locale switcher.
- Navigation smoke: in-app links and programmatic navigate keep the current locale; switcher updates
params.localewithout wrapper components. - SSR smoke: first HTML
lang/dir, cookie/Accept-Languageproxy redirects, server functiongetLocale+getIntlayer. - Content smoke: missing keys, attribute string rendering, collections/variants when used.
- CLI:
bunx intlayer buildandbunx intlayer content test(orintlayer test) when dictionaries change. - Sitemap/prerender smoke when changing localized SEO routes.
Report which checks ran, which did not, and any version-sensitive assumptions that remain.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

