원클릭으로
requesting-code-review
Pre-commit verification: security scan, quality gates, independent code review.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Pre-commit verification: security scan, quality gates, independent code review.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | requesting-code-review |
| description | Pre-commit verification: security scan, quality gates, independent code review. |
| version | 2.0.0 |
| author | Hermes Coder (adapted from obra/superpowers) |
| license | MIT |
| platforms | ["linux","macos","windows"] |
| metadata | {"hermes":{"tags":["code-review","security","verification","quality","pre-commit"],"related_skills":["subagent-driven-development","writing-plans","test-driven-development"]}} |
Automated verification pipeline before code lands. Static scans, baseline-aware quality gates, an independent Claude Code review, and a fix loop.
Core principle: No agent should verify its own work. Fresh context finds what you miss.
git commit or git pushSkip for: documentation-only changes, pure config tweaks, or when user says "skip verification".
Local unit and integration tests are essential, but they often execute within mock conditions that you designed, which can mask conceptual defects. Always subject complex or logic-heavy changes (such as authentication updates, live pollers, or rules hardening) to an independent, fresh-context code review pass to find hidden gaps like:
admin instead of user).debug mode. Ensure they are multi-gated using local-only signatures (such as settings.is_sqlite and settings.debug) to physically lock them out of production-grade contexts.Before declaring a feature or bug fix complete, trace the entire data flow from where it is produced (Source) to where it is consumed or stored (Sink). Ask yourself:
terminal(command="git diff --cached", workdir="<project>")
If empty, try git diff then git diff HEAD~1 HEAD.
Scan added lines for security concerns:
terminal(command="git diff --cached | grep '^+' | grep -iE '(api_key|secret|password|token|passwd)\\s*=\\s*[\"'\\''\"]{1}[^\"'\\''\"]{6,}'", workdir="<project>")
Check for: hardcoded secrets, shell injection (os.system, subprocess.*shell=True), dangerous eval/exec, unsafe deserialization (pickle.loads), SQL injection.
Run the project's test suite and linting tools. Compare against baseline (stash changes, run, pop) to identify only NEW failures.
terminal(command="<test-command>", workdir="<project>")
Quick scan using the Reviewer role skill checklist:
Dispatch a fresh coding engine instance to review the diff. It has no context about how the changes were made. See the active harness skill (under skills/harness/) for the exact independent code review dispatch template.
git diff HEAD~1 HEAD. Report: list security concerns, logic errors, and suggestions."Combine results from Steps 2, 3, 4, and 5.
All passed: Proceed to commit.
Any failures: Report what failed, then proceed to fix loop.
Dispatch the coding engine to fix ONLY the reported issues. See the active harness skill for the fix loop dispatch template.
<list of issues>"After fix, re-run Steps 1-6. If still failing after 2 cycles, escalate to user.
terminal(command="git add -A && git commit -m '[verified] <description>'", workdir="<project>")
The [verified] prefix indicates independent review approved this change.
Get diff -> Static scan -> Tests -> Self-review -> Independent review -> Fix -> Commit
No agent verifies its own work
Max 2 fix cycles, then escalate
Branch, commit, push, and open PRs with humanized messages, then monitor GitHub Actions CI. Per-project autonomy gating; blocks direct pushes to the default branch and pushes with a dirty tree. Never auto-merges.
Dispatch patterns for Claude Code as the coding engine. Default harness. Implementation dispatches go through dispatch_coder.py (writes the dispatch receipt the commit gate requires).
Testing strategy, TDD enforcement, spec compliance, and regression checks.
Write implementation plans: bite-sized tasks for coding engine dispatch.
Automated fix loop for failed Quality/Reviewer checks. Parses failures, builds escalating prompts, dispatches through the active harness up to 3 times.
Run independent, file-disjoint plan tasks concurrently, each isolated in its own git worktree + branch. Collects per-task results; never auto-merges.