Skip to main content
The glot-i18n skill is an Agent Skill that teaches code agents the recommended workflow for fixing i18n issues in Next.js + next-intl projects.

What is an Agent Skill?

Agent Skills are a lightweight, open format for extending code agent capabilities. A skill provides instructions that guide agents through complex tasks step by step. Unlike MCP tools which give agents direct access to functions, skills teach agents how to approach a problem using clear instructions and best practices.

Installation

The easiest way to install the glot-i18n skill is using add-skill:
This will automatically add the skill to your project’s .skills/ directory.

Option 2: Copy to Your Project

Copy the glot-i18n skill folder to your project:
Or create a .skills/glot-i18n/ directory in your project and copy the SKILL.md file.

Option 3: Reference from glot

If your agent supports loading skills from installed packages, the skill is available in the glotctl package:

Prerequisites

The skill requires:
  1. glot MCP server - Must be configured and available (see MCP Setup)
  2. Project configuration - A .glotrc.json file (run glot init if missing)
  3. next-intl - Your project should use next-intl for translations

How It Works

When you ask a code agent to fix i18n issues, the skill guides it through this workflow:
The skill emphasizes following this order because fixing hardcoded issues may create new primary_missing issues, and fixing those may create replica_lag issues.

What the Skill Teaches

Key Naming Conventions

The skill teaches agents to use structured key names:
Examples:
  • common.buttons.submit - Shared UI elements
  • auth.login.title - Authentication pages
  • errors.validation.required - Error messages

Code Transformation Patterns

The skill provides patterns for common transformations: JSX Text:
Attributes:

Best Practices

The skill guides agents to:
  • Work in batches of 10-20 issues at a time
  • Re-scan after fixes to verify progress
  • Ensure useTranslations hook is imported
  • Handle pagination for large result sets
  • Preserve existing code style

Skill Contents

The skill includes two files:

Example Prompts

Once the skill is installed, try these prompts:

Supported Agents

Agent Skills are supported by:

Troubleshooting

Skill not being loaded

Ensure the skill is in a .skills/ directory in your project root or in a location your agent searches.

Agent not following the workflow

Make sure:
  1. The glot MCP server is configured and running
  2. The project has a valid .glotrc.json
  3. Your agent supports Agent Skills

Need more detailed instructions?

View the full skill content in your project at .skills/glot-i18n/SKILL.md.

MCP Setup

Configure the glot MCP server

Agent Skills Spec

Learn about the Agent Skills format