Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

mach6-review

БесплатноБез исполняемых скриптовНе проверен

Run round-aware specialist review, post unverified candidates, then assess practical merge blockers with adversarial counter-pressure. Usage: mach6-review 42…

aebrerот aebrer★ 34 звезды на GitHub

Об этом скилле

mach6-review — Round-Aware Multi-Agent PR Review

User input: $ARGUMENTS

Global Rules

  1. GitHub is shared memory. Post two comments in every round: <!-- mach6-review -->, then <!-- mach6-assessment --> as each body's first line.
  2. Never use #N in comment bodies; say "finding N".
  3. Track work with tasks_update.
  4. Set GH_PAGER=cat and GH_EDITOR=cat for every gh command. Use --body-file with a unique mktemp /tmp/gh-comment.$$.XXXXXXXX file.
  5. Formal review runs only from an explicit user request; never invoke it autonomously or start a review-fix-review loop.
  6. Review durable work only. Do not review uncommitted or unpushed work.
  7. Do not fix findings in this session; fixes require a later user-invoked /skill:mach6-implement.

Step 1: Track tasks

Track prepare, phase-one review, findings comment, phase-two assessment, assessment comment, and summary; keep at most one task in progress.

Step 2: Parse input

Extract the required PR number and optional aspects: code, errors, tests, completeness, simplify.

Step 3: Prepare, determine the round, and establish the review context

Before checkout, run git status --porcelain. If non-empty, stop and use suggest_next to offer /skill:mach6-push.

gh pr checkout <pr-number>
git pull --ff-only
test -z "$(git status --porcelain)"
LOCAL_HEAD="$(git rev-parse HEAD)"
PR_HEAD="$(gh pr view <pr-number> --json headRefOid --jq '.headRefOid')"
test "$LOCAL_HEAD" = "$PR_HEAD"

If either durable-work check fails, stop without marking ready, posting, or launching agents and offer /skill:mach6-push. PR_HEAD is the exact reviewed commit.

Read the PR body, all comments, files, linked original issue and discussion, latest <!-- mach6-plan -->, and subsequent human-approved scope updates. Prior findings and assessments are evidence, not scope authority.

Count comments whose bodies start with <!-- mach6-review -->:

PR_CONTEXT="$(gh pr view <pr-number> --json title,body,comments,files,headRefOid)"
PRIOR_ROUNDS="$(printf '%s' "$PR_CONTEXT" | jq '[.comments[] | select(.body | startswith("<!-- mach6-review -->"))] | length')"
REVIEW_ROUND="$((PRIOR_ROUNDS + 1))"

Use gh pr diff <pr-number> in every round. The full PR and the interactions among all of its changes are the review target unless the user explicitly requests a narrower review.

For round 3+, also extract the most recent parseable full SHA after Reviewed commit: in the latest review comment. If found, use git log <sha>..HEAD and git diff <sha>..HEAD as supplemental context for identifying new changes and verifying prior fixes, never as a replacement for the full PR diff. Extract previous merge blockers and verify that each is fixed. Do not reject a finding merely because the relevant lines are unchanged since the previous round.

Mark the PR ready only after all checks pass: gh pr ready <pr-number>.

Step 4: Phase one — specialist candidates

Agent mapping: code → code-reviewer; errors → error-auditor; tests → test-reviewer; completeness → completeness-checker; simplify → simplifier.

Without targeted aspects, run code-reviewer, applicable error-auditor, applicable test-reviewer, applicable completeness-checker, and simplifier together in one parallel subagent tasks call in every round. test-reviewer remains present whenever the PR contains testable code changes.

With targeted aspects, run only mapped agents while still reviewing the full PR unless the user explicitly requests a narrower target.

If dispatch arbitration or a specialist agent fails, retry that specialist. A retry may run separately after the original parallel batch; do not omit a required or requested specialist because its first attempt failed.

Give every agent changed paths, the full PR diff and context, authoritative scope, actual files, and confidence scoring (0–100; report only candidates at least 80). In round 3+, also provide the prior reviewed SHA, supplemental delta, and previous blockers so agents can verify fixes without narrowing the review target. Verify previous blockers independently even if no agent reports them.

Step 5: Post unverified candidates

Always post the phase-one comment, even with no candidates. Severity is reviewer confidence, not an assessed shipping decision.

<!-- mach6-review -->
## Unverified Review Candidates — Pending Assessment

**Review round:** N
**Reviewed commit:** <full PR_HEAD SHA>

> These are unverified candidates. Severity reflects reviewer confidence; do not treat any item as a merge blocker until the assessment comment is posted.

### Critical
...
### Important
...
### Suggestions
...
### Strengths
...

**Agents run:** ...

---
*Reviewed by mach6*

Post with a unique temp file and gh pr comment <pr-number> --body-file "$GH_BODY"; save the returned/latest comment URL.

Step 6: Phase two — assess with counter-pressure

All assessors receive identical can

Полный SKILL.md на GitHub

Установить mach6-review в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл mach6-review?

Run round-aware specialist review, post unverified candidates, then assess practical merge blockers with adversarial counter-pressure. Usage: mach6-review 42 [aspects]

Как установить скилл mach6-review?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл mach6-review запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить mach6-review с