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:
Optional criteria
Mark a criterion as optional by appending<опциональный> to the heading:
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 defaultcriteria.md:
Group 0 — Structure
Group 0 — Structure
Checks the top-level form of the instruction before any content is evaluated.
Group 1 — Intro text
Group 1 — Intro text
Checks the explanatory content that precedes the steps.
Group 2 — Steps
Group 2 — Steps
Checks the quality and completeness of the numbered procedure.
Group 3 — Result
Group 3 — Result
Checks the closing section of the instruction.
Group 4 — Troubleshooting
Group 4 — Troubleshooting
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
- Via the UI
- As the default on first run
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.