Perform a local code review of the current branch's changes against Materialize project standards. Trigger when the user says "review my code", "review my changes", "check my diff", "does this look ok", "what do you think of this PR", "code review", or asks you to look over changes before merging. Also trigger when the user passes a PR number and wants feedback on quality, style, or correctness.
설치
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Perform a local code review of the current branch's changes against Materialize project standards. Trigger when the user says "review my code", "review my changes", "check my diff", "does this look ok", "what do you think of this PR", "code review", or asks you to look over changes before merging. Also trigger when the user passes a PR number and wants feedback on quality, style, or correctness.
argument-hint
["base-branch"]
allowed-tools
["Bash","Read","Grep","Glob","Task"]
Perform a local code review of the current branch's changes against Materialize project standards.
Steps
Parse arguments from: $ARGUMENTS — a PR number, base branch, or nothing.
No "unable", "bad", "illegal", "unknown"; say what kind of object.
Sensitive data handling
Types holding passwords, keys, tokens, or credentials should use mz_ore::secure::{SecureString, SecureVec} or zeroize::Zeroizing<T> (from mz_ore::secure).
Sensitive types should not derive Clone or Debug (use custom Debug that redacts).
Stack-local buffers holding derived keys, nonces, or HMAC outputs should be wrapped in Zeroizing<T>.
See doc/developer/generated/ore/secure.md for full guidance and src/ssh-util/src/keys.rs for a reference implementation.
Architecture
Simplicity: No incidental complexity; simplify redundant logic.
No special casing: Prefer composable design over extra booleans/branches.
Encapsulation: sql-parser = grammar only (no semantic validation); sql = planning + semantics.
Dependencies: New crates must be justified.
For more design guidelines read: doc/developer/best-practices.md
Polish
No leftover // XXX, // FIXME, dbg!, println!, or commented-out code.
No unrelated formatting changes in untouched code.
New public items should have doc comments.
Release notes
Any user-visible change to stable APIs needs a release note (imperative, "This release will…").
One semantic change rule
The PR should do one thing. If it spans multiple CODEOWNERS areas (e.g. sql-parser + sql planner), consider suggesting a split.
Rules
Review the code, not the author. Explain the why behind suggestions.
Use nit: for preferences where reasonable people could disagree.
If the PR improves overall codebase health and blocking items are addressed, say so.
Do NOT make any changes — this is read-only review.