Skip to main content
Criteria are Markdown files with a specific structure that Doc Reviewer parses to build the evaluation rubric it sends to the LLM. You can write your own criteria to reflect the documentation standards of your product, team, or industry. Custom criteria go into Doc Reviewer through Settings → Criteria sets → New criteria set, or by placing a criteria.md file next to doc-reviewer.exe before the first launch.

File structure

A criteria file has four kinds of blocks:

Full format example

The Role section

The ## Роль section at the top of the file defines the expert persona that the LLM adopts when evaluating instructions. Doc Reviewer extracts this text and places it in the system prompt before the evaluation task. Write the Role section as a description of the evaluator’s expertise — their background, what they are evaluating, and any domain-specific knowledge they should apply. For example:
If the Role section is absent, Doc Reviewer falls back to a built-in default role.

Optional criteria

Mark a criterion as optional by appending <опциональный> to the heading:
An optional criterion is only evaluated when the instruction contains the relevant section. If the section is absent, the criterion is automatically scored as passing (ok). Use optional criteria for sections that legitimately may not exist — such as a troubleshooting section or a final-result paragraph.

Default criteria structure

The built-in criteria set covers five groups. This is the structure used in the default criteria.md:
Checks the top-level form of the instruction before any content is evaluated.
Checks the explanatory content that precedes the steps.
Checks the quality and completeness of the numbered procedure.
Checks the closing section of the instruction.
Checks error-handling content, if present.

Tips for writing good criteria

Be specific about what “pass” looks like. Vague criteria produce inconsistent LLM results. Instead of “steps are clear”, write “each step contains exactly one action phrased as an imperative verb”. Use optional markers for sections that may not always exist. If a criterion checks a section that is legitimately absent in some instructions (a troubleshooting block, a final-result paragraph), mark it as <опциональный>. This prevents false failures. Keep descriptions concise. One to two sentences per criterion is enough. The LLM reads the full criteria file for every evaluation — long descriptions increase token usage and can dilute focus. Match the Role section to your product type. Describe the expertise most relevant to your documentation: an information security product evaluator, a developer tools technical writer, a regulated-industry compliance reviewer, and so on. The more specific the role, the more consistently the LLM applies your standards. Number criteria with dotted notation. Use 1.1, 1.2, 2.1, and so on. The number is used as the criterion ID in evaluation results and tooltips — keep it stable across edits.

Use your custom criteria

Go to Settings → Criteria sets → New criteria set, paste your Markdown content, give the set a name, and click Save. Then click Activate to make it the active set.