Before you start
You’ll need a working VectorLint installation with an LLM provider configured. If you haven’t done that yet, complete Installation and Configuration first.Step 1: Create your rules directory
VectorLint looks for rule packs in the directory specified byRulesPath in .vectorlint.ini. Create the directory structure:
MyTeam. Pack names come from subdirectory names inside RulesPath.
Step 2: Write the rule file
Create a new file at.github/rules/MyTeam/grammar-checker.md:
Step 3: Configure .vectorlint.ini
Open your.vectorlint.ini and add the RulesPath setting and a file pattern that runs your new pack:
Step 4: Run a check
Point VectorLint at any Markdown file:GrammarChecker prompt, filters the results through the PAT pipeline, and prints any violations with their location and suggested fix.
A clean file produces no output and exits with status 0. A file with violations prints each finding and exits with a non-zero status.
Step 5: Tune strictness (optional)
By default, VectorLint uses standard strictness — a penalty of ~10 points per 1% error density. For technical documentation where accuracy matters more, raise it:Writing effective prompts
The Markdown body of your rule file is the prompt sent to the LLM. Specificity here directly determines evaluation quality — a vague prompt produces vague findings. Be explicit about what you’re looking for:Next steps
- Defining your style rules — full reference for rule anatomy, evaluation modes, targeting, and examples
- Project Configuration — control which rules run on which files
- LLM Providers — switch providers or tune false-positive filtering