一键导入
he-review
Runs agent-first review fanout across correctness, architecture, security, data, and simplicity, then enforces priority gates before release verification.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Runs agent-first review fanout across correctness, architecture, security, data, and simplicity, then enforces priority gates before release verification.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Bootstraps a repository for the harness-engineered workflow by creating AGENTS.md, docs/specs, docs/spikes, docs/plans, docs/generated, and baseline tracking files aligned to the PLANS.md contract.
Opens/updates GitHub PRs, checks CI, responds to feedback, and merges after GO using gh CLI with explicit consent gates.
Captures paired browser bug evidence videos using agent-browser (`failure` before fix and `resolution` after fix), stores raw captures in `tmp/artifacts`, and supports minimal manual promotion for durable review evidence. Use for browser/UI bug fixes and release evidence.
Produces a PLANS.md-compliant executable plan from a spec. Use after intake.
Converts fuzzy requests into a concrete initiative spec in docs/specs using a single slug and measurable success criteria. Use at the start of non-trivial work.
Converts post-release outcomes into durable docs and mechanical guardrails, clears generated scratchpads, and archives the initiative plan for reuse.
| name | he-review |
| description | Runs agent-first review fanout across correctness, architecture, security, data, and simplicity, then enforces priority gates before release verification. |
| argument-hint | [slug or docs/plans/active/<slug>-plan.md] |
Run structured, parallel code review before verify/release.
he-implement when code is ready for quality gatecritical/high blocks progression.called_from matches this skill (bash scripts/runbooks/select-runbooks.sh --skill he-review), but never waive/override any gates codified here.docs/plans/active/<slug>-plan.md.docs/generated/.docs/generated/ for files with outdated last_updated timestamps).bash scripts/runbooks/select-runbooks.sh --skill he-review and read any returned runbooks. Apply their additions throughout — they must not waive or override gates codified here.For plan_mode: trivial (fast-track):
For plan_mode: lightweight or execution:
Launch one subagent per reviewer and run concurrently:
Each subagent receives the active plan, diffs, and generated context.
Security reviewer scope is defensive review only: identify risks and required remediations. Do not request or provide offensive step-by-step abuse instructions.
Shared baseline — every reviewer checks against:
Purpose / Big Picture and Validation and Acceptance in the active planProgress itemshigh priority findingDimension-specific checklists — each reviewer reads and executes its reference checklist:
| Reviewer | Reference | Owns |
|---|---|---|
| Correctness | references/correctness-checklist.md | Plan fidelity, behavioral correctness, test verification, regression risk |
| Architecture / invariants | references/architecture-checklist.md | Structural integrity, design principles, invariant preservation, dependency management, pattern consistency |
| Security | references/security-checklist.md | Input handling, auth/authz, secrets, injection prevention, dependency security |
| Data integrity / privacy | references/data-checklist.md | Data integrity, transactions, migrations, privacy, retention, persistence-layer correctness |
| Simplicity | references/simplicity-checklist.md | YAGNI violations, complexity, redundancy, readability, change proportionality |
Each subagent must evaluate every item in its checklist against the diff. Items that do not apply should be marked N/A with a one-line rationale, not silently skipped.
Write consolidated findings into ## Review Findings in the active plan using the format defined in references/review-output-template.md.
Tech-debt routing — medium and low findings that do not block the gate are appended to docs/plans/tech-debt-tracker.md with status new. Each entry references the originating slug and reviewer dimension. These items are reviewed during he-triage (monthly or on-demand) or next planning round.
critical or high finding blocks progression.medium and low findings are routed to docs/plans/tech-debt-tracker.md with status new.Runbooks may add repo-specific checks but must not remove or relax these:
critical or high findings block progression.high priority finding unless the repo explicitly documents an exception.If a runbook suggests skipping a non-negotiable gate, treat it as policy drift: record a high finding and escalate.
These definitions are the system of record. Runbooks may add repo-specific examples but must not redefine severity levels.
critical: data loss/security issue, correctness bug with high blast radius, or unsafe merge riskhigh: user-visible bug, missing rollback/evidence for a risky change, or tests that do not prove behaviormedium: maintainability/clarity issues that should be addressed soon, small correctness edge caseslow: nits, stylistic consistency, small refactors that improve readabilityMock-based tests are a high finding unless the repo explicitly documents an exception. Repos following a "unit or e2e only" philosophy must not use mocks as a substitute for real integration coverage.
Missing the security review or data review is a high finding (non-negotiable gate).
Escalate early when the risk is unclear or when correctness cannot be demonstrated with evidence. Stop and escalate when:
Provide at minimum:
When review reveals a design-level issue:
he-plan.Decision Log entry describing the issue and chosen correction.Progress items and Revision Notes.When addressing review findings materially alters behavior or implementation (not just style/formatting fixes), re-run he-review before proceeding to he-verify-release. This is a gate, not optional guidance.
## Review Findings in docs/plans/active/<slug>-plan.md.he-plan identifiedhigh finding, and escalate.| Anti-Pattern | Better Approach |
|---|---|
| Skipping security or data review for "small changes" | Both reviews are mandatory for all changes |
| Downgrading severity to unblock progression | Escalate honestly; gate is real |
| Accepting mock-based tests as sufficient | Unit or e2e only; mocks are a high finding |
| Consolidating findings without actionable detail | Every finding needs file/symbol + required action + owner |
| Silently accepting medium/low findings | Route to docs/plans/tech-debt-tracker.md with status new |
Always use interactive question tool at transitions (AskUserQuestion in Claude Code, request_user_input in Codex Plan mode, or equivalent). Offer:
he-verify-release (recommended when not blocked)he-reviewIf running autonomously or no interactive tool is available, continue with he-verify-release when gates pass; otherwise stop at the gate and log the blocking reason plus required decision.