Harper Grammar Checker Skill
Type: Grammar & Style Checker Source: https://github.com/automattic/harper Location:
.agent/opendraft/harper/
Overview
Harper is an offline, privacy-first grammar checker written in Rust. It is:
- •Fast: Milliseconds to lint a document
- •Private: No data sent to external servers
- •Lightweight: 1/50th of LanguageTool's memory footprint
Installation (Choose One)
Option 1: VS Code Extension (Recommended)
- •Open VS Code
- •Go to Extensions (Ctrl+Shift+X)
- •Search for "Harper"
- •Install the official Harper extension
- •Done! Harper will automatically check your markdown files.
Option 2: Build from Source (Requires Rust)
Prerequisites: Install Rust from https://rustup.rs/
bash
cd .agent/opendraft/harper cargo build --release -p harper-cli
Usage:
bash
./target/release/harper-cli lint drafts/01_introduction.md
Integration with Agent Workflow
Pre-Writing (Phase 2)
After drafting a section, run Harper to check grammar:
bash
harper-cli lint drafts/01_introduction.md
Post-Writing (Phase 3)
Verify all sections pass grammar check before submission:
bash
harper-cli lint drafts/*.md
Rules to Enforce
Harper will catch:
- • Subject-verb agreement
- • Article errors ("a" vs "an")
- • Sentence structure issues
- • Repeated words
- • Punctuation errors
Note: Harper does NOT catch:
- •AI marker words (use AIbypass.md for this)
- •Style issues (use thesis_writing_strategy.md)
Quick Commands
| Task | Command |
|---|---|
| Build CLI | cargo build --release -p harper-cli |
| Lint file | harper-cli lint <file.md> |
| Lint all drafts | harper-cli lint drafts/*.md |