/morning-star-harness:mstar-pr-loopfrom morning-star-harness
Runs a structured review→fix loop on an existing ready PR, coordinating PM, implementers, and review seats. Activates only on explicit user request or when Phase 1 records reviewed-auto policy.
Ships in morning-star-harness. 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.
Read mstar-harness-core first, then the required set: mstar-audit (pr variant → mstar-audit/references/pr-review.md), mstar-roles/references/project-manager/pr-delivery.md, mstar-branch-worktree, mstar-dispatch-gates.
The external review-seat channel is optional; the default path stays complete without it. PM orchestrates, implementers fix, review seats remain read-only.
Enter only on the user's explicit request to loop review → fix on an existing ready PR, or when the active iteration recorded pr_merge_policy: reviewed-auto at its Phase 1. Not under reviewed-bot: that policy makes an attached review bot the PR's review producer, so this loop must not start, and its findings are triaged like any third-party reviewer's under mstar-roles/references/project-manager/pr-delivery.md「Review paths and surfaces」. This is not routine review, and the loop never starts on its own initiative.
Under a recorded reviewed-auto this loop is that iteration's review gate, and its ship it row is the merge authorization mstar-roles/references/project-manager/pr-delivery.md「Merge authorization」reads. Outside such a recorded policy a ship it exit authorizes nothing: no merge, no lifecycle Done.
pr:<n> preferentially, otherwise a branch with an open PR. If resolution fails or the PR is not ready, refuse with the actual cause and accepted forms: pr:<n> or a branch with an open, ready PR; supply that target or make the existing PR ready, then retry this entry.quick, default or deep; otherwise use the review's own inference ladder (§ Review depth (tiers)), not a loop-specific default.The loop does not own CI babysitting, third-party review threads (those an external reviewer/bot opened, which the iteration's review path / its separately discovered babysit helper triages) or the merge-ready gate; the review's own thread lifecycle (step 3: resolve this flow's fixed threads, fold its superseded bodies) is not that. Never submit APPROVE or REQUEST_CHANGES, merge a PR, or close a finding-capture issue. A deferred-PR tracking issue must still be closed through the existing closure authority at that PR's review completion (mstar-audit → mstar-audit/references/pr-review.md § Batch sibling PRs). A ship it exit is review-loop success, never lifecycle Done, and it authorizes a merge only where a recorded pr_merge_policy: reviewed-auto names it as that authorization.
One round is a review and its tally-derived transition, followed by a qualifying fix batch when required:
mstar iteration push-cadence) using「Push cadence」. Local diagnosis and fix commits may proceed while waves run, but head updates wait for idle CI and AI-review waves.
mstar-audit pr variant against the resolved PR head. Round 1 is a full review. Round 2 onward follows § Re-review (same target, later head): a settled ancestor report permits the covering path, revalidation of prior findings and the increment pack; otherwise review the full diff and state why. Use § Local report archive for report.md / report-rN.md and immutable evidence paths; do not overwrite prior reports.COMMENT review, run the thread lifecycle (resolve fixed threads, fold superseded review bodies — mstar-audit → mstar-audit/references/pr-review.md § Comment posting — Thread lifecycle), and save the report under § Comment posting / § Local report archive; inline comments of still-open findings are never edited. Posting failure retains the local report and error, not a success claim.mstar-dispatch-gates § PR feedback ownership (PM only), naming the finding, fix sketch, authorized branch, absolute fix-worktree path and scoped verification. Implementers commit locally at the fix site below; the PM performs any iteration delivery merge serially. After the push gate is idle, batch the local fixes into one push, wait for the new head's waves, and begin the next review round.Engine check: use
mstar pr-review report-path,mstar pr-review tally,mstar pr-review validate-report,mstar pr-review worktree-setup,mstar pr-review seat-prompt,mstar pr-review post,mstar pr-review budget, andmstar iteration push-cadencefor the corresponding existing review and push checks. Read current verb help for arguments; a failed check requires repairing its cause and rerunning it, not bypassing the contract. Onfail, do not proceed — fix and re-run. Contract →mstar-use-cli/references/checks-and-lints.md§ Engine check callouts.
| Verdict | Transition |
|---|---|
ship it | Exit success only when the report is settled, comments: posted, and its head equals the current PR head. Otherwise repair posting/evidence or review the current head before claiming success. |
incomplete | Never a fix round. Repair the cause/coverage recorded in incomplete_reason and unscanned, then rerun the same round without consuming a fix round. If unrepairable, stop as Blocked with recovery. No implementation dispatch. |
needs fixes | Dispatch fixes only for qualifying findings under the fixable-finding rule below, then re-review the updated PR head. |
blocked | Triage each finding, not a blanket keep-fixing instruction: only file:line + fix sketch + merge class must-fix / should-fix is dispatchable. Product, permission or external decisions stop the loop and are reported to their decision owner. |
Leftover unmet acceptance criteria are separate tally increments, not findings (§ Linked-issue hygiene in mstar-audit → mstar-audit/references/pr-review.md). If they produce needs fixes or blocked, even with zero findings, stop as Blocked naming each criterion, its responsible owner and the recovery: that owner authorizes and completes the missing implementation or supplies the required decision, then rerun this entry against the current PR head. Never emit a duplicate Merge-class finding for the same criterion.
| PR context | Head and fix site |
|---|---|
| Iteration PR | PR head = that PR's layer ref iteration-stack/<workflow-id>/sNN; edit and commit in a fix feature worktree, then that PR's single pusher merges the fix into its layer ref and the coordinator propagates the delivery-line update to affected upper layers per mstar-iteration/references/pr-stack.md「Propagation」. Follow mstar-roles/references/project-manager/pr-delivery.md「Fix boundary」. |
Standalone development plan | PR head = registered branch.work; commits land in a dedicated worktree checked out on that branch, never the primary checkout. |
The iteration merge ritual is not generalized to standalone plans.
Who fixes an attached bot's findings: the coordinator confirms the finding and dispatches its fix to the owning implementer; this loop owns only the fixes for its own review findings, and every head update goes through that PR's single pusher.
file:line, a fix sketch and merge class must-fix or should-fix; do not dispatch may-fix or nit by default. Missing evidence returns to review triage, not speculative implementation. Findings requiring product, permission or external decisions stop and report the decision needed.mstar-branch-worktree's three-domain statement, not the fix-worktree location.Reuse mstar-iteration → mstar-iteration/references/command-shared-invariants.md § Continuous execution STOP list: real conflict, secrets, an irreversible scope gap or repeated failure to converge means Blocked. Report the latest review path, residual finding list and actual blocker without exposing secret values. Name the recovery path: the responsible owner resolves the conflict, rotates/removes exposed secrets, decides the scope gap or supplies the missing decision/permission; then rerun the same entry against the current PR head. Unrepairable coverage or posting failures likewise retain the report and name the concrete repair needed. Do not replace these semantics with a fixed round limit.
Return the PR identity and current head, latest report path and review URL, tally-derived verdict, fix commits and scoped checks actually exercised, plus residual findings (issue id and revalidated state when captured; none when empty). Also report the PR body's Door and Blast radius when present, and report them missing when absent. Success requires the ship it row's complete predicate. Blocked or budget-limited exits include unresolved state and a named recovery path; fixed findings do not authorize issue closure.
mstar-audit → mstar-audit/references/pr-review.md §§ Re-review (same target, later head), Verdict synthesis, Review depth (tiers), Comment posting, Local report archive.mstar-roles → mstar-roles/references/project-manager/pr-delivery.md「Fix boundary」/「Push cadence」; legal STOP semantics → mstar-iteration/references/command-shared-invariants.md.mstar-branch-worktree; Assignment and dispatch shape → mstar-dispatch-gates.herdr-core / herdr) — External review-seat channel → references/terminal-agent-channel.md.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: agents: Invalid string: must end with ".md"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
29 skills in this plugin
/drtDirect work entry: one View completes one bounded unit and ends, with no PM, plan row, Done, QC tri-review or delivery chain. Use when the user wants a bounded request executed directly (audit, review, cleanup, governance pass, docs, harness text) without iteration or multi-plan orchestration./grill-meInterview the user relentlessly about a plan or design until shared understanding, resolving each decision branch. Use when a plan or design needs stress-testing, or the user says 'grill me'./mstar-artifactsPlan artifacts: main plans, durable review summaries, QC/PM Acceptance bundles, workflow state/config/progress/evidence, issue capture, residual severity. Read when authoring or mapping them./mstar-auditAudit or survey a codebase into an evidence-backed, prioritized review report (read-only): bugs, security, perf, test gaps, tech debt, DX, a PR/branch/diff (`pr` variant), test-suite audit, a `skills/` corpus stocktake — is the skill corpus redundant, which skills overlap, what does it cost always-loaded (`skills` variant; read-only, proposes verdicts, never edits a skill)./mstar-branch-worktreeBranch authorization, control/delivery/source checkout isolation, L1/L2 writable-task isolation, QC and PM Acceptance checkout alignment, guarded worktree/branch cleanup after merge./mstar-coding-behaviorUse for non-trivial implementation, debugging, refactoring or code review in any project: requirement drift, speculative complexity, agent-facing interfaces. Not workflow or role selection.Other plugins' skills for the same job