multi-agent-review-plan
Review a high-level plan before implementation by sending prompts through the herdr skill to existing Codex and Antigravity sessions in adjacent panes. Use when the user or an authorized workflow requests multi-agent plan review; assess technology choices, architecture, and business rules, not code details.
- License 许可
- MIT
- 所属仓库
- missdeer/skills
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- multi-agent-review-plan
- metadata
- { "version": "1.4.0" }
- description
- Review a high-level plan before implementation by sending prompts through the herdr skill to existing Codex and Antigravity sessions in adjacent panes. Use when the user or an authorized workflow requests multi-agent plan review; assess technology choices, architecture, and business rules, not code details.
03 SKILL.md 正文
multi-agent-review-plan - Dual-Reviewer Closed-Loop Review For High-Level Plans
Use a dual Codex + Antigravity review before writing code to align direction. Review only decisions that must be settled before implementation; leave all implementation details to implementation and code review.
Hard Scope Contract (Plan Author + Reviewers + Aggregator)
Apply this contract equally to the plan author, every reviewer, and the agent aggregating feedback. Do not relax it because a reviewer requests more detail.
The plan may cover only:
- Technology selection: major language, framework, datastore, messaging, protocol, deployment-pattern, or third-party-service choices, with rationale and high-level tradeoffs.
- High-level architecture: conceptual components, responsibilities, boundaries, ownership, dependencies, and interaction direction.
- Business direction and flow: the intended outcome, actors, scope / non-goals, end-to-end main and exception flows, and conceptual state transitions.
- Basic business logic: business rules, invariants, boundary conditions, and acceptance points.
Exclude all implementation detail and code expression, including affected files or repository modules, package / class / function / variable names, signatures, snippets, pseudocode, algorithm mechanics, schemas / tables / fields / DDL, endpoint or payload definitions, cache keys, queries, configuration keys / values, exact versions, CLI flags, paths, commands, test cases / tooling, and line-level migration, rollback, concurrency, transaction, or error-handling mechanics. Mention reliability, consistency, security, compatibility, migration, or rollback only when it changes a permitted high-level choice or business rule, and keep it at that level.
If a statement requires code-shaped detail to explain or resolve, it is out of scope. The author must remove it; reviewers must not raise it, even as a nit; the aggregator must discard it rather than write it into the plan.
Breadth is a separate axis from the four categories above. Within those categories, the plan covers only what the stated task actually requires. Content that does not trace back to the task's stated goal or acceptance criteria is out of scope even when it is perfectly high-level — this includes hypothetical edge cases, speculative failure modes, adjacent features, and capabilities designed for anticipated future needs. Belonging to one of the four permitted categories is necessary, not sufficient. The default answer to "should the plan also cover X?" is no unless X is required for the stated task to succeed.
Execution Mode: Dual Review / Single-Review Fallback / Sub-Reviewer Bypass
Before starting, determine which of the three scenarios applies to the agent currently executing this skill:
- Default (Claude Code, or any non-Codex main agent): dual review with Codex + Antigravity in parallel.
- Codex as sub-reviewer (an existing adjacent Codex session receives a parent agent's prompt through Herdr to review a plan): do NOT run this skill at all. The prompt from the parent agent already contains a review request; just perform the review directly and return findings. Never dispatch Codex, Antigravity, or any other reviewer/agent from here. The Codex prefix line in Step 3 below always carries this instruction, so if you see it in your incoming prompt, exit the skill immediately and just review.
- Codex as main agent (a user directly asked Codex to run this review skill): fall back to a single review by running only Antigravity. Rationale: Codex self-review is equivalent to having the plan author review their own plan, without an independent perspective; keep Antigravity as the external reviewer. In fallback mode:
- Step 3 dispatches only Antigravity and skips the Codex path.
- Step 4 aggregation is done as a "single reviewer"; descriptions such as "both reviewers found this" do not apply.
- The final report must state that this round used single-review fallback mode and explain why, so the user does not mistakenly think Codex also approved it.
- How to decide:
- Incoming prompt contains the sub-reviewer prefix from Step 3, OR the prompt is a direct review request forwarded by a parent agent → sub-reviewer bypass.
- Executor is Codex and the user directly asked Codex to "run the plan review loop" / "review my plan with dual reviewers" → single-review fallback.
- Otherwise → default dual-review.
Prompt Length Budget (Hard Gate)
The prompt handed to each reviewer must stay ≤50 lines, and must never exceed 80 lines — counting the prefix line, the shared body, and every interpolated value. Long prompts bury the instructions that matter and measurably degrade review quality.
- Never inline bulk content. The plan under review and any prior findings go into files the reviewer reads itself; the prompt carries only the path plus a one-line instruction. The plan is not compressed — it is simply moved out of the prompt.
- If
<DISMISSED_LIST>exceeds ~5 lines, write it to./tmp/review-plan-dismissed-<ts>.txtwith a built-in file tool and reference the path instead of inlining it. - Count the lines of the assembled prompt file before dispatching. Over 80 lines: move content into files or cut it. Never dispatch an over-budget prompt.
- When trimming, cut prose and examples first. Keep the hard boundaries intact: Hard Scope Contract, review-only restriction, and output format.
Reviewer Language
- Prefer English reviewer instructions while preserving the user's meaning. Keep the plan, source code, paths, identifiers, and other artifacts unchanged.
- Accept understandable findings in any language; translate them for aggregation when needed. Never reject or rerun a review solely because of its language.
- User-facing updates and the final report follow the user's language unless the caller supplies a specific output contract.
Step 1 - Confirm There Is A Plan To Review
- Complex or multi-step tasks: if the conversation does not yet contain a structured high-level plan, write one first (it can be produced in the current conversation; no need to persist it). Include only: business goal / scope / non-goals; material technology choices and rationale; conceptual architecture and interactions; business flow, states, rules, boundaries, and acceptance points; high-level assumptions, risks, and open decisions within the Hard Scope Contract.
- Existing sufficient plan: skip the plan-writing step and use the existing plan directly.
- For a trivial task, a local review is sufficient unless external review was explicitly requested. Continue to implementation only if the user has authorized it; a review-only request does not authorize code changes.
Pre-dispatch scope check: check the full plan against the Hard Scope Contract before its first review; on follow-up rounds, check revised decisions and their effects. Remove affected-file lists, code identifiers, schemas, APIs, configuration, commands, tests, pseudocode, and implementation sequences. Replace implementation-shaped descriptions only when they can be expressed as a permitted technology choice, conceptual component interaction, business flow, or business rule; otherwise delete them. If the incoming plan is mostly implementation-level, rewrite it before review. Reuse the scope assessment of unchanged decisions unless new evidence changes it.
Step 2 - Assemble The Shared Message Body
Both reviewers use the same body, with only different prefix lines:
Review the following high-level plan for correctness, coverage, and direction. On follow-up rounds, assess only the revised decisions, unresolved findings, and their effects on the rest of the plan, as described in the review focus. Review ONLY:
1. Technology selection - whether each material choice is suitable and whether its stated high-level tradeoffs are sound
2. High-level architecture - whether conceptual responsibilities, boundaries, ownership, dependencies, and interactions are coherent
3. Business direction and flow - whether the plan addresses the real need and covers realistic main / exception flows and conceptual state transitions
4. Basic business logic - whether business rules, invariants, boundaries, non-goals, and acceptance points are complete and mutually consistent
5. High-level assumptions and risks - only where they materially affect one of the four areas above
Within this scope, focus on issues that can realistically bite this project under its actual usage patterns and constraints. Do NOT raise must-fix / should-fix items for contrived high-level scenarios, such as global-scale architecture for a small internal tool, multi-tenant design for a permanently single-tenant product, or a new platform dependency for a one-shot workflow. If unsure whether an in-scope scenario is realistic, classify it as nit and state the assumed trigger condition.
**Do NOT push for completeness.** Judge the plan against the task it states, not against an ideal plan. Do not ask for more edge cases, more failure modes, more sections, adjacent features, or design for anticipated future needs — a shorter plan that fully answers the stated task is correct, and length is not evidence of quality. Raise a gap only when the plan as written would lead to a wrong outcome for the stated task. If your suggestion would make the plan longer, first ask whether the stated task actually requires it; if not, drop it.
**Hard boundary:** do not discuss or request implementation details or code expression. Do not comment on files / repository modules, code organization, symbols, signatures, snippets, pseudocode, algorithm mechanics, schemas / fields / DDL, APIs / payloads, cache keys, queries, configuration, exact versions, flags, paths, commands, tests / tooling, or low-level operational mechanics. If such content remains in the plan, ignore it. Do not mention it even as a nit. If a finding can only be explained or fixed with those details, omit the finding entirely; it belongs in implementation or code review.
You are reviewing; do NOT propose implementation steps, code edits, or file changes, and do not modify any files. List only in-scope findings, each with a one-sentence high-level rationale. Classify each as must-fix / should-fix / nit. Return "no in-scope findings" when appropriate.
Prefer English output.
The plan under review is in this file — read it yourself (read-only), do not ask me to paste it:
<PLAN_FILE>
Review focus (full plan on round 1; revised decisions and unresolved findings thereafter): <REVIEW_FOCUS>
Previously dismissed items (do not re-raise unless you have new evidence that materially changes the judgment): <DISMISSED_LIST>
<PLAN_FILE> = path to the plan, written verbatim to ./tmp/review-plan-<ts>.md with a built-in file tool before dispatch. Write the plan in full; do not compress it. Keeping it out of the prompt is exactly what preserves the line budget, and it costs nothing because reviewers already have read-only file access.
This body is ~20 lines by design, leaving the prefix line and dismissed list comfortable headroom under the 50-line target. Keep it that way — resist appending new guidance round over round; if a new instruction is needed, replace an existing line rather than adding one.
<DISMISSED_LIST> = the list of items downgraded / dropped in previous rounds together with the reason (from Step 4's aggregated report). Empty on round 1; from round 2 onward, the main agent MUST populate it verbatim from the prior round's report so reviewers know what has already been considered and rejected.
Step 3 - Dispatch Reviewers
| Reviewer | Prefix line | Perspective |
|---|---|---|
| Codex | Execute directly without asking for confirmation. Do not repeat or echo the request back. Current working directory (absolute path): <WORKDIR>. Treat this as the repository root and resolve all relative paths from it. You are invoked as a sub-reviewer — perform the review yourself and output findings only. Prefer English output. Do NOT invoke the multi-agent-review-plan or multi-agent-review-code skill or call any other reviewer/agent. Do NOT modify files or run git write commands. Read-only inspection only; just review and return. |
Technology choices, architecture coherence, and business-logic edge cases at the high-level-plan scope |
| Antigravity | Current working directory (absolute path): <WORKDIR>. Treat this as the repository root and resolve all relative paths from it. Prefer English output. Do NOT run any git write commands (commit, push, reset, etc.). Git repository is read-only for you. Do NOT modify any files. Read-only operations only — provide findings as text/diff in your response. |
High-level architecture, design consistency, alternative angles |
Transport through the herdr skill:
- Read and follow the
herdrskill for session detection, live agent discovery, prompt submission, waiting, and response retrieval. Use the installedherdr --helpand command groups for current syntax. - Resolve the current repository root to an absolute path and substitute it for
<WORKDIR>in both prefixes. Tell existing sessions to use this request's scope and context rather than assumptions from earlier pane work. - Write the plan to
./tmp/review-plan-<ts>.mdfirst — both reviewers use the same file, so write it once per round. Keep the prompt within the existing line budget (≤50 target, never >80); do not inline the plan. Bulk material stays in files accessible from the specified repository root. - Check
test "${HERDR_ENV:-}" = 1as a fast path. When unset or false, confirm the session with the read-only commandsherdr statusandherdr pane current --current. If no current session or pane is identified, report that this session is not running inside Herdr and stop. Do not invoke a headless Codex process, use a command-line fallback, or invoke a direct Antigravity CLI. - Inspect the caller's layout with
herdr pane layout --pane <caller-pane-id>, then cross-referenceherdr pane list --workspace <workspace-id>andherdr agent listto locate existing adjacent Codex and Antigravity/agy sessions. Use IDs returned by discovery when environment IDs are unavailable. Target each returned unique agent name or pane ID, never the calling pane. Do not infer IDs from sidebar order, create a pane, or start a replacement agent. - Confirm each target is ready (
idleordone) before submitting. If working, wait for that turn to settle; if blocked, inspect the UI and ask the user before answering it. An unknown state is not proof of readiness. - Dual-review mode: dispatch both prompts in parallel with
herdr agent prompt <codex-agent-name-or-pane-id> "<codex-prompt>" --wait --timeout 1800000andherdr agent prompt <agy-agent-name-or-pane-id> "<agy-prompt>" --wait --timeout 1800000. Pass each prompt as one literal argument using a structured tool call or safe shell quoting. Continue to Step 4 after both responses are retrieved or an unavailable reviewer is explicitly reported. - Single-review fallback mode (executor is Codex): send only the Antigravity prompt through its existing Herdr session with the same
--wait --timeout 1800000allowance. - If a Herdr command is denied by the terminal sandbox, rerun that same command through the terminal tool's
require_escalatedapproval flow with a narrowly scopedherdrprefix rule when supported. - Retrieve each response with
herdr agent read <target> --source recent-unwrapped --lines 120; useherdr agent get <target>to inspect state. Wait on the same live call or agent in intervals no longer than 60 seconds, for up to 30 minutes. A timeout or stalled response does not prove delivery failed: inspect state and output before deciding whether a retry is warranted. Do not duplicate a live request or interrupt a quiet reviewer. If blocked, inspect the UI and ask the user before answering it. - If a larger recent read still cannot recover the completed response, follow the
herdrskill's temporary Markdown file fallback. Do not request file output in the initial prompt. - If an adjacent reviewer is unavailable, tell the user and use only the available external reviewer in dual-review mode, disclosing incomplete coverage. If neither is available, or Antigravity is unavailable in single-review fallback mode, report that this round cannot be reviewed. A missing required reviewer is not approval; do not substitute Codex self-review or a headless process.
- Do not start implementation while the requested review is pending. If a reviewer fails or is unavailable, disclose incomplete coverage rather than claiming approval; respect any explicit requirement for all reviewers to pass.
Step 4 - Aggregate Feedback And Update The Plan
- Apply the Hard Scope Contract first: discard every out-of-scope finding before deduplication or classification, regardless of reviewer severity. Do not downgrade it to nit, report it as an open decision, repeat its implementation detail, or write it into the plan. In the aggregation summary, state only how many findings were discarded as implementation detail.
- Deduplicate the remaining in-scope findings: merge the same root cause identified by both reviewers into one item, and note when both found it.
- Reclassify the remaining findings into must-fix / should-fix / nit: must-fix = at least one reviewer marks it must-fix and the main agent independently judges the issue would affect high-level plan validity; should-fix = at least one reviewer marks it should-fix (or must-fix reclassified down) and the main agent judges it worth incorporating. Reviewers can be wrong; be willing to disagree.
- Apply these additional gates before updating the plan (the main agent MUST apply them in order):
- Realistic-likelihood filter: downgrade to nit (or drop entirely) any in-scope item whose triggering condition is nearly impossible under this project's real usage. Ask: "Under what realistic scenario does this affect the selected technology, high-level architecture, business flow, or basic business rule?" If the answer is contrived, do not incorporate it.
- Divergence guard: if a new round repeats an item already dismissed without materially new high-level evidence, dismiss it by reference and do not re-litigate.
- Breadth / traceability guard: drop (do not merely downgrade to nit) any finding whose fix would add content that does not trace back to the task's stated goal or acceptance criteria — added features, architectural capabilities, adjacent work, extra hypothetical edge cases, or sections demanded for completeness. Being high-level does not make a finding in scope.
- Plan-growth check: growth beyond 1.5× the round-1 length is a prompt for the main agent to check scope, not an automatic pause. Remove unsupported additions and retain decisions required by the stated acceptance criteria. Check completion before applying the stalled-review rule in Step 5.
- Consensus is not evidence: both reviewers raising the same item does not make it valid or in scope. Apply gates 1–4 to agreed items exactly as to single-reviewer items, and do not keep looping to satisfy reviewers on points you have dismissed.
- Subtract-first, and no partial adoption: when an in-scope finding can be resolved by removing, merging, or tightening existing plan content, do that instead of adding a new section. Never accept a discarded out-of-scope finding in reduced form as a compromise — only the user can pull one back into scope.
- State the reason for every downgrade / drop in the aggregated report, so the user can override if they disagree.
- Report the aggregated list — including downgrades and drops with reasons — in the user's language or the caller's specified report language.
- Check Step 5 before editing or requesting another review. Modify the plan for confirmed in-scope must-fix and should-fix items only; leave nit items for the user to decide. Never satisfy feedback by adding implementation detail.
- After necessary revisions, return to Step 2 with
<REVIEW_FOCUS>describing the revised decisions, unresolved findings, and affected interactions. Do not restart a full review of unchanged decisions or reopen settled findings without new evidence.
Step 5 - Exit Conditions
Check completion first; review passes when either condition is true:
- Must-fix count AND should-fix count after aggregation in the current round are both 0.
- The main agent judges all remaining must-fix and should-fix items invalid and gives reasons.
For remaining work, apply these guards:
- Stalled review: if two consecutive follow-up rounds resolve no confirmed issue and add no material evidence, stop repeating the review and report the unresolved issue and blocker. Ask only when a user decision or additional permission is needed. Counts alone, including must-fix staying at zero while should-fix items are resolved, do not establish a stall.
- Honor any explicit task budget. A stalled review, exhausted budget, or missing required reviewer is incomplete, not approval. Do not rerun an unchanged plan merely to obtain different wording or language.
Final Report
- How many rounds ran, and what each reviewer found in each round.
- The final plan version (what changed and why).
- Not fixed: remaining nit items / must-fix or should-fix items the main agent judged invalid, with reasons.
- Ask only about unresolved business choices, additional permissions, or a review checkpoint the user explicitly requested. If review passes and implementation is already authorized, continue without another confirmation. If the user requested review only, deliver the review and stop.
04 同仓库更多 Skills
plantuml
Render PlantUML diagrams through the self-hosted https://plantuml.yii.li server and open the encoded URL in the default browser. Use whenever the user asks to draw, render, or update a PlantUML diagram or sequence diagram. Never download the rendered image — build the encoded URL and open it instead.
pkg-go-dev
Query Go package and module documentation from pkg.go.dev's official v1beta REST API. ALWAYS prefer this skill over `go doc`, `go list -m -versions`, `go list -m`, or scraping pkg.go.dev HTML when the target is a published module on pkg.go.dev (`go doc` is only correct for code in the local working tree or local module cache). Use when the user asks to look up a Go package's docs, synopsis, exported symbols, available versions, latest version, imports, importers, vulnerabilities/CVEs, or to search pkg.go.dev. Triggers on requests like "find the latest version of X", "what versions of github.com/... exist", "show the symbols in package Y", "show docs / godoc / godoc.org / pkg.go.dev for Z", "search Go packages for Z", "what vulnerabilities affect module M", "who imports package P". Covers all of github.com/*, golang.org/x/*, standard library, and any other module indexed by pkg.go.dev.
multi-agent-review-code
Review a code diff by sending prompts through the herdr skill to existing Codex and Antigravity sessions in adjacent panes, and fix confirmed in-scope findings. Use when the user or an authorized workflow requests a heavyweight review-and-fix loop; ordinary one-pass reviews use audit.
jira
Read/write JIRA issues on https://jira.ismisv.com via REST API v2 only. Use ONLY for direct issue CRUD: get an issue by key (SHELFECOMM-1, FOO-123), JQL search, read/add comments, list/apply transitions, create a ticket, (re)assign, link/unlink issues, or list/upload/download/delete attachments. Do NOT use for end-to-end issue resolution workflows (planning, coding, reviewing, committing) — that is the `jira-issue-resolver` skill's job; do NOT use for non-JIRA ticketing (GitHub Issues, Lark Task); do NOT scrape HTML pages or invent endpoints. Authenticates with Basic Auth from `jira-auth.json` (gitignored).
jira-issue-resolver
End-to-end JIRA issue resolution workflow. Trigger for intents such as "resolve JIRA XXXX-nn", "fix XXXX-nn", "handle XXXX-nn", or a jira.ismisv.com/browse/ URL. It runs the full loop of finding the DAG root, creating an isolated Git worktree, producing and self-checking a brief change plan, attaching the plan, coding, testing and application black-box verification, reviewing code, committing, integrating into the main branch with rebase and fast-forward, and writing back to JIRA. One run handles only one issue. If a story has no subtasks, split it first and implement only the first subtask; if all subtasks of a parent are complete, use the parent closeout shortcut.
devicehub-operator
在 macOS 上通过 AppleScript 辅助功能操作 Xcode Device Hub,定位设备控件、切换 iPhone Duo 形态、操作模拟器内 App 并截取内外屏证据。用户要求操作 Device Hub、验证模拟器 UI、展开或折叠 Duo,或排查相关自动化权限时使用。适用于已构建或已安装 App 的运行验证,不负责实现折叠屏适配或发布 App。