Skip to main content
VectorLint gives you two ways to bring your style guide into evaluations. Understanding which to use and when to combine them is the starting point for any content quality workflow:
  • VECTORLINT.md file: 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 under RulesPath — see File Structure Reference below.
If you can write a prompt for it, you can lint for it with VectorLint.

Creating your VECTORLINT.md

Place a VECTORLINT.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 a VECTORLINT.md-optimized file. Paste your full style guide after the prompt.
Target your VECTORLINT.md file at under 800 tokens. This leaves room for rule-specific prompts without approaching the warning threshold.
To help you get started, the VectorLint docs repository includes an example VECTORLINT.md covering common technical writing rules that you can copy and adapt.

Creating rule pack files

Rule pack files are optional Markdown files, each containing a targeted LLM prompt for a specific check. Unlike VECTORLINT.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 the type 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.
Scoring: Start at 10. Each percentage point of error density deducts points according to the strictness level configured for this rule in .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

The target field lets you evaluate a specific portion of a document — for example, only the H1 headline — rather than the full content.
When 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

To run the Acme pack on all Markdown files:

Examples

AI Pattern Detector (Judge)

Next Steps