Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

harper

БесплатноБез исполняемых скриптовНе проверен

Checks English spelling and grammar locally, in milliseconds, without sending text to any server, using the Harper command-line linter (harper-cli) and…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

Harper — private, instant grammar checking for docs and code comments

Overview

Harper is an English grammar and spell checker written in Rust. It runs on your machine, lints a document in milliseconds, uses far less memory than LanguageTool, and never sends text anywhere. It only supports English (American, British, Australian, Canadian and Indian dialects).

Two binaries matter to an agent:

  • harper-cli: a small command-line linter. The project calls it experimental and it is not published on crates.io, but pre-built binaries are attached to every GitHub release. It reads files or standard input, prints findings, and exits non-zero when it finds any, so it fits CI and scripts.
  • harper-ls: a Language Server Protocol server. It lints Markdown, plain text, LaTeX, Typst, AsciiDoc and git commit messages, and the comments (only the comments) of most programming languages. Editors talk to it over stdio.

There are also a VS Code extension, a Zed extension, an Obsidian plugin, browser extensions and a JavaScript library (harper.js), which this skill does not cover.

Instructions

Install harper-ls

Prefer a package manager (all documented by the project):

brew install harper            # macOS and Linux
scoop install harper           # Windows
sudo pacman -S harper          # Arch Linux
cargo install harper-ls --locked   # needs Rust stable

Check with harper-ls --version. Run with no arguments it listens on TCP 127.0.0.1:4000; editors normally start it with --stdio.

Install harper-cli

Download the archive for your platform from the releases page, extract it, and put the binary on PATH. Asset names follow harper-cli-<target>.tar.gz (for example harper-cli-x86_64-unknown-linux-gnu.tar.gz, harper-cli-aarch64-apple-darwin.tar.gz; the Windows asset is a .zip). Pin a release tag in scripts:

curl -fsSL -o harper-cli.tar.gz https://github.com/Automattic/harper/releases/download/v2.13.0/harper-cli-x86_64-unknown-linux-gnu.tar.gz
echo "3c2db5f53d374f7b3fe70200a6675f5ba43f01b3995974fb32a39e20237e914a  harper-cli.tar.gz" | sha256sum -c -
tar -xzf harper-cli.tar.gz
install -m 0755 harper-cli ~/.local/bin/harper-cli
harper-cli --version

The release publishes no checksum file; the SHA-256 above is the digest GitHub records for that asset (gh api repos/Automattic/harper/releases/tags/v2.13.0 --jq '.assets[] | select(.name=="harper-cli-x86_64-unknown-linux-gnu.tar.gz") | .digest'). Take it again whenever you change the version or platform.

From a clone of the repository, cargo install --path harper-cli --locked also works.

Lint files

harper-cli lint README.md docs/guide.md      # rich report with source context
harper-cli lint --format compact docs/       # one line per finding: file:line:col: Rule: message
harper-cli lint --format json notes.md       # structured output with spans and suggestions
harper-cli lint --count notes.md             # only the number of findings
echo "We recieve the colour" | harper-cli lint --format compact -d british

Useful flags on lint:

  • --only SpellCheck,RepeatedWords runs just those rules; --ignore UseTitleCase,SpelledNumbers runs everything except them (comma-separated rule names).
  • -d, --dialect takes us (default) and the usual codes for British, Australian, Canadian and Indian English.
  • -u, --user-dict-path points at a custom word list (one word per line); -f, --file-dict-path points at the directory of file-local dictionaries.
  • --quiet hides informational messages, --no-color removes colors, -o keeps overlapping findings.
  • harper-cli config prints every rule name with its default and a description; use it to find rule names.

Exit status is 0 when nothing is found and 1 when lints are found ("Error: Lints were found"), so no extra parsing is needed to fail a CI job. Rule names in --only and --ignore are the short names printed in the report (SpellCheck, AnA, RepeatedWords, UseTitleCase).

Suggestions in the JSON output are text such as Replace with: “the”. harper-cli does not rewrite files; the agent applies the fixes with its own edit tools after reading the findings.

Wire harper-ls into an editor

Neovim (with nvim-lspconfig):

require('lspconfig').harper_ls.setup {
  settings = {
    ["harper-ls"] = {
      linters = { SpellCheck = true, SpelledNumbers = false, LongSentences = false },
      dialect = "American",
      diagnosticSeverity = "hint",
    }
  }
}

Helix, in languages.toml:

[language-server.harper-ls]
command = "harper-ls"
args = ["--stdio"]

language
name = "markdown"
language-servers = ["marksman", "markdown-oxide", "harper-ls"]

Include the language's default servers in the list, because Helix cannot append a server to the defaults. Emacs (29+, Eglot): (add-to-list 'eglot-server-programs '(markdown-mode . ("harper-ls" "--stdio"))). VS Code: code --install-extension elijah-potter.harper (setting `harper.

Полный SKILL.md на GitHub

Установить harper в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл harper?

Checks English spelling and grammar locally, in milliseconds, without sending text to any server, using the Harper command-line linter (harper-cli) and language server (harper-ls). Use when a user wants to proofread Markdown, docs, code comments or commit messages offline, add grammar checking to CI or a pre-commit hook, wire harper-ls into Neovim, Helix, Emacs, VS Code or Zed, tune rules and dialects, or replace Grammarly or LanguageTool for privacy reasons. Triggers include "offline grammar checker", "lint my docs for typos", "harper-ls config", "private spellcheck".

Как установить скилл harper?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл harper запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить harper с