一键导入
review-fix
Review a committed fix for correctness, plan follow-through, test coverage, and similar issues
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Review a committed fix for correctness, plan follow-through, test coverage, and similar issues
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
One tick of a CI watchdog — check main-branch GHA status; spawn an agent to fix if failing and no investigation is in flight.
One tick of the henyey mainnet monitor — checks, metrics scan, deploy, status report
Continuous always-on orchestrator for the henyey project pipeline. Each pass queries the board, central-picks up to N actionable issues by priority, and fans out parallel foreground specialist sub-agents (triage/plan/do/review-pr) with the right Claude model per stage. Owns concurrency, conflict-avoidance, CI pipelining, sibling-nit consolidation, and a self-reflection pass that files pipeline-improvement issues. Replaces scripts/project-tick-loop.sh. Use when the operator asks to "run the loop", "process the board continuously", or "keep the pipeline going".
Single-pick dispatcher primitive for the henyey project pipeline. One tick = pick one actionable issue from the project board and dispatch the right specialist sub-agent for its current state. Used for manual single picks and `--issue=` recovery; the continuous orchestrator is `/project-loop`, which owns concurrency centrally. Use when the user asks to "run a tick", "pick up an issue", or "process one board item".
Run two parallel adversarial PR reviewers and combine their verdicts with external PR reviews (GH Copilot bot, humans, other bots) and CI state into a merge decision. Agent reviewers post structured comment verdicts (since the agent is the PR author and cannot self-approve via GH native review). External CHANGES_REQUESTED reviews block merge identically to agent CHANGES_REQUESTED. Operates on issues in `in-review`. Auto-merges with --admin on all-green (after filing follow-up issues for unaddressed inline review comments, so non-critical feedback is preserved as backlog instead of dropped); bounces to `ready-for-doing` on any request-changes or CI red; blocks after 3 bounce-backs on the same code state. At the lifetime cap (6 bounces since last `## Review: Reset`) the PR enters **force-converge mode**: if CI is green, the PR auto-merges and unresolved reviewer concerns become follow-up issues; only red/pending CI at the cap still blocks. Use when invoked by /project-tick with an issue in in-review, or manuall
Audit a Rust crate's adherence to its Stellar protocol spec (spec-driven, walks every normative claim)
| name | review-fix |
| description | Review a committed fix for correctness, plan follow-through, test coverage, and similar issues |
| argument-hint | <commit-hash> [plan-path-or-issue] |
Parse $ARGUMENTS:
$COMMIT with it.Review the fix in commit $COMMIT to assess correctness, plan follow-through
when an implementation plan is available, test coverage, and whether similar
issues exist elsewhere in the codebase. This formalizes the post-fix review
process described in AGENTS.md:
After committing a fix, review and consider: Is it true to the design of the system? Can there be similar issues? Can we redesign the system to avoid these category of issues.
Run:
git log -1 --format=fuller $COMMIT
git show $COMMIT --stat
git diff $COMMIT~1..$COMMIT
Identify: the commit message, author, files changed, lines added/removed, and the full diff. Read the complete current state of every file touched by the commit to understand surrounding context.
Determine whether an implementation plan is available. Check, in order:
data/pdr-$ISSUE/proposal_final.md, if present in the current checkout.When reading a GitHub issue, prefer the latest ## Converged Proposal comment.
If there is no converged proposal, use the issue body only if it is clearly a
proposal or implementation plan. Do not treat brainstorming comments, rejected
drafts, or stale proposal rounds as the final plan when a converged proposal is
available.
If no reliable plan is available, set the plan follow-through verdict to
NOT_AVAILABLE and continue the rest of the review unchanged. Absence of a plan
is not itself a finding.
From the diff (what was removed or changed) and the commit message, reconstruct:
Read the code before and after the fix. Do not guess — if the root cause is unclear, read callers, callees, and related types until you understand it.
Evaluate the fix along these dimensions:
Classify the fix:
If an implementation plan is available, compare it against the commit and the current code. Extract from the plan:
Evaluate:
Classify plan follow-through separately from fix correctness:
A fix can be logically sound while still PARTIAL or DIVERGED relative to its
plan. Conversely, if the plan itself was wrong or unsafe, do not reward blind
compliance — explain the plan problem and evaluate whether the commit made a
justified correction.
Check whether the commit includes regression tests:
Also assess existing test coverage of the affected code:
cargo test -p <crate> -- --list to see what tests exist for the crate.Use subagents (Task tool with explore type) to scan the codebase for patterns
similar to the one that was buggy. The search strategy depends on the root cause:
For each potential similar issue found, assess:
Do not report false positives. Read the surrounding code to confirm before including a finding.
Consider whether the code can be restructured to make this category of bug impossible or unlikely:
Only suggest refactors that are proportionate to the risk. A one-off typo does not justify a type-system overhaul.
# Fix Review: $COMMIT_SHORT_HASH
## Commit Summary
- **Hash**: full hash
- **Message**: commit message
- **Author**: author
- **Files changed**: list with line counts
## Problem Analysis
- **Bug**: What was wrong
- **Root cause**: Why the original code was incorrect
- **Impact**: What observable behavior was affected
## Fix Analysis
- **Approach**: What the fix does
- **Correctness**: Does it address the root cause?
- **Design fit**: Is it consistent with the system's design?
- **Edge cases**: Any cases not covered?
- **Parity**: Does it maintain stellar-core parity? (if applicable)
- **Side effects**: Any unintended behavioral changes?
- **Verdict**: SOUND / CONCERNS / INCOMPLETE / WRONG — summary
## Plan Follow-through
- **Plan source**: Prompt context / file path / GitHub issue/comment / Not available
- **Plan verdict**: FOLLOWED / PARTIAL / DIVERGED / NOT_AVAILABLE
- **Planned work**: Material plan items extracted from the plan
- **Implemented work**: Which planned items the commit completed
- **Missing or changed work**: Planned items omitted, weakened, or implemented differently
- **Justified deviations**: Deviations or deferrals that are supported by evidence
## Test Coverage
- **Regression test included**: Yes/No
- **Test quality**: Would it have caught the original bug?
- **Existing coverage**: Are other paths through this code tested?
- **Gaps**: Any untested scenarios that should be covered
## Similar Issues
| # | Location | Pattern | Risk | Confirmed |
|---|----------|---------|------|-----------|
(Locations in the codebase with the same pattern that might harbor the same
class of bug. "Confirmed" = Yes if you read the code and verified it is a real
issue, Likely if the pattern matches but you could not fully confirm.)
If no similar issues found, state: "No similar issues identified."
## Refactoring Opportunities
(Concrete suggestions for redesigning the code to prevent this category of
issue. Include file:line references and sketch the proposed change.)
If no refactoring warranted, state: "No refactoring needed — the fix is
proportionate and the pattern is isolated."
## Recommendations
Prioritized list of follow-up actions (if any), including any missing plan items
or unjustified deviations that should be fixed or filed as follow-up work.
file:line for every claim.file:line.