vkr-building

vkr-building is a cursor rule for Cursor from maxbarsukov/vkr-builder. It costs 0 tokens per session (588 once invoked), scanned A, original, MIT.

Instructions for using vkr-builder, a command-line tool that turns Markdown into documents such as DOCX and PDF files. They explain its commands, output reports, document-layout engines, and exit codes.

In plain words
What is it for?
They help build, preview, validate, lint, diagnose, and inspect generated documents, including machine-readable JSON reports.
Why use it?
They make it easier to run the correct command and understand whether a build succeeded, failed, or produced warnings.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/maxbarsukov/vkr-builder/vkr-building
Clone the repo
git clone --depth 1 https://github.com/maxbarsukov/vkr-builder

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vkr-building

README.md
[![agentmods](https://agentmods.dev/badge/rules/maxbarsukov/vkr-builder/vkr-building.svg)](https://agentmods.dev/rules/maxbarsukov/vkr-builder/vkr-building)
Your own site
<a href="https://agentmods.dev/rules/maxbarsukov/vkr-builder/vkr-building"><img src="https://agentmods.dev/badge/rules/maxbarsukov/vkr-builder/vkr-building.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 588 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00588
Opus 5 $0.00000 $0.00294
Sonnet 5 $0.00000 $0.00118
Haiku 4.5 $0.00000 $0.00059

Measured 5d ago against content hash 49d6dc4b0fa3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

vkr-building scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/vkr-building.mdc · 66 lines

What it actually says

Running vkr-builder

Use the launcher, not main.py — it locates Python and names itself in the tool's hints:

vkr-builder.bat build          # Windows
./vkr-builder.sh build         # Linux/macOS

build is the default command. Others: merge, docx, pdf, preview <file.md>, lint, stats, validate, diagnose <docx>, watch, doctor, init, profiles, help.

Common flags: --profile NAME, --pdf, --pagination-engine {auto,word,libreoffice}, --skip-merge, --skip-docx, --no-preflight, --diagnose, -v, --debug, -q, --json.

Engines

auto is the default: Word when installed, else LibreOffice. The report header says which was chosen (word engine (auto)); doctor lists both and what would be picked. A missing engine is only a warning there — "no layout engine available" is the failure.

Reading the report

  • Steps carry facts and timings, the footer carries the outcome and the files produced.
  • Findings name the source markdown file and line, never _bundle.md.
  • · N suppressed means @suppress silenced something deliberately — a run with a non-zero count is not "clean".
  • Exit codes: 0 success, 1 the command failed, 2 bad command line.

For scripts

docx=$(./vkr-builder.sh build -q)          # stdout: produced paths
./vkr-builder.sh lint --json | jq '.findings[]'

--json emits the whole report — steps with timings, findings with rule and location, artifacts with sizes, result — on stdout.

Docker

docker build -t vkr-builder .
docker run --rm -v "$PWD/example:/work/example" vkr-builder build --pdf

No Word in the image, so auto resolves to LibreOffice.

Never

  • edit or commit _bundle.md, *.preview.docx;
  • hand-edit generated DOCX or PDF; rebuild it.
  • add --no-preflight to get past lint errors — fix the markdown;
  • call a run successful when its footer shows or the exit code is not 0.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 66 lines · 0 tokens per session scan A 49d6dc4b0fa3

Subscribe to this mod's changes

vkr-building is a cursor rule published in the GitHub repository maxbarsukov/vkr-builder (4 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 588 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.