/maigo:github-reply-draftfrom maigo
Drafts concise, scoped replies to GitHub PR review threads. Ensures replies are terse, reference only committed symbols, and omit attribution footers unless requested.
Ships in maigo. 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.
Owner: — (orchestrator/agent drafting GitHub replies)
Consumers: /maigo:address-comments (per-thread replies at Finale), /maigo:review (reply drafts at criti gate; for its review body and inline comments only Conventions 2–5 apply)
Scope of the voice baseline: the "Voice baseline" section and Convention 1 below govern replies to a reviewer's comments (the reply-draft.md that /maigo:address-comments writes). The review body and inline comments /maigo:review drafts for someone else's PR (draft.md, inline-comments.md) keep the rules in commands/review.md and skills/strict-review/references/review-templates.md; Conventions 2–5 apply to both.
Delivery form: /maigo:address-comments writes the drafts to a reply-draft.md file with a
where-to-comment hint per reply — template in
references/comment-fetch-and-triage.md
("回覆草稿檔模板").
Replies should read like the maintainer typed them: short, concrete, no ceremony. In a comparison of agent drafts against what the maintainer actually posted, drafts were longer, opened with praise, carried verification disclaimers and a footer — and the maintainer cut all of them.
Not like this → like this (invented examples; every "like this" follows all the rules above):
Too long → one sentence.
Not: Changed
parse_rangeto reject negative bounds. The old code silently clamped them to zero, which hid caller bugs, and the newValueErrormakes them visible earlier in the pipeline.Like:
parse_rangenow raisesValueErroron negative bounds instead of clamping to zero.
Verification disclaimer → drop it from the reply, keep it as a note outside the block.
Not: Renamed the flag to
--dry-run. I only checked the CLI help output, not the shell completions.Like: Renamed the flag to
--dry-run.Plus, outside the code block in the draft file: 備註:shell completion 沒有實跑。
Praise opener → start with the substance.
Not: Good catch, thanks!
load_confignow falls back to the default path.Like:
load_confignow falls back to the default path.
One block of text → conclusion on its own line, blank line, detail. (Use two paragraphs only when the reviewer asked why, or the change differs from their suggestion; a plain change stays one sentence.)
Not: Moved the retry loop into
_send. The publicsend()no longer retries, so callers that wrapped it in their own retry now double up and should drop theirs.Like:
Moved the retry loop into `_send`. `send()` itself no longer retries, so callers with their own retry wrapper should drop it.
Padding a trivial change → "Done."
Not: I have updated the docstring so that it now describes the new default, as you suggested.
Like: Done.
Drafting GitHub PR replies badly is a recurring source of reviewer friction. Common failure modes: long preambles, referencing mid-iteration helpers that were deleted before merge, merging all threads into one PR-level comment, or overclaiming that a thread is "done ✅" when the reviewer has not yet confirmed acceptance.
This skill captures the six conventions that prevent those failures.
One sentence of about 20 words names what changed (see "Voice baseline" for the length, layout and banned-opener rules). No trade-off, explanation or summary sentence after it; a deliberate trade-off goes in the reply only when the reviewer asked why or the change differs from their suggestion, otherwise it goes in a note outside the code block for the user to decide on. Cut: preamble, restating the reviewer's comment, hedging phrases ("hopefully this addresses...", "I believe this should..."), verification narrative ("I re-ran the comparison and got the same result"), the process of what was done, and anything the reviewer can already see from the diff.
The user will ask for more, not less — default short.
When the reply is about a reviewer's repro case you added as a test, name the parametrize case id (see python-aware's references/test-conventions.md, "A reviewer's concrete repro case becomes a named parametrize case").
Word-level conventions:
, so for casual flow (reports should stay in sync from now on, not , so reports should stay in sync).Also before a verb (Also updated the file, not
Also, updated the file).Acceptance pending your review. or any variant of
"waiting for your confirmation" — whether to accept is the reviewer's call by
definition; writing it out is zero-information filler. State what changed and stop.Good:
validate_emailnow raisesValueErroron empty input instead of propagatingIndexError.
Bad:
Thank you for catching this. I've reviewed your comment about the empty-input case on
validate_emailand I believe I've addressed the concern by adding...
Reference the change by symbol or behavior description, not by commit hash. Rebase and force-push rewrite all commit SHAs; a draft that cites a SHA will contain an unresolvable orphan link on GitHub the moment the branch is rebased.
Good:
has_partition_selectorsis now a property on the shared mixin instead of a per-subclass attribute.
Bad:
Fixed in
5ab9ca3.
Before presenting a draft, cross-check every code token against the net committed diff. Remove any reference to helpers tried and deleted mid-iteration.
Reviewers look up symbols you name. A symbol that does not exist in the final code makes the draft look inaccurate and erodes trust.
GitHub's "Resolve conversation" button is per-thread. Collapsing multiple threads into one PR-level comment breaks that workflow.
Structure:
Distinguish between:
A thread becoming outdated because of an edit is not the same as resolved;
the reviewer has not clicked Resolve yet. State what changed, then stop —
whether to accept is the reviewer's call, not something the draft narrates. A plain
"Done." is fine: it only reports that the code changed. What is wrong is the ✅ or
any wording that claims the reviewer is satisfied.
A draft carried over from an earlier session or round is a claim about the diff as it was then. Before handing it over again, re-check every universal statement in it ("every resolved anchor exists", "no other provider changed", "all callers") against the commits landed since: a later commit that widens the set turns a verified claim into an overclaim without changing a word of the draft. Re-verify it for the new set, or narrow it to what was verified.
Good:
_serialize_keysnow returns afrozenset(waslist).
Bad:
Done ✅ — fixed as suggested.
A reply draft carries no Drafted-by / attribution footer. In a comparison of agent
drafts against what the maintainer posted, every draft had one and the maintainer deleted
it every time.
Add a footer only when the user asks for one (for example when a repo expects AI assistance to be disclosed). maigo has no per-repo setting for this and none is added: the user says so, and the footer goes on its own paragraph after a blank line and a horizontal rule, inside the code block, with this wording:
Agent draft, posted without prior human review:
---
Drafted-by: <Agent Name and Version> (no human review before posting)
Agent draft reviewed and approved by a human before posting:
---
Drafted-by: Claude Code; reviewed by @<github-handle> before posting
In either template above, a review-body footer writes Claude Code exactly, with no model name
or version, and the complete footer string goes in the delegation text instead of being left for
each subagent to fill in: in one batch review, drafts written by different subagents produced four
different footers and the checker twice asked the user to confirm. This replaces the
<Agent Name and Version> placeholder above for review bodies only; replies in a discussion
thread carry no footer.
This convention is about replies, except that the review-body footer wording above also applies to
the draft.md that /maigo:review writes; the rest of that draft's footer handling stays in
commands/review.md. PR descriptions follow
skills/github-title-description.
The gh/GraphQL queries for pulling inline threads, review summaries, and
conversation comments, the triage-file template, and the routing table for
turning selected comments into /maigo:quick vs /maigo:go work items are
in references/comment-fetch-and-triage.md. The same file also covers two
pre-apply verification habits: running a full before/after check on a
reviewer's suggested fix (not just their cited example) before applying it
literally, and checking PR review threads before a "unify / clean up" sweep
touches a line you didn't write — it may be a reviewer-directed change
already landed via fixup!.
Draft-shape rules (GitHub suggestion blocks for concrete fixes, one bullet per reviewer point,
every thread listed, every reviewer inline thread given a pasteable reply (one word to one short sentence for done-as-asked points; only pure praise, plain agreement, or a thread the author already replied to is marked 不必回覆), design replies that pitch differentiation) live in
references/draft-shape.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
26 skills in this plugin
/airflow-awareThis skill should be used when working in the apache/airflow repository as a contributor (not as a Dag author). It surfaces Airflow's own AGENTS.md conventions — naming, Breeze/uv, Ruff/Mypy, coding rules, pytest patterns, PR hygiene — for any review, quick-fix or refactor there./change-site-enumerationThis skill should be used when about to declare "N sites need changing", "the scope is closed", or "this is already fully shared" — before writing a plan that lists change sites, implementing one, reviewing a diff for lingering per-section branches, or reporting a scope/size number to the user./command-routerCodex pseudo-command router for Maigo. Use when the user sends or discusses any `/maigo:*` or `maigo:*` command (go, team, quick, review, board, remember, retro, doctor, etc.), or asks why Maigo commands do not behave like native Codex slash commands.npx claudepluginhub lee-w/maigo --plugin maigoOther plugins' skills for the same job