fix-translations

fix-translations is a skill for Claude Code from specsnl/agent-specs. It costs 107 tokens per session (1,113 once invoked), scanned A, original, MIT.

A workflow for finding and translating source-language text in Laravel translation files. Laravel is a PHP web framework, and these files store the text shown in different languages.

In plain words
What is it for?
Use it to scan Laravel language files, translate values into a target language, correct text errors, commit the changes, and open a pull request.
Why use it?
It helps find untranslated, mixed-language, misspelled, or incorrect values across a project instead of checking each file by hand.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the laravel plugin — 4 skills, 1 command shipped together

Good fit Use it to scan Laravel language files, translate values into a target language, correct text errors, commit the changes, and open a pull request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/specsnl/agent-specs/fix-translations
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add specsnl/agent-specs --skill fix-translations
Clone the repo
git clone --depth 1 https://github.com/specsnl/agent-specs

Made for: Claude Code.

Or install laravel, the plugin that ships this one along with the rest of its 4 skills, 1 command.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fix-translations

README.md
[![agentmods](https://agentmods.dev/badge/skills/specsnl/agent-specs/fix-translations/github.svg)](https://agentmods.dev/skills/specsnl/agent-specs/fix-translations)
Your own site
<a href="https://agentmods.dev/skills/specsnl/agent-specs/fix-translations"><img src="https://agentmods.dev/badge/skills/specsnl/agent-specs/fix-translations/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fix-translations

Your own site · 80×15
<a href="https://agentmods.dev/skills/specsnl/agent-specs/fix-translations"><img src="https://agentmods.dev/badge/skills/specsnl/agent-specs/fix-translations.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,113 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00107 $0.01113
Opus 5.5 $0.00043 $0.00445
Sonnet 5.5 $0.00021 $0.00223
Haiku 4.5 $0.00011 $0.00111

Measured 3mo ago against content hash 1ad47cca9a75, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fix-translations scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/laravel/skills/fix-translations/SKILL.md · 108 lines

How it starts

The opening of the file, as written. The whole thing — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Fix {{TARGET_LANGUAGE}} Laravel Translations — {{REPOSITORY}}

Scan all {{TARGET_LANGUAGE}} Laravel translation files for values still in the source language, translate them, fix errors and typos, commit the changes, and open a PR.

Fixed context

  • Repository: {{REPOSITORY}}
  • Translation files: {{TRANSLATION_FILES_INLINE}} — when not specified, default to Laravel's conventional locations: lang/{{TARGET_LOCALE}}/**/*.php and lang/{{TARGET_LOCALE}}.json (older projects: resources/lang/...)
  • PR title format: {{PR_TITLE_PREFIX}}: <short description>

Workflow

Execute these phases in order.

Phase 1 — Scan for untranslated values

Read every file matching {{TRANSLATION_FILES_SCAN}} — when that is not supplied, scan lang/{{TARGET_LOCALE}}/**/*.php and lang/{{TARGET_LOCALE}}.json (fall back to resources/lang/... on older Laravel versions). For each file, identify values that are still in the source language. A value needs translation if it:

  • Uses source-language words as the primary language (e.g. "Save", "Cancel", "Overview")
  • Contains a full source-language sentence or phrase
  • Is a mix of {{TARGET_LANGUAGE}} and the source language
  • Contains a typo that is clearly not {{TARGET_LANGUAGE}}

Do not flag:

  • Keys (array keys are in the source language by convention). In JSON catalogues the key is the source string — translate the value, leave the key byte-for-byte untouched.
  • Technical/universal strings like email addresses, URLs, currency symbols
  • Values that are intentionally the same in both languages (e.g. 'Logo', 'URL')
  • Placeholder variables like :count, :name

Phase 2 — Translate and fix

For each identified value, produce the correct {{TARGET_LANGUAGE}} translation. Apply these rules:

  • Translate naturally — not word-for-word. Use the tone of the surrounding context.
  • {{FORMALITY_NOTE}}
  • Plural forms using Laravel's | syntax must be preserved: '{\1'}in :count day|[2,*]in :count days' → translate each segment, keep the | syntax intact.
  • Never rename or translate :placeholder tokens (:count, :name, :Name, :NAME) — the casing carries Laravel's capitalisation behaviour, so copy them through verbatim.
  • Leave Blade and HTML fragments inside a value alone ({{ $var }}, @lang(...), <a href="...">) — translate only the surrounding prose.
  • Fix typos
  • Fix wrong translations
  • Fix mixed-language values

Read the full file on GitHub · 108 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago Changed · +3 lines 1ad47cca9a75
  2. 3mo ago First seen · 105 lines · 107 tokens per session scan A 9b725ef9d810

Subscribe to this mod's changes

fix-translations is a skill published in the GitHub repository specsnl/agent-specs (2 stars, last pushed 2mo ago), licensed MIT. It adds 107 tokens to every session and 1,113 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

fix-translations compared with skills from other repositories

fix-translations next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fix-translationsspecsnl/agent-specsSkill22mo agoMITA107Claude Code
intl-expansionalirezarezvani/claude-skillsSkill31kyesterdayMITA27Claude Code
chinese-documentationjnMetaCode/superpowers-zhSkill8.7k5d agoMITA62Claude Code
azure-ai-translation-text-pymicrosoft/skillsSkill3.3kyesterdayMITA60Claude Code
hardenfengshao1227/ccg-workflowSkill6.0k17d agoMITA62Claude Code
edit-sitemicrosoft/power-platform-skillsSkill1.2ktodayMITA104Claude Code
tiktok-shop-cross-bordernexscope-ai/eCommerce-SkillsSkill1.6k2d agoMITA55Claude Code, Codex