-
VECTORLINT.mdfile: the global style instructions in plain language. Create this file from your style guide and place it in your project root. VectorLint prepends its contents to the system prompt for every evaluation, making your tone, terminology, and baseline standards apply across all rules automatically. Use it for broad, always-applicable guidance. See Project Configuration for details. -
Rule pack files: the targeted LLM prompts for specific checks. Create these as separate Markdown files as described below. Each file is a structured prompt that instructs the LLM to evaluate 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 evaluation. VectorLint prepends its contents to the system prompt 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 containing a targeted LLM prompt for a specific check. UnlikeVECTORLINT.md, which sets broad context for every evaluation, rule pack files enforce precise, measurable criteria — grammar, headline quality, AI pattern detection, technical accuracy, and so on. 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
Evaluation Modes
VectorLint supports two evaluation 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..vectorlint.ini. A score below 10 triggers a violation at the configured severity.
Strictness levels (set per-pattern in .vectorlint.ini):
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 evaluate 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 evaluation.
When required: false (or omitted): If the pattern doesn’t match, VectorLint evaluates 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 LLM prompts for your rule pack files
- Project Configuration — assign rule packs to file patterns
- LLM Providers — configure the model used for evaluations