ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
GitHub 儲存庫 · 發布者 vinta

hal-grammar-check

輸入提示時即時進行文法檢查,並用繁體中文解釋;修正內容會在按下 Enter 前顯示於提示框上方。

vinta@vinta

vinta/hal-9000/tree/main/plugins/hal-grammar-check

原貼文圖片1
已翻譯

關於這個 mod

Claude Code Grammar Check

<img src="icon.svg" width="128" alt="vinta/hal-9000 icon">

輸入提示時即時進行文法檢查,並用繁體中文解釋。修正內容會在按下 Enter 前顯示於提示框上方。

安裝

這個外掛需要本機的 Ollama 與 gemma4:31b-mlx 模型:

ollama pull gemma4:31b-mlx

這是一個 mod,因此也需要 Claude Code 2.1.287 或更新版本。

claude plugin marketplace add vinta/hal-9000
claude plugin install hal-grammar-check@hal-9000

然後重新啟動 Claude Code。

使用方式

直接輸入即可。停止輸入約 250ms 後,草稿會送到 Ollama,結果會顯示在提示框上方。較舊草稿的結果會被捨棄。

hal-statusline 會在送出後檢查每個提示。為了避免同時看到兩份結果,請在環境變數中設定 HAL_STATUSLINE_GRAMMAR_CHECK_DISABLED=1 將它關閉。

隱私權

它會將草稿前 500 個字元送到本機 Ollama 的 localhost:11434。完全離線,不會有任何內容離開你的電腦。

螢幕擷取畫面

Claude Code Grammar Check 範例

安裝

請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。

claude plugin marketplace add vinta/hal-9000
claude plugin install hal-grammar-check
原文 / README

Claude Code Grammar Check

<img src="icon.svg" width="128" alt="vinta/hal-9000 icon">

A grammar check on your prompt while you type, with explanations in Traditional Chinese. The corrections show up above the prompt box, before you hit Enter.

Installation

This plugin needs a local Ollama with the gemma4:31b-mlx model:

ollama pull gemma4:31b-mlx

It's a mod, so it also needs Claude Code 2.1.287 or later.

claude plugin marketplace add vinta/hal-9000
claude plugin install hal-grammar-check@hal-9000

Then restart Claude Code.

Usage

Just type. About 250ms after you stop, the draft goes to Ollama and the result shows up above the prompt box. A result for an older draft is dropped.

hal-statusline checks each prompt after you submit it. To avoid seeing both, turn that one off with HAL_STATUSLINE_GRAMMAR_CHECK_DISABLED=1 in your environment variables.

Privacy

It sends the first 500 characters of your draft to your local Ollama at localhost:11434. Fully offline, nothing leaves your machine.

Screenshots

Claude Code Grammar Check example

更多類似作品