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.
npx skills add HermeticOrmus/LibreGameDev-Claude-Code --skill localization-patternsgit clone --depth 1 https://github.com/HermeticOrmus/LibreGameDev-Claude-CodeWrote 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.
[](https://agentmods.dev/skills/hermeticormus/libregamedev-claude-code/localization-patterns)<a href="https://agentmods.dev/skills/hermeticormus/libregamedev-claude-code/localization-patterns"><img src="https://agentmods.dev/badge/skills/hermeticormus/libregamedev-claude-code/localization-patterns/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.
<a href="https://agentmods.dev/skills/hermeticormus/libregamedev-claude-code/localization-patterns"><img src="https://agentmods.dev/badge/skills/hermeticormus/libregamedev-claude-code/localization-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00064 | $0.01890 |
| Opus 5.5 | $0.00026 | $0.00756 |
| Sonnet 5.5 | $0.00013 | $0.00378 |
| Haiku 4.5 | $0.00006 | $0.00189 |
Grade A, and why
localization-patterns 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 208 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Localization Patterns
Godot TranslationServer and tr() Usage
# Correct tr() usage patterns
class_name LocalizableUI extends Control
func _ready() -> void:
# Static string - wrap in tr()
$Label.text = tr("MENU_PLAY_BUTTON")
# Dynamic string with variable - use format, not concatenation
var score := 1500
$ScoreLabel.text = tr("SCORE_DISPLAY") % score
# PO file: msgid "SCORE_DISPLAY" msgstr "Score: %d"
# Plural-aware string
var item_count := 3
$ItemLabel.text = tr_n("ITEM_COUNT_SINGULAR", "ITEM_COUNT_PLURAL", item_count) % item_count
# PO file:
# msgid "ITEM_COUNT_SINGULAR"
# msgid_plural "ITEM_COUNT_PLURAL"
# msgstr[0] "%d item"
# msgstr[1] "%d items"
# Listen for locale changes (font swaps, layout updates)
TranslationServer.connect("locale_changed", _on_locale_changed)
func _on_locale_changed() -> void:
# Refresh all translatable strings
_ready()
_update_fonts_for_locale()
func _update_fonts_for_locale() -> void:
var locale := TranslationServer.get_locale()
if locale.begins_with("ja") or locale.begins_with("zh") or locale.begins_with("ko"):
$Label.add_theme_font_override(&"font", preload("res://fonts/NotoSansCJK.ttf"))
elif locale.begins_with("ar") or locale.begins_with("he"):
$Label.add_theme_font_override(&"font", preload("res://fonts/NotoSansArabic.ttf"))
# Mirror layout for RTL
layout_direction = Control.LAYOUT_DIRECTION_RTL
else:
$Label.remove_theme_font_override(&"font")
layout_direction = Control.LAYOUT_DIRECTION_AUTO
PO File Structure
# messages.pot (template - generated, not translated)
# and messages.fr.po (French translation)
# Header - required, specifies plural rules
msgid ""
msgstr ""
"Project-Id-Version: MyGame 1.0\n"
"Language: fr\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"Content-Type: text/plain; charset=UTF-8\n"
# Simple string
msgid "MENU_PLAY_BUTTON"
msgstr "Jouer"
# Contextual disambiguation
msgctxt "main_menu"
msgid "BACK"
msgstr "Retour"
msgctxt "character_anatomy"
msgid "BACK"
msgstr "Dos"
# Plural forms
msgid "ITEM_COUNT_SINGULAR"
msgid_plural "ITEM_COUNT_PLURAL"
msgstr[0] "%d objet"
msgstr[1] "%d objets"
# String with variables (preserve format specifiers)
msgid "SCORE_DISPLAY"
msgstr "Score : %d"
# String with named variables (safer than positional)
msgid "PLAYER_GREETING"
msgstr "Bonjour, {player_name} !"
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.
- 2mo ago Changed · +5 lines · +64 tokens per session 47fab7e6a790
- 3mo ago First seen · 203 lines · 0 tokens per session scan A 612cc83889ad
localization-patterns is a skill published in the GitHub repository HermeticOrmus/LibreGameDev-Claude-Code (5 stars, last pushed 2mo ago), licensed MIT. It adds 64 tokens to every session and 1,890 once invoked, about $0.0003 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.
localization-patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| localization-patternsHermeticOrmus/LibreGameDev-Claude-Code | Skill | 5 | 2mo ago | MIT | A | 64 | Claude Code |
| godot-prompter-localizationbgrenat/godot-game-dev-studio | Skill | 31 | 21d ago | LGPL-3.0 | A | 44 | Claude Code, Codex |
| studio-narrative-content-leadbgrenat/godot-game-dev-studio | Skill | 31 | 21d ago | LGPL-3.0 | A | 33 | Claude Code, Codex |
| dialogue-systemsgamedev-skills/awesome-gamedev-agent-skills | Skill | 12k | 18d ago | Apache-2.0 | A | 96 | Claude Code |
| unity-cliAlex-Rachel/TEngine | Skill | 2.4k | 12d ago | MIT | A | 68 | Codex |
| localizationjame581/GodotPrompter | Skill | 1.0k | today | MIT | A | 42 | Claude Code |
| luban-devAlex-Rachel/TEngine | Skill | 2.4k | 12d ago | MIT | A | 63 | Codex |