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
Recommended: Using add-skill
The easiest way to install the glot-i18n skill is using add-skill:.skills/ directory.
Option 2: Copy to Your Project
Copy theglot-i18n skill folder to your project:
.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:- glot MCP server - Must be configured and available (see MCP Setup)
- Project configuration - A
.glotrc.jsonfile (runglot initif missing) - 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:common.buttons.submit- Shared UI elementsauth.login.title- Authentication pageserrors.validation.required- Error messages
Code Transformation Patterns
The skill provides patterns for common transformations: JSX Text: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
useTranslationshook is imported - Handle pagination for large result sets
- Preserve existing code style
Skill Contents
The skill includes two files:| File | Purpose |
|---|---|
SKILL.md | Main instructions (~350 lines) |
references/EXAMPLES.md | Detailed code examples (~250 lines) |
Example Prompts
Once the skill is installed, try these prompts:Supported Agents
Agent Skills are supported by:- Claude Code
- Cursor
- Gemini CLI
- VS Code (with compatible extensions)
- And other compatible agents
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:- The glot MCP server is configured and running
- The project has a valid
.glotrc.json - Your agent supports Agent Skills
Need more detailed instructions?
View the full skill content in your project at.skills/glot-i18n/SKILL.md.