flutter-core-modules: Skill for Claude Code

.claude/skills/feature-locale/SKILL.md

feature-locale is a skill for Claude Code from sampaio-tech/flutter-core-modules. It costs 68 tokens per session (1,106 once invoked), scanned A, original, MIT.

A Flutter data and domain module that saves and restores the language selected by a user between app sessions. It uses SharedPreferences, a simple local settings store, and has no user interface.

In plain words
What is it for?
Use it to read, save, or remove the app's selected language through its provided use cases.
Why use it?
It removes the need to implement language persistence and restoration separately in each app.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is sampaio-tech/flutter-core-modules's own configuration. It tells Claude Code how to work on flutter-core-modules itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything flutter-core-modules configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sampaio-tech/flutter-core-modules. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/sampaio-tech/flutter-core-modules/main/.claude/skills/feature-locale/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/sampaio-tech/flutter-core-modules

Made for: Claude Code.

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 feature-locale

README.md
[![agentmods](https://agentmods.dev/badge/skills/sampaio-tech/flutter-core-modules/feature-locale.svg)](https://agentmods.dev/skills/sampaio-tech/flutter-core-modules/feature-locale)
Your own site
<a href="https://agentmods.dev/skills/sampaio-tech/flutter-core-modules/feature-locale"><img src="https://agentmods.dev/badge/skills/sampaio-tech/flutter-core-modules/feature-locale.svg" alt="Measured on agentmods" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,106 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.00068 $0.01106
Opus 5 $0.00034 $0.00553
Sonnet 5 $0.00014 $0.00221
Haiku 4.5 $0.00007 $0.00111

Measured 6d ago against content hash bf93cd99e70c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

feature-locale 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 6d 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.

.claude/skills/feature-locale/SKILL.md · 144 lines

How it starts

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

Feature: Locale

Purpose: Persist and restore the user's chosen Locale across app sessions using SharedPreferences. The feature has no UI — it is a pure data/domain module.


Layer Map

lib/src/features/locale/
├── domain/
│   ├── repositories/locale_repository.dart      # abstract LocaleRepository
│   └── usecases/
│       ├── get_locale_usecase.dart               # GetLocaleUsecase + provider
│       ├── set_locale_usecase.dart               # SetLocaleUsecase + provider
│       └── remove_locale_usecase.dart            # RemoveLocaleUsecase + provider
└── data/
    └── repositories/locale_repository.dart      # LocaleRepositoryImpl + provider

No presentation/ layer — locale is consumed directly via use cases.


Domain

Repository Interface

// lib/src/features/locale/domain/repositories/locale_repository.dart
abstract class LocaleRepository {
  Locale? getLocale();                               // sync, nullable
  Future<bool> setLocale({required Locale locale});  // returns success bool
  Future<bool> removeLocale();                       // returns success bool
}

Use Cases

Class Provider Signature
GetLocaleUsecase getLocaleUsecaseProvider Locale? call()
SetLocaleUsecase setLocaleUsecaseProvider Future<bool> call({required Locale locale})
RemoveLocaleUsecase removeLocaleUsecaseProvider Future<bool> call()

All providers are Provider.autoDispose.


Data

LocaleRepositoryImpl

File: lib/src/features/locale/data/repositories/locale_repository.dart

Persists locale as a List<String> in SharedPreferences:

  • Key: DatabaseKeys.locale.key'locale' (prod) / 'localeDebug' (debug)
  • Stored value: ['en'] or ['en', 'US'] (languageCode + optional countryCode)
  • Reads back: pattern matches on the list length to reconstruct Locale
// Storage format:
// Locale('en')       → ['en']
// Locale('pt', 'BR') → ['pt', 'BR']

final localeRepositoryProvider = Provider.autoDispose<LocaleRepository>(
  (ref) => LocaleRepositoryImpl(
    sharedPreferences: ref.read(sharedPreferencesProvider),
  ),
);

Read the full file on GitHub · 144 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. 6d ago First seen · 144 lines · 68 tokens per session scan A bf93cd99e70c

Subscribe to this mod's changes

feature-locale is a skill published in the GitHub repository sampaio-tech/flutter-core-modules (2 stars, last pushed 14d ago), licensed MIT. It adds 68 tokens to every session and 1,106 once invoked, about $0.0003 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

chinese-documentation

A Chinese technical-documentation style guide covering spacing, punctuation, numbers, terminology, and links when Chinese and English appear together.

jnMetaCode/superpowers-zh · 62 tokens

azure-ai-translation-text-py

Azure AI Text Translation SDK for real-time text translation, transliteration, language detection, and dictionary lookup. Use for translating text content in applications. Triggers: "text translation", "translator", "translate text", "transliterate", "TextTranslationClient".

microsoft/skills · 60 tokens

harden

Improve interface resilience through better error handling, i18n support, text overflow handling, and edge case management. Makes interfaces robust and production-ready. Use when the user asks to harden, make production-ready, handle edge cases, add error states, or fix overflow and i18n issues.

fengshao1227/ccg-workflow · 62 tokens

seedance-vocab-ja

This skill should be used when the user asks for Japanese Seedance 2.0 prompt wording, Japanese cinematic vocabulary, or translation of camera, lighting, action, VFX, audio, and production terms into Japanese.

Emily2040/seedance-2.0 · 50 tokens

asc-subscription-localization

Bulk-localize subscription, subscription-group, and in-app purchase display names across App Store locales using asc, including API 4.4.1 version-scoped v2 resources. Use when filling or updating subscription/IAP names and descriptions without App Store Connect UI work.

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

tiktok-shop-cross-border

Cross-border selling on TikTok Shop. Market selection, logistics setup, localization strategy, compliance requirements, and international expansion. Use when the user asks about TikTok Shop international selling, cross-border ecommerce, global expansion, or selling in multiple countries.

nexscope-ai/eCommerce-Skills · 55 tokens