用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/kylecorry31/Trail-Sense --skill android-check-pr-translations命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Add Trail Sense UI automation tests using AutomationLibrary and ToolTestBase for tool workflows or androidTests.
Add Trail Sense Room persistence for a model, including entity mapping, DAO, repository, AppDatabase migration, and tool registration.
Scaffold a Trail Sense quick action with class, persisted Tools id, registration, string, and icon resources.
| name | android-check-pr-translations |
| description | Audit changed Android translations in a GitHub PR. |
| disable-model-invocation | true |
Audit the translation accuracy of Android string resources and localized guide files changed in a GitHub pull request.
Run the extraction script from the skill's folder to get the changed translated content from the PR:
python3 scripts/extract_pr_strings.py <pr-number> --output /tmp/pr-strings.json
Read the extracted JSON from /tmp/pr-strings.json.
This step is complete when the output includes:
locales: changed translated <string> resources with the English source for each key.files: changed localized guide .txt files, including guide pages, field guides, and tool_keywords.txt, with the matching guides/en-US/... source text.Use the /translation-review skill to review each of the locales and files translations. Include the string key and locale name in your finding so I can identify which language has the inaccurate translation.
If the field guide contains a localized or changed Wikipedia link, check that the link is valid and points to the same topic as the English source.
scripts/extract_pr_strings.py (skill-local)The script parses the output of gh pr diff and extracts:
<string> elements from res/values-*/strings.xml patch hunks.guides/<locale>/*.txt, excluding guides/en-US.Usage:
python3 scripts/extract_pr_strings.py <pr-number> --output /tmp/pr-strings.json
Output schema:
{
"pr_number": 1234,
"locales": {
"values-pl": {
"added": [{"key": "some_key", "value": "translated text", "english": "English source text"}],
"removed": [{"key": "old_key", "value": "old translated text", "english": "English source text"}]
}
},
"files": [
{
"path": "guides/pl-rPL/tool_keywords.txt",
"locale"
locales.*.added — strings newly introduced or whose value was changed (new value)locales.*.removed — strings that were deleted or whose value was changed (old value)locales.*.english — the corresponding value from app/src/main/res/values/strings.xml; empty string if the key is not foundres/values-*/strings.xml files are included; the English res/values/strings.xml is excludedfiles[].added — added or changed translated guide lines grouped into contiguous diff blocksfiles[].removed — removed translated guide lines grouped into contiguous diff blocksfiles[].english — the complete matching English source guide file; empty string if the source file is not found