Skip to main content
Every VectorLint rule file begins with a YAML frontmatter block that controls how VectorLint runs the review, handles the result, and reports violations. The Markdown body that follows is the prompt sent to the LLM.

Required fields

Optional fields

Target fields

The target field narrows the review to a specific part of the document. It is an object with the following sub-fields: Example: targeting only the H1 headline:

Criteria fields

The criteria field is an array of criterion objects used with type: judge. Each criterion defines one scoring dimension. Example: judge rule with two weighted criteria:

Complete example

The following rule uses all commonly-used fields. It targets the H1 headline, judges it against two criteria, and requires the headline to exist before the review runs.