Review doc

From angadhn/botference · View interactive version

Review doc is an AI agent skill from the GitHub repository angadhn/botference. Render a document as a self-contained HTML page with Google-Docs-style margin comments (highlight text, attach notes, export feedback). Use when the user asks for a review doc or a commentable version of a document, or hands back a *.feedback.md file.

How to use this skill

Skill file

review-doc — reviewable HTML documents with margin comments

What this produces

A single self-contained .review.html file (no network, no deps) that

renders a markdown document with:

live as cards in a right margin rail, anchored to highlights.

passages + the user's notes) and a copy-to-clipboard alternative.

Workflow

  1. The markdown source stays canonical. Never hand-edit the

generated HTML; regenerate it.

  1. Generate:

node <dir-containing-this-SKILL.md>/build-review.mjs <source.md> [out.html]

(the script sits next to this SKILL.md — use the path you read it from)

(default output: <source>.review.html next to the source).

  1. Deliver: open <out.html> on macOS so it lands in the user's real

browser (commenting + export need a full browser, not a preview

pane), and/or send the file. Tell the user the loop in one line:

highlight → comment → Export feedback → give me the file.

  1. When the user returns a *.feedback.md (or pastes its contents):

read every quoted passage + note, respond to or apply each one,

then regenerate the review HTML from the updated markdown. Existing

comments re-anchor by quote; notes on text that changed appear in

the rail as "unanchored" rather than being lost.

Notes

blockquotes, links, images.

from the output filename — keep it stable across regenerations so

the user's in-progress comments survive.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.