/agrev:agrevfrom agrev
Review a markdown document - usually a plan in docs/plans/ - with the user in plannotator, shown in an agterm session right after this one. The user annotates the rendered document (comments, deletions, labels, image attachments) and presses Send Feedback or Approve; you act on the feedback by editing the document, then reopen it for the next round with your replies pinned to the phrases they concern, and plannotator shows what changed since the last round. Use when the user says "agrev", "/agrev", "review this plan", "let's review the plan", "open the plan for review", "annotate the plan", "comment on the plan", or wants to read and mark up a markdown document rendered rather than as raw text or a diff.
Ships in agrev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A review runs in rounds. Each round the user reads the document in plannotator, marks it up and
sends a decision; you change the document, answer each point, and open the next round. It ends when
the user approves. scripts/review.py (below: review.py) does everything that touches plannotator
and agterm.
plannotator must be installed (~/.local/bin/plannotator); when open says it is not, give the user
the install command it prints and stop.
Take the file the user named, or the markdown document the conversation is about; when two or more fit, ask which.
${CLAUDE_SKILL_DIR}/scripts/review.py open <file>
It starts plannotator, shows it in a session named " review" right after this one, and switches
the user there; the chat is one click away and never covered. --no-follow opens it without
switching; --here lays it over the current session instead, when the user asks for that.
Then wait for the decision, with run_in_background: true:
${CLAUDE_SKILL_DIR}/scripts/review.py wait <file>
Tell the user in one line that the review is open, then end your turn. Do not poll: the background
wait exits when the user decides, and its completion wakes you. You cannot see comments while the
user writes them; they arrive together when the user presses Send Feedback.
wait returnsplannotator's server ends with each decision, so wait replaces its page: after Send Feedback the
review session shows "Feedback sent" until the next round opens there, and after Approve it shows
that the review is done. A Close leaves the session as the user left it.
review.py close <file> to remove the review session.## 3. (lines 8–9) Feedback on: "…").
"Remove this" items are deletions the user wants.For CHANGES REQUESTED, handle every item:
[{"quote": "a phrase from the CURRENT file, next to what you changed or answered",
"text": "Done: … / Kept, because … / Question: …"}]
quote pins the reply to that phrase in the page. Copy it from the document as it now reads,
as plain words without markdown markers (Use one writer, not Use **one** writer); a phrase
that is not in the document cannot be pinned. Leave quote out for a reply about the whole
document.${CLAUDE_SKILL_DIR}/scripts/review.py open <file> --comments <replies.json>
${CLAUDE_SKILL_DIR}/scripts/review.py wait <file>
plannotator shows "+N / −N since last review" on the document and a Versions tab, so the user
sees exactly what you changed, with your replies beside the phrases.To add a comment to a round that is already open, pipe the same JSON to
review.py comment <file>; it appears in the page at once.
wait removes
them from the feedback; when it cannot match one it prints a NOTE, and any item repeating your own
words is yours, not the user's.~/.cache/agrev/plannotator-cookies.json, so the onboarding dialogs appear only once.~/.cache/agrev/runs/<round>/; review.py status <file> names the current one.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub pysilver/cc-tools --plugin agrev