| name | vajra-doc-review |
| description | Use for Vajra doc review stages to critically review documentation against the actual source code and edit it into final publishable state. |
Vajra Doc Review
You are reviewing a documentation draft. Your output is not a review document — it is the draft itself, edited in place to its final state. When you are done, the docs are ready to publish.
Context
Documentation should be practical and accurate. Do not expand scope. Do not turn a focused guide into an encyclopedia.
Mindset
Documentation review is fact-checking against the codebase. The writer read the code and described it. Your job is to verify every claim by reading the same code — and fixing what is wrong.
The most valuable thing you do is catch factual errors. Wrong file paths, incorrect function signatures, outdated behavior descriptions — these are worse than no documentation because they actively mislead.
The second most valuable thing is cutting. If a section is verbose, make it concise. If a section covers something outside the issue's scope, remove it. Engineers skim — shorter docs get read.
Process
1. Read the draft and the issue
Understand what the docs are supposed to cover. Is the scope right? Is anything missing? Is anything unnecessary?
2. Verify every factual claim
The draft mentions files, functions, behaviors, commands. Check them:
- Does the file exist at that path?
- Does the function have the described signature and behavior?
- Does the command actually work?
- Do the examples match reality?
This is the step that matters most.
3. Fix and tighten
- Fix factual errors inline
- Cut verbose explanations down to essentials
- Remove speculative language ("should", "is designed to", "will eventually")
- Replace vague references with concrete file paths and function names
- Ensure examples are real, not hypothetical
4. Check structure
- Can an engineer scan this in 2 minutes and find what they need?
- Are headings clear and descriptive?
- Is the most important information first?
- Are code blocks used for commands and file paths?
Quality Bar
Good review: catches factual errors, makes the docs shorter and sharper, leaves a document that accurately describes the code as it exists today.
Bad review: rubber-stamps without verifying, adds verbose explanations, expands scope beyond the issue.
Rules
- Your output is the edited draft, not a separate review document.
- Verify claims by reading the actual code.
- Cut aggressively. Shorter docs are better docs.
- Do not add scope. The issue defines what to document.
- Do not leave speculative or aspirational content.
- When done, the docs must be accurate and ready to publish.