flutter-monolith-localization

flutter-monolith-localization is a skill for Claude Code, Codex from eaglesakura/agent-skills. It costs 200 tokens per session (1,309 once invoked), scanned A, original, MIT.

A procedure for handling localization in a Flutter app through monolith, using a CSV file as the source for generated language code. Localization means showing app text in different languages.

In plain words
What is it for?
Use it to add or change strings, generate localization code, connect packages to the shared language helper, and provide localized text in tests and previews.
Why use it?
It keeps translated strings in one defined source and separates hand-written access code from generated files. This reduces the risk of editing generated output or using inconsistent language setup.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add or change strings, generate localization code, connect packages to the shared language helper, and provide localized text in tests and previews.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eaglesakura/agent-skills/flutter-monolith-localization
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 eaglesakura/agent-skills --skill flutter-monolith-localization
Clone the repo
git clone --depth 1 https://github.com/eaglesakura/agent-skills

Made for: Claude Code, Codex.

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 flutter-monolith-localization

README.md
[![agentmods](https://agentmods.dev/badge/skills/eaglesakura/agent-skills/flutter-monolith-localization.svg)](https://agentmods.dev/skills/eaglesakura/agent-skills/flutter-monolith-localization)
Your own site
<a href="https://agentmods.dev/skills/eaglesakura/agent-skills/flutter-monolith-localization"><img src="https://agentmods.dev/badge/skills/eaglesakura/agent-skills/flutter-monolith-localization.svg" alt="Measured on agentmods" height="20"></a>
Per session 200 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,309 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.00200 $0.01309
Opus 5 $0.00100 $0.00655
Sonnet 5 $0.00040 $0.00262
Haiku 4.5 $0.00020 $0.00131

Measured 7d ago against content hash 0da5c6189b30, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

flutter-monolith-localization 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 7d 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.

packages/flutter/.apm/skills/flutter-monolith-localization/SKILL.md · 98 lines

How it starts

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

monolith / L10n 対応

Flutter アプリで、monolith 経由のローカライゼーション(CSV → 生成コード)を扱うときはこの SKILL に従う。 実装の細部・DO/DO NOT は references/localization.md を読む。 コマンド例は dart run … 本体で示す。mise / fvm 等のラッパーはリポジトリ規約に任せ、本 SKILL には埋め込まない。

いつ使うか

  • res/strings.csv への文言追加・変更
  • dart run monolith_runner:localization によるコード生成
  • パッケージ内 strings アクセサ(L10nStringsMixin)の実装
  • Unit Test / Widget Preview / Golden Test への文言注入(StringsTestHelper

いつ使わないか

  • Flutter 標準 gen-l10n / ARB 手編集のみ(monolith を使わない場合)
  • Dart の一般的なコーディング規約だけ → flutter-coding-rules
  • アプリ起動・DTD デバッグ → flutter-app-debug

データレイアウト

各 package ごと(必要に応じて):

path/to/package
├── lib
│   ├── gen
│   │   └── strings.dart          # 自動生成(手編集しない)
│   └── src
│       └── strings.dart          # 手書き: L10nStringsMixin を mixin
├── pubspec.yaml
├── res
│   └── strings.csv               # 真実源
└── test

集約言語の正本(ARB / gen-l10n / L10nHelper)は app_runnerapp/runner に出力される。 feature アプリは package:app_runner/app_runner.dart 経由で L10nHelper を利用する。 .secrets/monolith.secrets.yamllocalization.app.package_name がある場合は app_runner に揃える(secrets が優先)。

作業手順

  1. res/strings.csv を編集する(ヘッダー id,{言語コード},description
  2. ルートから生成する: dart run monolith_runner:localization
  3. パッケージの lib/src/strings.dart で生成 mixin を使う(export しない、@internal
  4. テスト/Preview が必要なら StringsTestHelper + LocalizeStringDelegate.injectDelegateForTest

依存ライブラリ

パッケージ 置き場所
monolith dart workspace ルートdev_dependencies
monolith_localization 同上
monolith_localization_runtime 個別 package に必要

個別 package に monolith / monolith_localization を足す必要はない。

StringsTestHelper(Test / Preview / Golden)

monolith.yamllocalization.test_helper は省略可。省略時はヘルパーを生成しない。

localization:
  languages:
    - ja
  test_helper:
    package_name: foundation_resources          # required
    test_helper_class_name: StringsTestHelper   # optional
    test_helper_path: lib/gen/strings_test_helper.dart  # optional

Read the full file on GitHub · 98 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 7d ago First seen · 98 lines · 200 tokens per session scan A 0da5c6189b30

Subscribe to this mod's changes

flutter-monolith-localization is a skill published in the GitHub repository eaglesakura/agent-skills (2 stars, last pushed 2d ago), licensed MIT. It adds 200 tokens to every session and 1,309 once invoked, about $0.0010 per session on Opus 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

Other skills, from other repositories

flutter-setup-localization

Add flutterlocalizations and intl dependencies, enable "generate true" in pubspec.yaml, and create an l10n.yaml configuration file. Use when initializing localization support for a new Flutter project.

flutter/agent-plugins · 52 tokens

asc-localize-metadata

Automatically translate and sync App Store metadata (description, keywords, what's new, subtitle) to multiple languages using LLM translation and asc CLI. Use when asked to localize an app's App Store listing, translate app descriptions, or add new languages to App Store Connect.

rorkai/app-store-connect-cli-skills · 60 tokens

asc-metadata-sync

Sync, validate, and apply App Store metadata with the current asc canonical metadata workflow. Use when updating metadata, localizations, keywords, or migrating legacy fastlane metadata.

rorkai/app-store-connect-cli-skills · 39 tokens

ios-marketing-capture

Use when the user wants to automate capture of marketing screenshots for a SwiftUI iOS app across multiple locales, devices, or appearances. Covers full-screen shots, isolated element renders (carousel cards, widgets), and reproducible output naming. Triggers on marketing screenshots, locale screenshots, widget…

ParthJadhav/ios-marketing-capture · 78 tokens

localization-l10n

Implement localization (l10n) best practices to adapt applications for specific regions, languages, and cultural preferences.

Mindrally/skills · 28 tokens

maui-localization-theming

Implement MAUI localization and theming. USE FOR: RESX/AppResources, runtime culture switching, RTL/FlowDirection, platform language metadata, AppThemeBinding, DynamicResource, light/dark/system themes, UserAppTheme. DO NOT USE FOR: general layout, accessibility audits, icon/splash assets.

dotnet/maui-labs · 73 tokens