rules
Teach your AI coding agent to run the translation pipeline automatically.
Teach your AI coding agent to automatically run the translation pipeline after modifying user-facing strings.
Install via Skills.sh (recommended)
The fastest way to set up AI agent support:
bunx skills add https://github.com/guillermolg00/translate-kit --skill translate-kitThis installs a skill that teaches your AI coding agent to detect translate-kit projects and run the pipeline when you modify translatable strings.
Generate rule files
For project-level rules or additional formats, use the rules command:
translate-kit rulesAn interactive prompt lets you pick which formats to generate:
| Format | File | Description |
|---|---|---|
| CLAUDE.md | CLAUDE.md | Project instructions for AI agents |
| Cursor | .cursor/rules/translate-kit.mdc | Cursor rules file |
| GitHub Copilot | .github/copilot-instructions.md | Copilot custom instructions |
| Skill | ~/.claude/skills/translate-kit/SKILL.md | Installable agent skill |
What the rules do
The generated rules instruct AI agents to:
- Detect that the project uses translate-kit (via
translate-kit.config.ts) - Run
npx translate-kit runafter adding or modifying translatable strings - Avoid manually editing generated files (
.translate-map.json,.translate-lock.json, locale JSON files)