/vivswan-skills:reply-and-review-disciplinefrom Vivswan Skills
Use when replying to an issue reporter or outside contributor, or reviewing someone else's pull request.
Ships in Vivswan Skills. 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.
Someone else's thread: the reader skims it and does not know the code, and whatever is written there publishes under the user's name. Plain words first, the reader's own log lines with arrow notes, questions only when the report does not answer them, and on a PR one pending review the user publishes.
These rules apply to any session writing on a thread it does not own: an issue reply, or a review of someone else's PR. The user's own PR or issue is the /pr-and-issue-discipline skill's moment. Its Readability rules and its redaction rule apply here unchanged; they are stated there, once.
/unslop, where installed, runs last over every reply and staged comment: it publishes under the user's name, so no AI tells.
An issue reply to an outside contributor is read by someone skimming a thread who does not know the code. Write a plain-language part that stands alone. Add a technical part, collapsed so it costs nothing to skip, only when it carries information the plain part cannot: when everything fits in plain words, the plain part is the whole reply.
A finding comment staged on someone else's PR follows the Each comment rules below and borrows only this section's voice; the staged summary has its own shape there.
The report decides the opening: read the reporter's log before writing a word. A question is asked only when the report does not already answer it, so the two shapes open differently: cause visible, diagnosis and steps; cause unknown, questions. Defaulting to questions is the failure the specimens were written against.
cause visible in the log cause not in the log
------------------------------------ ------------------------------------
## What the report shows ## Questions (3 at most; say which helps most)
their log lines, with arrow notes ## What the report shows
## What to do their log lines, with arrow notes
1. ... 2. ... 3. ... a guess, labeled a guess, last
one fallback line: what to paste next <details> Technical details </details> (only when it adds something)
Full specimens of both shapes, and the two-language layout: references/issue-replies.md.
## What the report shows, then a numbered ## What to do. The reader's own log lines with arrow notes carry the diagnosis, and each numbered step carries its exact click path or command when one exists. One fallback line closes part one, saying what to paste if the steps do not fix it, and no ## Questions heading appears.## Questions first. A ## Questions heading exists only when the diagnosis genuinely depends on the answers. Ask them as questions: a numbered list, three at most, and say which one would help most.
/pr-and-issue-discipline skill, its summary line in the half's language (Technical details, Détails techniques).
<details> block: the mechanism names, the log lines mapped to code paths, docs links, and what a future maintainer would want when re-reading the thread. Nothing in part one depends on it.references/issue-replies.md.The agent reviews under the user's account, so publishing is the user's act: they publish the staged review themselves, or they tell the agent to post a verdict they have decided. Every comment goes into ONE pending review for the user to edit and publish. Never a standalone comment on someone else's PR: it publishes at once, under the user's name, unedited.
Pick the lenses before reading, once per PR. Who owns the repository sets the recommendation, not who wrote the PR:
/rubber-duck-review skill folds every installed ## Review Criteria section in without asking. Recommend the whole set.Collect the candidates: every installed skill declaring a ## Review Criteria section, found the way the /rubber-duck-review skill's companion-skills step finds them; that skill itself, for a read-only cross-model pass over the PR's diff; and /working-text when the PR touches working text (a page, a comment, a description).
Read the memories first: the memories available to the session (the index, where the memory system keeps one, and this project's memories). A standing correction about this repository, a rule the user gave the last time a PR like this was reviewed, a library the user prefers over hand-rolling: each one adds a lens, drops one, or sharpens the recommendation.
Ask once, the recommendation first, with the reason for each lens inside the dialog itself, since text outside a dialog is lost:
Lenses for PR #123 on octocat/fetcher, a repository you do not own (adds a retry loop in src/fetch.ts and a page docs/retries.md). Apply which?
[x] /rubber-duck-review on the PR diff (Recommended) a second model, read-only, before staging
[x] /never-twice criteria (Recommended) the retry loop repeats a fix from PR #98
[ ] /code-standards criteria their repository, their standards; memory: prefer a library
over hand-rolling, if you hold this PR to it
[ ] /working-text docs/retries.md is a new page
[ ] /no-invalid-states no lifecycle flags or repeated guards in the diff
[ ] /verify-with-controls the body claims no zero, alarm, or success reading
Carry the answer for the PR, through every revision of the pending review. A /rubber-duck-review pass on this PR expands only the ## Review Criteria sections the user chose here, not every installed one: that skill's every-section rule is for the user's own change, and this choice scopes it. Then read the PR's linked document and the code, and only then write.
Stage: one JSON body, the head commit inside it, no event field. commit_id belongs in the file: with --input, a -f field goes to the URL query string.
The file is written with the harness's file-writing tool, the head SHA already in it: comment bodies carry backticks a shell heredoc would run, and some sandboxes refuse heredocs, a trap, or a variable chained into the command. One plain command per step, the removal its own last command, like the /pr-and-issue-discipline skill's PR-body fallback.
A finding that spans several lines is anchored on its whole range with start_line and line; start_side and side name the diff side the lines are on, RIGHT for lines in the new file, LEFT for a removed range. A single-line anchor only when one line is the whole finding.
gh pr view <n> --repo <owner>/<repo> --json headRefOid -q .headRefOid # 1. the head SHA, for commit_id below
mktemp -d /tmp/pr-review-XXXXXX # 2. prints e.g. /tmp/pr-review-Kq3mZp; copy the printed path by hand
# 3. write /tmp/pr-review-Kq3mZp/review.json with the harness's file-writing tool:
# {
# "commit_id": "<head SHA>",
# "comments": [
# {"path": "src/metrics.ts", "line": 42, "side": "RIGHT", "body": "Review summary (copy into the summary box)\n\n[comment, not approve yet]\n\n**Works:** ...\n**Blocks:** ..."},
# {"path": "src/metrics.ts", "start_line": 84, "start_side": "RIGHT", "line": 88, "side": "RIGHT", "body": "[blocking] The two headline metrics disagree on answers that cannot be parsed. Count them the same way in both."}
# ]
# }
gh api -X POST repos/<owner>/<repo>/pulls/<n>/reviews --input /tmp/pr-review-Kq3mZp/review.json --jq .id # 4. no "event": stays pending
rm -rf /tmp/pr-review-Kq3mZp # 5. its own command, whatever gh returned
Revise: GitHub keeps one pending review per author per PR, so a second POST fails. Read the pending review's comments as they are now, since the user may have edited them in the web UI, and rebuild the full set from that text. Then delete it, confirm none remains, recreate, and tell the user the id changed:
# --paginate: a PR with many reviews spreads them over pages, and the pending one is the newest
gh api --paginate repos/<owner>/<repo>/pulls/<n>/reviews --jq '.[] | select(.state == "PENDING") | .id' # the id to delete
gh api --paginate repos/<owner>/<repo>/pulls/<n>/reviews/<id>/comments --jq '.[] | {path, start_line, start_side, line, side, body}' # the current text, web edits included, with each anchor's range; rebuild from this (position alone would collapse a ranged comment to one line)
gh api -X DELETE repos/<owner>/<repo>/pulls/<n>/reviews/<id>
gh api --paginate repos/<owner>/<repo>/pulls/<n>/reviews --jq '.[] | select(.state == "PENDING") | .id' | wc -l # must print 0 before the new POST
The verdict lives on the PR, never in a document.
Review summary (copy into the summary box), then a bracketed recommendation ([LGTM], [comment, not approve yet], [request changes]), then Works: and Blocks: lines only. A nit that would need a third line is not staged at all. The web dialog drops an API-set review body, so the user pastes this one into the summary box.event (APPROVE, REQUEST_CHANGES, or COMMENT) and body, instead of staged. That instruction is the publication; without it, everything stays pending.Each comment:
[blocking], [small ask], [question]), then the exact change asked for. No background, no restating what the code does. Accepted: "[blocking] The linked comment has only headline and per-type tables, not the 100-task paired table the body promises. Please post it or link to it."What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub vivswan/skills --plugin vivswan-skills19 skills in this plugin
/claude-remote-peersUse when this Claude Code session must message, ping, or coordinate with a Claude Code session running on another machine, or when a peer the user names is on a different host and ListAgents does not show it./code-standardsUse when writing code changes, sweeping or shortening comments (including file-size or comment-cap findings), or asked to apply the code standards./codex-browser-fixUse when Codex on macOS must drive the user's Chromium browser (Brave, Vivaldi, Opera, Edge, Chrome) through the bundled Chrome plugin, or that plugin fails with "Codex auth token is unavailable", a missing extension connection, or a stale plugin cache after a desktop app update. Codex only./craft-skills-and-memoriesUse when creating a skill or memory, when one fails in practice, or when the user reports one misbehaving or stale./natural-writingUse when asked to humanize text, remove AI tells, check whether text reads as AI-generated, or draft prose that must not sound AI-written./never-twiceUse when you just corrected an agent or fixed the same failure class twice, or when a change removes a rule, guard, or check.