astro-i18n

astro-i18n is a skill for Claude Code from fusengine/agents. It costs 38 tokens per session (1,021 once invoked), scanned A, original, MIT.

A guide for adding multiple-language support to Astro websites, including language-specific URLs and search-engine language links. Astro is a framework for building websites.

In plain words
What is it for?
Use it when adding locale-based routing, generating links for a chosen language, translating content collections, or adding hreflang links so search engines understand language alternatives.
Why use it?
It explains how to keep translated pages, links, content, and sitemap entries connected across languages.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the fuse-astro plugin — 14 skills, 1 agent shipped together

Good fit Use it when adding locale-based routing, generating links for a chosen language, translating content collections, or adding hreflang links so search engines understand language alternatives.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fusengine/agents/astro-i18n
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 fusengine/agents --skill astro-i18n
Clone the repo
git clone --depth 1 https://github.com/fusengine/agents

Made for: Claude Code.

Or install fuse-astro, the plugin that ships this one along with the rest of its 14 skills, 1 agent.

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 astro-i18n

README.md
[![agentmods](https://agentmods.dev/badge/skills/fusengine/agents/astro-i18n/github.svg)](https://agentmods.dev/skills/fusengine/agents/astro-i18n)
Your own site
<a href="https://agentmods.dev/skills/fusengine/agents/astro-i18n"><img src="https://agentmods.dev/badge/skills/fusengine/agents/astro-i18n/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 astro-i18n

Your own site · 80×15
<a href="https://agentmods.dev/skills/fusengine/agents/astro-i18n"><img src="https://agentmods.dev/badge/skills/fusengine/agents/astro-i18n.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,021 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00038 $0.01021
Opus 5.5 $0.00015 $0.00408
Sonnet 5.5 $0.00008 $0.00204
Haiku 4.5 $0.00004 $0.00102

Measured 1mo ago against content hash 81cfb1f4a715, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

astro-i18n 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 1mo 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.

plugins/astro-expert/skills/astro-i18n/SKILL.md · 92 lines

How it starts

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

Also covers translating Content Collections per locale and adding hreflang alternate links via @astrojs/sitemap's i18n option for SEO. Does not cover general SEO meta tags beyond hreflang (astro-seo) or the Content Layer API itself (astro-content) — this skill focuses specifically on locale routing and URL generation.

Astro i18n

Agent Workflow (MANDATORY)

Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:

  1. fuse-ai-pilot:explore-codebase - Analyze existing routing, content collections, and locale files
  2. fuse-ai-pilot:research-expert - Verify latest Astro i18n docs via Context7/Exa
  3. mcp__context7__query-docs - Check astro:i18n API and sitemap integration

After implementation, run fuse-ai-pilot:sniper for validation.


Overview

When to Use

  • Building multilingual Astro sites with locale-prefixed URLs
  • Configuring defaultLocale and routing strategies
  • Generating locale-aware links with getRelativeLocaleUrl()
  • Reading Astro.currentLocale in components and pages
  • Adding hreflang alternate links via @astrojs/sitemap
  • Translating content using Content Collections per locale

Built-in i18n (Astro 3.5+)

Astro's built-in i18n system provides:

  • File-based locale routing via src/pages/[locale]/
  • Routing strategies for URL prefix behavior
  • URL helper functions from astro:i18n
  • Middleware-based routing logic
  • Fallback locale configuration

Reference Guide

Concepts

Topic Reference When to Consult
Routing config routing-config.md Setup and config options
Strategies strategies.md prefix-always vs prefix-other-locales
Helper functions helper-functions.md getRelativeLocaleUrl and all helpers
Content translation content-translation.md Translating content collections
Sitemap hreflang sitemap-hreflang.md SEO alternate links
Fallback fallback.md Missing translation fallback

Read the full file on GitHub · 92 lines

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. 1mo ago Changed 81cfb1f4a715
  2. 1mo ago First seen · 92 lines · 38 tokens per session scan A 835240a54041

Subscribe to this mod's changes

astro-i18n is a skill published in the GitHub repository fusengine/agents (34 stars, last pushed 14d ago), licensed MIT. It adds 38 tokens to every session and 1,021 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories

improve-search-visibility-entity-footprint

Step of the improve-search-visibility playbook: checks the profiles answer engines read, plus local listings and reviews, against the brand's facts and writes corrections. Run improve-search-visibility instead; not for direct use.

gooseworks-ai/goose-skills · 54 tokens

radin-stats

Use for /radin-stats. Shows the stats or gain output of every companion tool that ships one, side by side.

shortcuts/radin · 32 tokens

ccpa-compliance

Analyze CCPA/CPRA obligations legally — applicability thresholds, consumer-rights procedures, notice at collection, the Do Not Sell or Share link, and service-provider contract terms. Use when the user needs to know whether CCPA applies and what their notices, request procedures and vendor contracts must say. Not for…

bromso/metapowers · 80 tokens

data-processing-agreement

Draft a GDPR Article 28 Data Processing Agreement — controller and processor roles, processing details, processor obligations, sub-processors, breach notice, audit rights, deletion and international transfers. Use when a customer asks the user to sign a DPA, or the user needs one for a vendor that handles their…

bromso/metapowers · 68 tokens

gdpr-compliance

Analyze GDPR obligations legally — data mapping, lawful basis, DPIA and DPO needs, data subject rights procedures, breach notification, transfer mechanisms and Article 30 records. Use when the user asks how to legitimize EU data transfers, whether they need a DPIA or DPO, or what GDPR legally requires of them. Not for…

bromso/metapowers · 86 tokens

compliance-monitor

Design a legal team's ongoing compliance oversight — monitoring scope per regulation, owners, escalation levels, board reporting and a compliance calendar. Use when the user needs to decide who owns each regulation, how non-compliance escalates and which legal deadlines to calendar. Not for automated control checks…

bromso/metapowers · 73 tokens