Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

harper

FreeNo executable scriptsNot checked

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

TerminalSkillsby TerminalSkills★ 221 GitHub stars

About this skill

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.

Full SKILL.md on GitHub

Install harper in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

_scores.json

FAQ

What does the harper skill do?

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".

How do I install the harper skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the harper skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare harper with