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★ 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,RepeatedWordsruns just those rules;--ignore UseTitleCase,SpelledNumbersruns everything except them (comma-separated rule names).-d, --dialecttakesus(default) and the usual codes for British, Australian, Canadian and Indian English.-u, --user-dict-pathpoints at a custom word list (one word per line);-f, --file-dict-pathpoints at the directory of file-local dictionaries.--quiethides informational messages,--no-colorremoves colors,-okeeps overlapping findings.harper-cli configprints 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.
Установить harper в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic