---
title: "hal-grammar-check"
url: "https://claudemods.dev/zh-tw/builds/hal-grammar-check-707409"
source: "https://github.com/vinta/hal-9000/tree/main/plugins/hal-grammar-check"
source_type: "github"
repo: "https://github.com/vinta/hal-9000/tree/main/plugins/hal-grammar-check"
author: "vinta"
author_handle: "vinta"
stars: 143
category: "提示詞與輸入強化"
categories: ["input"]
tags: ["grammar-check", "local-llm", "ollama", "plugin", "prompt-input", "traditional-chinese"]
permission_level: 2
scan_complete: true
install: "claude plugin marketplace add vinta/hal-9000\nclaude plugin install hal-grammar-check@hal-9000"
added: "2026-10-05T17:25:23.607Z"
updated: "2026-11-22T21:48:39Z"
locale: "zh-tw"
content_locale: "zh-tw"
---

# hal-grammar-check

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

## Description

# Claude Code Grammar Check

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

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

## 安裝

**這個外掛需要本機的 [Ollama](https://ollama.com/)** 與 `gemma4:31b-mlx` 模型：

```bash
ollama pull gemma4:31b-mlx
```

這是一個 [mod](https://code.claude.com/docs/en/plugins/mods/overview)，因此也需要 Claude Code 2.1.287 或更新版本。

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

然後重新啟動 Claude Code。

## 使用方式

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

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

## 隱私權

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

## 螢幕擷取畫面

![Claude Code Grammar Check 範例](https://raw.githubusercontent.com/vinta/hal-9000/main/assets/claude-code-grammar-check.png)

## Install

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

## Original 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](https://ollama.com/)** with the `gemma4:31b-mlx` model:

```bash
ollama pull gemma4:31b-mlx
```

It's a [mod](https://code.claude.com/docs/en/plugins/mods/overview), so it also needs Claude Code 2.1.287 or later.

```bash
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](../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](https://raw.githubusercontent.com/vinta/hal-9000/main/assets/claude-code-grammar-check.png)
