Skip to content
Back to search

reply-language

MarketplaceWorks with Claude CodeGitHub

A Claude Code hook that keeps replies in Traditional Chinese (Taiwan)

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/annihilationwizard--reply-language/badge.svg)](/listings/annihilationwizard--reply-language)

HTML

<a href="/listings/annihilationwizard--reply-language"><img src="/api/listings/annihilationwizard--reply-language/badge.svg" alt="findsafeskills safety rating" /></a>

Install

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

In a Claude Code **terminal** session, run:

/plugin install reply-language --marketplace AnnihilationWizard/reply-language

1. Answer `y` to add the `github:AnnihilationWizard/reply-language` marketplace. 2. Choose a scope. The **user** scope runs the hook in every session. 3. Claude Code confirms `Plugin is now active.` No restart is needed.

It is also listed in the [AnnihilationWizard/claude-hooks](https://github.com/AnnihilationWizard/claude-hooks) marketplace as `reply-language@claude-hooks`.

> [!TIP] > If the same script is also registered as a Stop hook in `~/.claude/settings.json`, remove that entry after installing, or each reply is checked twice.

To update later, run `claude plugin update`, then `/reload-plugins`.

<details> <summary>Run from a local clone instead</summary>

git clone https://github.com/AnnihilationWizard/reply-language.git
claude --plugin-dir ./reply-language

To load a clone in every session, add it to the `env` block of `~/.claude/settings.json`:

{
  "env": { "CLAUDE_CODE_PLUGIN_DIRS": "/path/to/reply-language" }
}

</details>

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

.claude-plugin/marketplace.json · Manifest · 9 lines
  1. {
  2. "name": "reply-language",
  3. "description": "A Claude Code hook that keeps replies in Traditional Chinese (Taiwan)",
  4. "owner": {
  5. "name": "AnnihilationWizard",
  6. "url": "https://github.com/AnnihilationWizard"
  7. },
  8. "plugins": [{ "name": "reply-language", "source": "./" }]
  9. }
README.md · README · 131 lines
  1. # reply-language
  2. <p align="center">
  3. <img src="docs/images/icon.svg" width="96" height="96" alt="reply-language icon: a speech bubble holding 中 with a check mark">
  4. </p>
  5. <p align="center">
  6. <strong>Replies stay in Traditional Chinese.</strong><br>
  7. A Claude Code Stop hook that sends a reply written mostly in English back to Claude, to rewrite in Traditional Chinese with Taiwan terminology.
  8. </p>
  9. <p align="center">
  10. <a href="CHANGELOG.md"><img src="https://img.shields.io/badge/Version-1.0.0-green.svg" alt="Version 1.0.0"></a>
  11. <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="MIT License"></a>
  12. <a href="https://code.claude.com/docs"><img src="https://img.shields.io/badge/Platform-Claude%20Code-D97757.svg" alt="Platform: Claude Code"></a>
  13. <a href="hooks/hooks.json"><img src="https://img.shields.io/badge/Type-Stop%20hook-6E7681.svg" alt="Stop hook"></a>
  14. <a href="hooks/reply-language-check.test.mjs"><img src="https://img.shields.io/badge/Tests-5%20passing-3FB950.svg" alt="5 tests passing"></a>
  15. </p>
  16. <p align="center">
  17. <a href="#features">Features</a> ·
  18. <a href="#install">Install</a> ·
  19. <a href="#usage">Usage</a> ·
  20. <a href="#limitations">Limitations</a> ·
  21. <a href="#development">Development</a> ·
  22. <a href="CONTRIBUTING.md">Contributing</a> ·
  23. <a href="CHANGELOG.md">Changelog</a>
  24. </p>
  25. ![Side-by-side Claude Code session: on the left Claude ends the turn with an English reply to a Chinese request; on the right the Stop hook sends that reply back and Claude rewrites the same reply in Traditional Chinese](docs/images/preview.svg)
  26. *Illustration of a session before and after.*
  27. Instructions such as "reply in Traditional Chinese" in `CLAUDE.md` work most of the time, but after a long run of tool calls Claude can slip back into English. reply-language checks each reply when Claude ends its turn. When the reply is mostly English, Claude gets it back once with the instruction to rewrite the same reply in Traditional Chinese, keeping code, commands, paths and identifiers as they are.
  28. ## Features
  29. - **Checks the final reply only:** The hook reads the transcript back to the last user-role entry: a prompt, a tool result or a subagent hand-back. English status lines written between tool calls earlier in the turn do not count.
  30. - **Technical terms are free:** Code blocks, inline code, URLs and paths are removed before counting, so a Chinese reply full of `git` commands and file names passes.
  31. - **One rewrite per reply:** When Claude is already rewriting because of this hook, the reply is not checked again, so a turn can never loop.
  32. - **Short replies pass:** A reply with fewer than 40 letters and Han characters is never sent back.
  33. - **Nothing to configure:** One Node.js script with no dependencies, registered as a Stop hook by the plugin.
  34. | Final reply | Result |
  35. | --- | --- |
  36. | Mostly Chinese, with commands in backticks or code blocks | Passes |
  37. | Mostly Chinese, after English status lines earlier in the turn | Passes |
  38. | Mostly English, at least 40 letters and Han characters | Sent back once to rewrite |
  39. | Shorter than 40 letters and Han characters | Passes |
  40. ## Install
  41. In a Claude Code **terminal** session, run:
  42. ```
  43. /plugin install reply-language --marketplace AnnihilationWizard/reply-language
  44. ```
  45. 1. Answer `y` to add the `github:AnnihilationWizard/reply-language` marketplace.
  46. 2. Choose a scope. The **user** scope runs the hook in every session.
  47. 3. Claude Code confirms `Plugin is now active.` No restart is needed.
  48. It is also listed in the [AnnihilationWizard/claude-hooks](https://github.com/AnnihilationWizard/claude-hooks) marketplace as `reply-language@claude-hooks`.
  49. > [!TIP]
  50. > If the same script is also registered as a Stop hook in `~/.claude/settings.json`, remove that entry after installing, or each reply is checked twice.
  51. To update later, run `claude plugin update`, then `/reload-plugins`.
  52. <details>
  53. <summary>Run from a local clone instead</summary>
  54. ```bash
  55. git clone https://github.com/AnnihilationWizard/reply-language.git
  56. claude --plugin-dir ./reply-language
  57. ```
  58. To load a clone in every session, add it to the `env` block of `~/.claude/settings.json`:
  59. ```json
  60. {
  61. "env": { "CLAUDE_CODE_PLUGIN_DIRS": "/path/to/reply-language" }
  62. }
  63. ```
  64. </details>
  65. ## Usage
  66. Once installed, there is nothing to configure. When a reply is mostly English, Claude reads:
  67. ```text
  68. The reply to the user is mostly in English. Rewrite the same reply in Traditional Chinese
  69. with Taiwan terminology, keeping code, commands, paths and identifiers as they are.
  70. ```
  71. ### What counts as English
  72. After code blocks, inline code, `http` and `https` URLs, and paths with at least one `/` are removed, the hook counts Latin letters and Han characters in what is left. The reply is English when the two together reach 40 and there are more than twice as many Latin letters as Han characters.
  73. ## Limitations
  74. - Plugins do not load in Claude Code on the web (cloud sessions). To use the hook there, commit a copy of the script to the repository and register it in that repository's `.claude/settings.json`.
  75. - Only the language mix is checked, not the terminology. A reply in Simplified Chinese, or with mainland China terms, passes.
  76. - A reply that is mostly English prose outside code formatting, such as a quoted error message, is sent back once. Put such text in a code block.
  77. - The thresholds are fixed in the script.
  78. ## Development
  79. ```bash
  80. claude plugin validate --strict . # manifest, marketplace file and hooks
  81. node --test hooks/ # runs the hook on sample transcripts
  82. ```
  83. Run `claude --plugin-dir .` to try changes. A change reaches installed copies only when `version` in `.claude-plugin/plugin.json` goes up.
  84. ## Project Structure
  85. ```text
  86. .claude-plugin/ plugin.json manifest and marketplace.json
  87. hooks/ hooks.json, the Stop hook script and its tests
  88. docs/images/ README icon and illustration
  89. ```
  90. ## Contributing
  91. Bug reports and ideas are welcome. Read [CONTRIBUTING.md](CONTRIBUTING.md) before opening an [issue](https://github.com/AnnihilationWizard/reply-language/issues) or pull request, and follow [SECURITY.md](SECURITY.md) for security reports.
  92. ## License
  93. [MIT License](LICENSE). Copyright © 2026 [AnnihilationWizard](https://github.com/AnnihilationWizard).

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.