requesting-code-review
Use when asked to review code, a diff, or a PR. Triggers on: 'review this', 'check my diff', 'review the PR', 'is this code ok', 'look at my changes', 'code review'. Focuses on real bugs, security issues, and env leaks — not style.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 13
- Forks
- 2
01 前言 Front Matter
- name
- requesting-code-review
- description
- Use when asked to review code, a diff, or a PR. Triggers on: 'review this', 'check my diff', 'review the PR', 'is this code ok', 'look at my changes', 'code review'. Focuses on real bugs, security issues, and env leaks — not style.
03 SKILL.md 正文
Requesting Code Review Skill
Code review has one job: find things that will break in production or compromise security. Style, preference, and micro-optimisations are out of scope unless the reviewer asked for them.
When to use this skill
- User shares a diff, PR link, or file and asks for review
- User says "review this", "check my changes", "is this safe"
- User is about to merge and wants a second opinion
What to review
Priority 1 — Must catch
- Logic bugs: off-by-one, wrong condition, silent failure path
- Security issues: SQL injection, command injection, XSS, hardcoded secrets, open redirects
- Env leaks:
.envvalues, tokens, or credentials committed or logged - Data loss risk: missing transaction, unguarded
DELETE/DROP, migration with no rollback
Priority 2 — Should catch
- Missing error handling at system boundaries (external API calls, file I/O, DB queries)
- Race conditions or non-atomic operations on shared state
- Resource leaks: unclosed connections, missing
finallyblocks - Auth bypasses: missing permission check on a new route/endpoint
Priority 3 — Note if obvious
- Dead code, console.log left in, commented-out blocks
- Naming that will confuse the next reader
What NOT to review
- Formatting/indentation (that's a linter's job)
- Personal style preferences
- Architecture opinions unless the user asks
- Hypothetical future concerns ("what if we need to scale this")
Review format
## Code Review
**Reviewed:** [filename or PR#]
### Must fix
- [file:line] [issue] — [why it matters]
### Should fix
- [file:line] [issue]
### Notes
- [file:line] [minor observation]
### Verdict
APPROVE / REQUEST CHANGES / NEEDS DISCUSSION
Reason: [one sentence]
If there are no issues, say so explicitly: "No issues found in priority 1-2 categories."
How to run the review
# See the full diff first
git diff main...HEAD
# Check for secrets
git diff main...HEAD | grep -iE '(password|secret|token|api_key)\s*='
# Check for debug artifacts
git diff main...HEAD | grep -iE '(console\.log|print\(|debugger|TODO|FIXME)'
Show evidence for each finding — do not assert without pointing to the specific line.
04 同仓库更多 Skills
openai--sentry--sentry
Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the Sentry API; perform read-only queries with the bundled script and require `SENTRY_AUTH_TOKEN`.
ito-basket-compare
Compare Itô prediction-market baskets against a user's knowledge base, portfolio notes, financial context, watchlist, or research thesis. Use for read-only basket comparison and gap analysis without investment advice or live trading.
implementing-network-traffic-baselining
Build network traffic baselines from NetFlow/IPFIX data using Python pandas for statistical analysis, z-score anomaly detection, and hourly/daily traffic pattern profiling
detecting-evasion-techniques-in-endpoint-logs
Detects defense evasion techniques used by adversaries in endpoint logs including log tampering, timestomping, process injection, and security tool disabling. Use when investigating suspicious endpoint behavior, building detection rules for evasion tactics, or conducting threat hunting for stealthy adversary activity. Activates for requests involving evasion detection, defense evasion analysis, log tampering detection, or MITRE ATT&CK TA0005.
implementing-microsegmentation-with-guardicore
Implementing microsegmentation using Akamai Guardicore Segmentation to map application dependencies, create granular network policies, visualize east-west traffic flows, and enforce least-privilege communication between workloads across data centers and cloud.
ramdisk-tmpfs-patterns
暂无简介