Hook by xiaolai · 26 stars
A UserPromptSubmit hook that helps non-native English speakers improve while using Claude Code. Three modes dispatch automatically based on what you type: (1) correct — if your English prompt has errors, the hook fixes them and shows a per-line `wrong → right (reason)` diff so you learn the rule, not just the fix; (2) translate — if the input is non-English (Chinese, Japanese, Spanish, etc.), it's translated into natural English while preserving technical terms, file paths, and tool names; (3) refine — prefix `::` rewrites a rough idea into a precise prompt. Local JSONL history powers /today, /stats, /mistakes reports, and a /drill spot-quiz on top recurring patterns. Skills cover grammar, punctuation, tone, technical writing, and common L2-English mistakes.
/plugin install claude-english-buddy@claude-community