skills/i18n-checker/SKILL.md
全量掃描硬編碼中文字串並生成 i18n 修正建議。檢測所有層(Model/Service/Domain/UI)中文硬編碼,生成 ARB 鍵值建議,支援批量替換工作流程。Use for: (1) 檢查專案全部硬編碼中文(不只 UI 層), (2) 進行大規模 i18n 修復, (3) 生成 ARB 鍵值建議, (4) i18n 技術債務評估
npx skillsauth add tarrragon/claude i18n-checkerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
深度掃描專案中所有硬編碼中文字串,生成 i18n 修正建議。
uv run scripts/i18n_hardcode_checker.py
| 選項 | 說明 | 範例 |
|------|------|------|
| (無選項) | 摘要統計 | 總計: 11918, lib/: 1966, test/: 9952 |
| --report | Markdown 詳細報告 | uv run scripts/i18n_hardcode_checker.py --report > docs/i18n-report.md |
| --arb | JSON ARB 鍵值建議 | uv run scripts/i18n_hardcode_checker.py --arb |
| --json | 結構化 JSON 輸出 | uv run scripts/i18n_hardcode_checker.py --json |
詳細參數和工作流程見 references/mixed-processing-guide.md 和 references/scanner-rules.md。
# 1. 執行檢查,生成詳細報告
uv run scripts/i18n_hardcode_checker.py --report > docs/i18n-report.md
# 2. 根據報告分類硬編碼(見 references/mixed-processing-guide.md)
# 3. 生成 ARB 鍵值建議
uv run scripts/i18n_hardcode_checker.py --arb > arb_suggestions.json
# 4. 手動審核 + 添加到 ARB + flutter gen-l10n
# 5. 使用批量替換腳本
uv run scripts/i18n_batch_replace.py --target lib/presentation --apply
# 6. 再次驗證
uv run scripts/i18n_hardcode_checker.py
詳細的複雜度分級判斷、等級決策、Ticket 派生策略見 references/mixed-processing-guide.md。
與 style-guardian 的互補關係:
| 工具 | 檢查範圍 | 用途 | |------|---------|------| | style-guardian | UI 層(Text、AppBar、labelText) | 快速日常檢查 | | i18n-checker | 全層(Model/Service/Domain/UI) | 深度技術債務清理 |
詳細的複雜度分級、工作流程、Ticket 派生策略:
references/mixed-processing-guide.md - 等級 A/B/C/D 判斷標準和實戰案例references/scanner-rules.md - 掃描規則和鍵名建議邏輯.claude/methodologies/business-layer-i18n-management-methodology.md.claude/skills/style-guardian/Last Updated: 2026-03-02 Version: 1.0.0
development
Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a frontend interface. Covers websites, landing pages, dashboards, product UI, app shells, components, forms, settings, onboarding, and empty states. Handles UX review, visual hierarchy, information architecture, cognitive load, accessibility, performance, responsive behavior, theming, anti-patterns, typography, fonts, spacing, layout, alignment, color, motion, micro-interactions, UX copy, error states, edge cases, i18n, and reusable design systems or tokens. Also use for bland designs that need to become bolder or more delightful, loud designs that should become quieter, live browser iteration on UI elements, or ambitious visual effects that should feel technically extraordinary. Not for backend-only or non-UI tasks.
development
Claude Code release notes 框架影響評估工具。比對 last-reviewed 版本篩出新版本,逐項分類(對框架有幫助 / 需評估 / 無影響 / 不適用),對採用項引導建 ANA + WRAP + spawn 落地。Use when: 執行 /release-notes 看到新版本、定期檢查 CC 更新、評估新功能對專案框架的影響時。Triggers: release notes, release-notes, CC 更新, claude code 更新, 版本更新評估, 新功能評估, 框架影響評估。
development
Assertion design judgment framework for flaky and design-quality issues. Use when writing tests, reviewing assertions, diagnosing flaky tests, or deciding if a timing/float/cache assertion is appropriate. Do NOT use for API syntax or refactoring.
tools
Chrome Extension 實機測試與 debug 工作流,以 chrome-devtools-mcp 為核心工具。Use when: (1) 完成功能後實機驗證 / manual test / 試看看 / 跑看看 / verify feature, (2) extension debug / popup 不作動 / content script 不注入 / service worker 報錯 / background 出問題, (3) 安裝 unpacked extension / load unpacked / 載入未封裝, (4) 看 console / 看 network / 看 log / view console / inspect requests, (5) 功能更新後重新載入 extension / rebuild reload / reload extension。涵蓋 Manifest V3 service worker / content script / popup / options page 的 chrome-devtools-mcp 工具呼叫流程。不取代 Puppeteer / Playwright 自動化 E2E(CI 用),定位為開發期手動驗證與 LLM-assisted debug。