This directory contains Agent Skills that enable AI agents (like Claude) to use Jta for automatic JSON translation.
Agent Skills are modular capabilities that extend what AI agents can do. They consist of instructions, scripts, and resources that help agents perform specialized tasks autonomously.
Enables AI agents to automatically translate JSON i18n files with Agentic quality optimization.
Location: jta/
Core Files:
- SKILL.md - Complete skill definition and instructions for AI agents
- examples/ - Step-by-step use cases
- scripts/ - Helper scripts (installation, etc.)
Copy the skill to your Claude skills directory:
# From the jta repository root
cp -r skills/jta ~/.claude/skills/
# Or create a symbolic link (recommended for development)
ln -s $(pwd)/skills/jta ~/.claude/skills/jtaAdd the skill to your project's .claude/skills/ directory:
# In your project root
mkdir -p .claude/skills
cp -r /path/to/jta/skills/jta .claude/skills/
# Commit to version control
git add .claude/skills/jta
git commit -m "feat: add jta translation skill"Team members will automatically get the skill when they clone the repository.
Once installed, simply ask your AI agent:
"Translate my en.json to Chinese, Japanese, and Korean"
"I added new keys to en.json, please update the translations"
"Set up automatic translation in GitHub Actions"
The agent will:
- Check if Jta is installed (install if needed)
- Verify API key configuration
- Execute translation with optimal settings
- Validate results
- Report statistics and output locations
The skill requires the jta command-line tool. The agent will automatically install it if not present, or you can install manually:
# macOS/Linux via Homebrew
brew tap hikanner/jta
brew install jta
# Or download binary
curl -L https://github.com/hikanner/jta/releases/latest/download/jta-darwin-arm64 -o jta
chmod +x jta
sudo mv jta /usr/local/bin/You need an API key from one of these providers:
- OpenAI:
OPENAI_API_KEY(recommended: GPT-5) - Anthropic:
ANTHROPIC_API_KEY(recommended: Claude Sonnet 4.5) - Google Gemini:
GEMINI_API_KEY(recommended: Gemini 2.5 Flash)
Set as environment variable:
export OPENAI_API_KEY=sk-...The jta skill provides:
- ✅ Agentic Translation: AI translates, evaluates, and improves its own work (3x API calls)
- ✅ Smart Terminology: Automatic detection and consistent translation of domain terms
- ✅ Format Protection: Preserves
{variables}, HTML tags, URLs, Markdown - ✅ Incremental Mode: Only translates new/changed content (saves 80-90% cost)
- ✅ 27 Languages: Including RTL languages (Arabic, Hebrew, Persian, Urdu)
- ✅ CI/CD Ready: Automatic workflow generation for GitHub Actions
- ✅ Error Handling: Comprehensive error detection and user guidance
User request:
"Translate my locales/en.json to Chinese and Japanese"
Agent actions:
- Locates
locales/en.json - Checks Jta installation
- Verifies API key
- Executes:
jta locales/en.json --to zh,ja -y - Shows results and statistics
Output:
locales/zh.json(Chinese)locales/ja.json(Japanese).jta/terminology.json(detected terms)
User request:
"I updated en.json with 5 new keys, update the translations"
Agent actions:
- Detects existing translations
- Uses incremental mode:
jta locales/en.json --to zh,ja --incremental -y - Translates only new/changed keys
- Preserves existing translations
Result: 90% cost savings, faster execution
User request:
"Set up automatic translation in our CI"
Agent actions:
- Creates
.github/workflows/translate-i18n.yml - Configures incremental mode
- Sets up commit automation
- Documents API key setup
Result: Fully automated translation pipeline
The agent automatically activates the skill when you:
- Mention "translate", "translation", "i18n", "internationalization", "locale"
- Reference JSON files in translation contexts
- Specify target languages
1. User Request
↓
2. Skill Activation (automatic)
↓
3. Environment Check (install if needed)
↓
4. Execute Translation
↓
5. Verify Results
↓
6. Report to User
The skill uses a three-level information architecture:
- SKILL.md (~600 lines): Core instructions, always loaded when relevant
- reference.md (~1000 lines): Detailed docs, loaded on-demand
- examples/ (~500 lines each): Specific use cases, loaded as needed
This ensures the agent has enough context without overwhelming the context window.
Ensure your request includes keywords like:
- "translate JSON"
- "i18n", "internationalization", "locale"
- Specific languages ("Chinese", "Japanese", etc.)
If Jta installation fails:
# Manual installation
curl -L https://github.com/hikanner/jta/releases/latest/download/jta-darwin-arm64 -o jta
chmod +x jta
sudo mv jta /usr/local/bin/Set your API key:
export OPENAI_API_KEY=sk-...
# Or
export ANTHROPIC_API_KEY=sk-ant-...
# Or
export GEMINI_API_KEY=...-
Use symbolic links when developing skills:
ln -s $(pwd)/skills/jta ~/.claude/skills/jta
-
Test changes immediately - modifications to SKILL.md take effect on next agent interaction
-
Check allowed-tools - ensure your skill only uses necessary tools
-
Always use incremental mode for updates to save costs
-
Set up CI/CD for automated translations
-
Version control terminology - commit
.jta/directory for consistency -
Monitor API usage - track costs and optimize batch sizes
To improve the jta skill:
- Edit files in
skills/jta/ - Test with Claude or another agent
- Submit a pull request to the main Jta repository
- 📖 Skill Documentation: jta/SKILL.md
- 💡 Examples: jta/examples/
- 🐛 Issues: GitHub Issues
- 💬 Discussions: GitHub Discussions
Made for the Agent Skills ecosystem
Enabling AI agents to handle internationalization automatically.