From samocode
Gates PR merges after fix loops by checking review debt, inspecting final HEAD for high-risk code (shared modules, queues, DB consistency), and running deterministic checks.
How this skill is triggered — by the user, by Claude, or both
Slash command
/samocode:pr-readinessThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Review final `HEAD` after implementation, fix loops, merges, and manual debugging. This is a gate, not a general brainstorming review: pass only when important issues are fixed, explicitly deferred, or rejected with evidence.
Review final HEAD after implementation, fix loops, merges, and manual debugging. This is a gate, not a general brainstorming review: pass only when important issues are fixed, explicitly deferred, or rejected with evidence.
_overview.mdHEAD; do not rely on earlier review summaries aloneScope: $ARGUMENTS (or current branch vs origin/main if not specified)
Resolve final scope:
HEADgit diff origin/main...HEAD unless $ARGUMENTS names a PR, branch, or explicit diff rangeLoad review debt:
_review_debt.md in the active session path when known; otherwise use the invocation directoryDecision is undecideddefer row missing a ticket/link or concrete owner/reasonreject row missing evidenceHEAD; reopen the row if the claimed fix is absentInspect final HEAD for high-risk surfaces: Focus on changed files that are shared, public, background, or cross-boundary:
avoncoreRun deterministic checks:
avoncore promotion requires 2+ current Python service consumers; frontend mirrors do not countgather, task creation, loops over user data, and missing durable retry assumptionsWalk feature edge cases when applicable:
Produce gate result: Use this format:
# PR Readiness Gate
Scope: [branch/range/PR]
HEAD: [sha]
## Result
PASS | FAIL
## Blocking Readiness Issues
- [issue, evidence, required action]
## Important Open Issues
- [issue, evidence, required decision/fix]
## Review Debt Ledger
- [rows checked, rows updated, unresolved rows]
## Checks Run
- [deterministic checks and targeted tests/commands]
## Residual Risk
- [known accepted risks with ticket/evidence]
Fail if any of these are true:
_review_debt.md has open important rows without a valid fix/defer/reject decisionHEAD introduces a new important issue in a shared/public module, background job, controller/service/repository boundary, concurrency/fan-out path, queue/DB consistency path, or config/default sourcePass only when all important issues are fixed, explicitly deferred, or rejected with evidence, and final HEAD has been checked after the last merge/fix/debug loop.
npx claudepluginhub yuvasee/samocodeApplies a strict review gate before merge, release, or project handoff, checking for correctness, regressions, missing tests, risky assumptions, and deployment issues.
Performs code reviews using Codex MCP with severity-grouped findings and a merge gate. Supports fast (diff-only), full (diff + lint/build), and branch review variants.
Reviews code changes for correctness, regressions, security, compatibility, and test coverage before merge. Designed for PRs, branches, or local diffs.