.agents/skills/code-change-verification/SKILL.md
Use this skill to review code changes consistently before merge, before release, and during incident follow-up.
.unwrap() and .expect( outside test modules. Every unwrap() in production code must have a justification comment or be replaced with ?.as u8/u16/u32/u64/usize/i8/i16/i32/i64/isize casts. Every as cast must be justified; negative-to-unsigned and large-to-small are bugs by default. Use try_into() or explicit clamping..clone() calls in loops, per-request paths, and on structs with >5 heap-allocated fields. Consider Arc, references, or Cow<str>.tokio::sync::RwLock/Mutex guard held across an .await point without bounded hold time.Result<_, String>, Box<dyn Error>, and missing Error::source() implementations in public APIs.assert!. Flag tests that only call code without verifying results.println!/eprintln! outside test modules. Production code must use tracing macros.#[serde(deny_unknown_fields)].path:line referenceNo findings and why.[P1] Missing timeout for downstream call
path/to/file.rs:123