@intlpullhq/skills
v0.1.8
Published
IntlPull Localization Skill for AI Agents (Claude, Cursor, Windsurf)
Downloads
51
Maintainers
Readme
IntlPull Localization Skill
The "Remotion" of Localization: A programmable, logic-safe i18n skill for AI Agents.
This skill equips Claude with Standardized Localization Engineering Knowledge. Unlike generic translation prompts that often break code, this skill enforces a Logic-Safe Protocol to ensure your application is internationalized without introducing regressions.
🛡️ Why "Logic-Safe"?
Localization is not just replacing text; it's about context. This skill is trained to distinguish between:
- ✅ User-facing UI text (Safe to extract)
- ❌ Code logic, IDs, & Keys (Critical to preserve)
It performs real-time Threat Modeling before suggesting any refactor, ensuring that your useEffect dependencies, data-testid attributes, and internal logic remain untouched.
🚀 Features
- Surgical Extraction: Identifies safe text candidates with high precision.
- Framework Native: Specialized patterns for Next.js, React, React Native, iOS, Android, and more.
- CLI Automation: Seamlessly orchestrates
@intlpullhq/clito check status, upload/download strings, and fix missing keys. - Context-Aware Naming: Generates semantic keys (e.g.,
Settings.Profile.title) rather than generic ones (e.g.,text_1).
📦 Installation
Option 1: Via skills.sh (Recommended — works with all AI agents)
npx skills add intlpull/skillsThis installs the skill into your active AI agent (Claude Code, Cursor, Windsurf, Gemini CLI, and more). Tracked on the skills.sh leaderboard.
Option 2: Via @intlpullhq/skills npm package
npx @intlpullhq/skillsInteractive installer — detects installed agents and symlinks the skill automatically.
Option 3: Manual Installation
Copy SKILL.md directly into your agent's skills directory:
# Claude Code
mkdir -p ~/.claude/skills/intlpull-localization
curl -o ~/.claude/skills/intlpull-localization/SKILL.md \
https://raw.githubusercontent.com/intlpull/skills/main/SKILL.md
# Or copy from this repo
mkdir -p .claude/skills/intlpull-localization
cp SKILL.md .claude/skills/intlpull-localization/SKILL.mdSupported Agents
| Agent | Config Dir | Auto-detected |
|-------|-----------|---------------|
| Claude Code | ~/.claude/skills/ | ✅ |
| Antigravity | ~/.gemini/antigravity/skills/ | ✅ |
| Cursor | ~/.cursor/skills/ | ✅ |
| Windsurf | ~/.codeium/windsurf/skills/ | ✅ |
| Gemini CLI | ~/.gemini/skills/ | ✅ |
| Amp | ~/.amp/skills/ | ✅ |
| Kiro | ~/.kiro/skills/ | ✅ |
💡 Usage Examples
Once installed, Claude becomes your Localization Engineer.
1. The "Refactor" Prompt
"Localize this entire component, but be careful with the logic."
Claude's Action:
- Scans the file for string literals.
- Filters out CSS classes, IDs, and logic values.
- Proposes a
useTranslationrefactor. - Generates the corresponding JSON key-value pairs.
2. The "fix" Prompt
"I have some missing keys in the Spanish translation file."
Claude's Action: Runs the CLI to identify and autofill missing keys:
# Preview what would be fixed
npx @intlpullhq/cli fix --dry-run
# Auto-fix missing translations (defaults to source: en)
npx @intlpullhq/cli fix
# Fix for a specific target language
npx @intlpullhq/cli fix --source en --target es3. The "Audit" Prompt
"Check if I missed any hardcoded strings in the settings page."
Claude's Action: Manually reviews the code against the "Safe Extraction" rules and flags anything that should be internationalized.
🛡️ Best Practices Enforced
- Atomic Changes: Suggests small, verifiable steps rather than massive, risky refactors.
- Semantic Keys:
Auth.Login.submitButtoninstead ofsubmit. - No Logic Breaking: Strictly avoids touching
constvalues used in logic,useEffectarrays, orswitchcases.
Troubleshooting
- Agent refactoring CSS?: The skill has strict negative constraints. If you see this, please report it!
- CLI not working?: Ensure
@intlpullhq/cliis installed in your project:npm i -D @intlpullhq/cli. - Skill not loading?: Verify the
SKILL.mdis at~/.agents/skills/intlpull-localization/SKILL.mdor in your agent's specific skills dir.
Links
License
MIT
