Token导航 LogoToken导航TokenDH.com
研究检索执行命令clawhub未标认证来源可访问clear审计通过

review-verification-protocol审查验证协议

Agent Skill

review-verification-protocol 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

8,448

周安装

352

GitHub Stars

公开资料未说明

下载量

2,816
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:review-verification-protocol(审查验证协议)
来源仓库:https://github.com/anderskev/review-verification-protocol
安装命令:
openclaw skills install review-verification-protocol
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install review-verification-protocol

简介

所有代码审查的强制性验证步骤,以减少误报。在报告任何代码审查结果之前加载此技能。

SKILL.md

name
review-verification-protocol
description
Mandatory verification steps for all code reviews to reduce false positives. Load this skill before reporting ANY code review findings.
user-invocable
false

Review Verification Protocol

This protocol MUST be followed before reporting any code review finding. Skipping these steps leads to false positives that waste developer time and erode trust in reviews.

Hard gates (sequenced)

Complete these in order before you add a finding. Skip a gate only when it clearly does not apply (e.g. skip the usages gate if the finding is not about dead code or “unused”).

  1. Read scopePass: You name the exact file path(s) and the function, impl, or macro_rules! block you read in full (not only a diff hunk or partial snippet).
  2. Usages (dead / unused)Pass: You ran a repo-wide reference search (rg, IDE references, or equivalent) and either state zero matches for the symbol you call unused, or list each match and why it still supports the finding.
  3. Surrounding behaviorPass: You checked callers, trait impls, #[cfg], or error propagation that could make the pattern intentional; note one concrete checked location (path + rough location) or state “none relevant after search.”
  4. Edition and APIPass: You opened the relevant Cargo.toml for the crate under review and either quote the [package] edition = "..." line or state the default edition applies and name the manifest path you checked.
  5. Wrong vs stylePass: In one sentence, you explain why the code is incorrect, unsound, or risky for this project—not merely a different valid style.

Pre-Report Verification Checklist

Before flagging ANY issue, verify:

  • [ ] I read the actual code - Not just the diff context, but the full function/impl block
  • [ ] I searched for usages - Before claiming "unused", searched all references
  • [ ] I checked surrounding code - The issue may be handled elsewhere (trait impls, error propagation)
  • [ ] I verified syntax against current docs - Rust edition, crate versions, and API changes
  • [ ] I checked the project's Rust edition - Edition 2021 vs 2024 changes what is required vs optional (see Edition-Aware Review)
  • [ ] I distinguished "wrong" from "different style" - Both approaches may be valid
  • [ ] I considered intentional design - Checked comments, CLAUDE.md, architectural context

Verification by Issue Type

"Unused Variable/Function"

Before flagging, you MUST:

  1. Search for ALL references in the codebase (grep/find)
  2. Check if it's pub and used by other crates in the workspace
  3. Check if it's used via derive macros, trait implementations, or conditional compilation (#[cfg])
  4. Verify it's not a trait method required by the trait definition

Common false positives:

  • Trait implementations where the method is defined by the trait
  • #[cfg(test)] items only used in test builds
  • Derive-generated code that uses struct fields
  • Types used via From/Into conversions

"Missing Error Handling"

Before flagging, you MUST:

  1. Check if the error is handled at a higher level (caller propagates with ?)
  2. Check if the crate has a top-level error type that wraps this error
  3. Verify the unwrap() isn't in test code or after a safety-ensuring check

Common false positives:

  • unwrap() in tests and examples (expected pattern)
  • expect("reason") after validation (e.g., regex::Regex::new on a literal)
  • Error propagation via ? (the caller handles it)
  • let _ = tx.send(...) — intentional when receiver may have dropped

"Unnecessary Lifetime" / RPIT Capture (Edition 2024)

Before flagging, you MUST:

  1. Check the project's Rust edition in Cargo.toml
  2. In edition 2024, -> impl Trait captures ALL in-scope lifetimes by default
  3. A lifetime that appears "unnecessary" may be implicitly captured — the code is correct
  4. If the author uses + use<'a> syntax, this is precise capture control, not a mistake

Common false positives:

  • Lifetime parameters on functions returning impl Trait — edition 2024 captures them implicitly
  • + use<'a, T> syntax — this is the new precise capturing syntax, not an error
  • Removing an explicit lifetime bound that edition 2024 now provides automatically

"Missing Unsafe Block" (Edition 2024)

Before flagging, you MUST:

  1. Check if the code is inside an unsafe fn
  2. In edition 2024, unsafe_op_in_unsafe_fn is deny-by-default — unsafe operations inside unsafe fn REQUIRE explicit unsafe {} blocks
  3. This is edition-required behavior, not unnecessary verbosity

Common false positives:

  • unsafe {} blocks inside unsafe fn — REQUIRED in edition 2024, not redundant
  • unsafe extern "C" {} — REQUIRED in edition 2024, not optional
  • #[unsafe(no_mangle)] / #[unsafe(export_name)] — REQUIRED in edition 2024

"Unnecessary Clone"

Before flagging, you MUST:

  1. Confirm the clone is actually avoidable (borrow checker may require it)
  2. Check if the value needs to be moved into a closure/thread/task
  3. Verify the type isn't Copy (clone on Copy types is a no-op)
  4. Check if the clone is in a hot path (test/setup code cloning is fine)

Common false positives:

  • Arc::clone(&arc) — this is the recommended explicit clone for Arc
  • Clone before tokio::spawn — required for 'static bound
  • Clone in test setup — clarity over performance

"Potential Race Condition"

Before flagging, you MUST:

  1. Verify the data is actually shared across threads/tasks
  2. Check if Mutex, RwLock, or atomic operations protect the access
  3. Confirm the type doesn't already guarantee thread safety (e.g., Arc<Mutex<T>>)
  4. Check if the "race" is actually benign (e.g., logging, metrics)

Common false positives:

  • Arc<Mutex<T>> — already thread-safe
  • Tokio channel operations — inherently synchronized
  • std::sync::atomic operations — designed for concurrent access

"Performance Issue"

Before flagging, you MUST:

  1. Confirm the code runs frequently enough to matter
  2. Verify the optimization would have measurable impact
  3. Check if the compiler already optimizes this (iterator fusion, inlining)

Do NOT flag:

  • Allocations in startup/initialization code
  • String formatting in error paths
  • Clone in test code
  • .collect() on small iterators

Severity Calibration

Critical (Block Merge)

ONLY use for:

  • unsafe code with unsound invariants
  • SQL injection via string interpolation
  • Use-after-free or memory safety violations
  • Data races (concurrent mutation without synchronization)
  • Panics in production code paths on user input

Major (Should Fix)

Use for:

  • Missing error context across module boundaries
  • Blocking operations in async runtime
  • Mutex guards held across await points
  • Missing transaction for multi-statement database writes

Minor (Consider Fixing)

Use for:

  • Missing doc comments on public items
  • String parameters where &str would work
  • Suboptimal iterator patterns
  • Missing #[must_use] on functions with important return values

Informational (No Action Required)

Use for:

  • Suggestions for newtypes, builder patterns, or type state
  • Performance optimizations without measured impact
  • Suggestions to add #[non_exhaustive]
  • Refactoring ideas for trait design

These are NOT review blockers.

Do NOT Flag At All

  • Style preferences where both approaches are valid (e.g., if let vs match for single variant)
  • Optimizations with no measurable benefit
  • Test code not meeting production standards
  • Generated code or macro output
  • Clippy lints that the project has intentionally suppressed

Valid Patterns (Do NOT Flag)

Rust

PatternWhy It's Valid
unwrap() in testsStandard test behavior — panics on unexpected errors
.clone() in test setupClarity over performance
use super::* in test modulesStandard pattern for accessing parent items
Box<dyn Error> in binariesNot every app needs custom error types
String fields in structsOwned data is correct for struct fields
Arc::clone(&x)Explicit Arc cloning is idiomatic and recommended
#[allow(clippy::...)] with reasonIntentional suppression is valid
#[expect(lint)] instead of #[allow]Self-cleaning suppression (stable since 1.81) — warns when lint no longer triggers
unsafe {} inside unsafe fnRequired in edition 2024 (unsafe_op_in_unsafe_fn = deny)
unsafe extern "C" {}Required in edition 2024 for extern blocks
#[unsafe(no_mangle)]Required in edition 2024 for safety-relevant attributes
#[unsafe(export_name = "...")]Required in edition 2024 for safety-relevant attributes
+ use<'a, T> on impl Trait returnsPrecise capture syntax for edition 2024 RPIT
r#gen as identifiergen is reserved in edition 2024
LazyLock / LazyCellStandard library replacements for once_cell/lazy_static (stable since 1.80)
async fn in trait definitionsNo longer needs async-trait crate (stable since 1.75)
#[diagnostic::on_unimplemented]Custom trait error messages (stable since 1.78)

Async/Tokio

PatternWhy It's Valid
std::sync::Mutex for short critical sectionsTokio docs recommend this for non-async locks
tokio::spawn without joinValid for background tasks with shutdown signaling
select! with default branchNon-blocking check, intentional pattern
#[tokio::test] without multi_threadDefault single-thread is fine for most tests

Testing

PatternWhy It's Valid
expect() in testsAcceptable for test setup/assertions
#[should_panic] with expectedValid for testing panic behavior
Large test functionsIntegration tests can be long
let _ = ... in test cleanupCleanup errors are often unactionable

General

PatternWhy It's Valid
todo!() in new codeValid placeholder during development
#[allow(dead_code)] during developmentCommon during iteration
Multiple impl blocks for one typeOrganized by trait or concern
Type aliases for complex typesReduces boilerplate, improves readability

Context-Sensitive Rules

Ownership

Flag unnecessary .clone() ONLY IF:

  • [ ] In a hot path (not test/setup code)
  • [ ] A borrow or reference would work
  • [ ] The clone is not required for Send/'static bounds
  • [ ] The type is not Copy

Error Handling

Flag missing error context ONLY IF:

  • [ ] Error crosses a module boundary
  • [ ] The error type doesn't already carry context (thiserror messages)
  • [ ] Not in test code
  • [ ] The bare ? loses meaningful information about what operation failed

Unsafe Code

Flag unsafe ONLY IF:

  • [ ] Safety comment is missing or doesn't explain the invariant
  • [ ] The unsafe block is broader than necessary
  • [ ] The invariant is not actually upheld by surrounding code
  • [ ] A safe alternative exists with equivalent performance

Edition 2024 unsafe changes — check Cargo.toml edition before flagging:

  • unsafe {} inside unsafe fn is required (not style) in edition 2024
  • unsafe extern "C" {} is required in edition 2024 — bare extern "C" {} is a compile error
  • #[unsafe(no_mangle)] and #[unsafe(export_name)] are required in edition 2024
  • In edition 2021, these patterns are optional style choices — do not require them

Edition-Aware Review

BEFORE flagging any edition-specific pattern, check Cargo.toml for the project's edition:

[package]
edition = "2024"  # or "2021", "2018"

Edition 2024 changes that affect review findings:

ChangeEdition 2021Edition 2024
unsafe inside unsafe fnOptional styleRequired (unsafe_op_in_unsafe_fn = deny)
extern "C" {}ValidMust be unsafe extern "C" {}
#[no_mangle]ValidMust be #[unsafe(no_mangle)]
#[export_name]ValidMust be #[unsafe(export_name)]
-> impl Trait lifetime captureExplicit onlyCaptures all in-scope lifetimes
gen as identifierValidReserved keyword (use r#gen)
! type fallbackFalls back to ()Falls back to !
if let temporariesDropped at end of blockDropped earlier (end of if let)
Tail expression temporariesDropped after localsDropped before local variables
Box<[T]> iterationNeeds explicit .iter()Has IntoIterator impl

If edition is not specified, Rust defaults to edition 2015. Most modern projects use 2021 or later.

Cross-reference: The beagle-rust:rust-code-review and beagle-rust:rust-best-practices skills provide edition-specific code review guidance and idiomatic patterns.

Macro-Specific Verification

"Macro Hygiene Issue"

Before flagging, you MUST:

  1. Verify the identifier actually leaks — types, modules, and functions are NOT hygienic in macro_rules!
  2. Check if $crate is used correctly for exported macros (not crate or self)
  3. Confirm ::core:: / ::alloc:: paths are needed (only for macros used in no_std contexts)
  4. Check whether the macro is internal-only or #[macro_export]

Common false positives:

  • Non-hygienic type names in internal macros — only matters for exported macros
  • $crate not used in macros that are only pub(crate)$crate is for cross-crate usage
  • Using ::std:: in macros for std-only crates — only flag if crate supports no_std

"Procedural Macro Performance"

Before flagging, you MUST:

  1. Verify the macro is actually in a proc-macro crate (check Cargo.toml for proc-macro = true)
  2. Check if syn features are minimized (full syn with "full" feature vs selective features)
  3. Confirm compile-time impact is meaningful (proc macros used across many files vs one-off)

"Wrong Fragment Type"

Before flagging, you MUST:

  1. Verify the suggested fragment type actually works in that position
  2. Check if :tt is intentionally used for flexibility (common in TT munching patterns)
  3. Confirm :expr greediness issues actually manifest (test with the macro's actual call sites)

FFI-Specific Verification

"Missing repr(C)"

Before flagging, you MUST:

  1. Confirm the type actually crosses the FFI boundary (passed to/from C code)
  2. Check if the type is only used on the Rust side of the FFI wrapper
  3. Verify there isn't a #[repr(transparent)] wrapper instead

Common false positives:

  • Internal Rust types that are converted before FFI call — only the FFI-facing type needs repr(C)
  • Types used with repr(transparent) newtype wrappers — the wrapper handles layout
  • Opaque pointer types (*mut c_void) — no layout guarantee needed

"FFI Safety"

Before flagging, you MUST:

  1. Check if the unsafe FFI call has a SAFETY comment documenting invariants
  2. Verify ownership transfer is actually ambiguous (check for Box::into_raw/Box::from_raw pairs)
  3. Confirm CString lifetime issues are real (the CString must outlive the pointer passed to C)
  4. Check if callback unwinding is actually possible (pure data functions can't panic across FFI)

Common false positives:

  • extern "C" fn callbacks that never panic — catch_unwind not needed
  • *const c_char from CStr::as_ptr() held within the same scope — lifetime is fine
  • Bindgen-generated code with unsafe — bindgen output is inherently unsafe-heavy by design

Concurrency-Specific Verification

"Memory Ordering Too Weak"

Before flagging, you MUST:

  1. Verify the atomic is actually shared between threads that need synchronization
  2. Check if Relaxed is sufficient (counters, flags with no dependent data)
  3. Confirm Acquire/Release vs SeqCst choice matters (most code doesn't need SeqCst)

Common false positives:

  • Relaxed on simple counters/metrics — no ordering needed for independent values
  • Relaxed on boolean flags polled in a loop — the loop provides eventual visibility
  • SeqCst used "for safety" — not wrong, just potentially over-synchronized

Before Submitting Review

Submission gatePass: Every finding uses [FILE:LINE] ISSUE_TITLE and includes the exact line (or minimal contiguous lines) that demonstrates the issue, so a reader can jump to the proof without trusting memory.

Final verification:

  1. Re-read each finding and ask: "Did I verify this is actually an issue?"
  2. For each finding, can you point to the specific line that proves the issue exists?
  3. Would a Rust domain expert agree this is a problem, or is it a style preference?
  4. Does fixing this provide real value, or is it busywork?
  5. Format every finding as: [FILE:LINE] ISSUE_TITLE
  6. For each finding, ask: "Does this fix existing code, or does it request entirely new code that didn't exist before?" If the latter, downgrade to Informational.
  7. If this is a re-review: ONLY verify previous fixes. Do not introduce new findings.

If uncertain about any finding, either:

  • Remove it from the review
  • Mark it as a question rather than an issue
  • Verify by reading more code context

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

89.67%
按下载量换算2,525

安全审计

VirusTotal

未展示

ClawScan

通过

Static analysis

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install review-verification-protocol 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills