-
VECTORLINT.mdfile: the global style instructions in plain language. Create this file from your style guide and place it in your project root. VectorLint applies its contents to every review, making your tone, terminology, and baseline standards active across all rules automatically. Use it for broad, always-applicable guidance. See Project Configuration for details. -
Rule pack files: the targeted rules for specific standards. Create these as separate Markdown files as described below. Each file instructs the LLM to review content against one specific standard: grammar, headline quality, AI pattern detection, technical accuracy, and so on. Rules are organized into packs and mapped to file patterns in
.vectorlint.ini. Rule pack files live in subdirectories underRulesPath. See File Structure Reference below.
Creating your VECTORLINT.md
Place aVECTORLINT.md file in your project root to define global style instructions that apply to every review. VectorLint uses its contents as context for every rule it runs.
Keep this file concise. VectorLint emits a warning if the file exceeds approximately 4,000 tokens, as very large contexts can degrade performance and increase API costs.
Extract rules from an existing style guide
If your team already has a style guide, use the following prompt with any capable LLM to convert it into aVECTORLINT.md-optimized file. Paste your full style guide after the prompt.
Creating rule pack files
Rule pack files are optional Markdown files, each defining a targeted rule for a specific standard. UnlikeVECTORLINT.md, which sets broad context for every review, rule pack files enforce precise, measurable criteria. You can create as many as your content workflow requires and organize them into packs mapped to specific file patterns in .vectorlint.ini.
Each rule file has two parts: YAML frontmatter that configures how VectorLint handles the result, and a Markdown body that is the actual prompt sent to the LLM.
Rule Anatomy
Required frontmatter fields
Optional frontmatter fields
Review modes
VectorLint supports two review modes, chosen with thetype field.
Check rules
The LLM returns a list of specific violations. VectorLint scores the result using error density (violations per 100 words), so a single error in a short document weighs more than the same error in a long one.Judge rules
The LLM scores content against multiple weighted criteria using a 1–4 rubric. VectorLint normalizes each score to a 1–10 scale and computes a weighted average.
Define criteria in the frontmatter and expand each into a rubric section in the Markdown body:
Targeting Specific Content
Thetarget field lets you review a specific portion of a document (for example, only the H1 headline) rather than the full content.
required: true: If the pattern doesn’t match, VectorLint reports an immediate error with the suggestion text, and skips LLM review.
When required: false (or omitted): If the pattern doesn’t match, VectorLint reviews the full document instead.
File Structure Reference
Acme pack on all Markdown files:
Examples
AI Pattern Detector (Judge)
Next Steps
- Customize style rules: learn how to write effective rules for your rule pack files
- Project Configuration: assign rule packs to file patterns
- LLM Providers: configure the model used for reviews