Skip to main content

i18n-resource-audit

Audit M3UAndroid localization resources for missing default strings, placeholder consistency, key naming, hardcoded user text, fallback behavior, and locale safety.

跳到安装

来源信息

仓库
oxyroid/M3UAndroid
最近来源活动
2026年5月20日 14:03
检测到的 SKILL.md 语言
英语
星标
1,257
分支
159

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
i18n-resource-audit
description
Audit M3UAndroid localization resources for missing default strings, placeholder consistency, key naming, hardcoded user text, fallback behavior, and locale safety.
allowed-tools
Read, Glob, Grep, Bash, Agent
argument-hint
[repo path or i18n module path]
# i18n Resource Audit Audit localization changes with concrete resource and call-site evidence. ## When To Use Use when a task changes or reviews: - String resources, plurals, arrays, or locale files - Resource key renames/removals - User-facing text in app or business code - Placeholder or formatting behavior ## Required Context Read first: - `AGENTS.md` - `i18n/AGENTS.md` - `docs/ai/playbooks/i18n-resources.md` - Relevant default resources, locale resources, and Kotlin call sites ## Audit Checks Verify with file evidence: - Every referenced user-facing string exists in the default locale. - Placeholder names, counts, types, and positional markers match across locales. - Resource keys are meaningful and aligned with existing prefixes. - Hardcoded user-facing strings are not introduced in app/business code. - Non-translatable literals are marked or kept out of translation resources. - Locale fallback behavior is intentional for missing translations. ## Process 1. Map changed resource keys and all Kotlin/XML call sites. 2. Compare default and locale-specific entries for placeholders and escaping. 3. Search the touched area for hardcoded user-facing strings. 4. Cite file paths and line numbers for each finding. ## Validation Recommend: ```bash ./gradlew :i18n:compileDebugKotlin ``` Compile affected app variants when resource usage changes. If unavailable, state resource-risk remaining. ## Output Return a concise Markdown report with: - Scope and locales reviewed - Pass/fail table for each audit check - Evidence-backed findings with file paths - Placeholder or fallback risks for PR notes - Validation run or not run, with reason
在 GitHub 查看