security-review ยท diff

git:20260517.bd1f891 to git:20261123.a9eccfb

5 added, 3 removed. Audit A to A.

What this update changes in the checks

No check changed: every fixed check gives the same answer before and after this update.

A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.

---
name: security-review
- description: Review security-sensitive code changes involving auth, user input, secrets, APIs, payments, files, RLS, or third-party integrations.
+ description: "Review the security of pending code changes only: the working-tree or staged git diff, unpushed commits or one PR, when they touch auth, user input, secrets, APIs, payments, files, RLS, or third-party integrations. Not for a whole-repository audit (audit-orchestrator), a launch-readiness scorecard (vibe-to-prod) or runtime security probes in a browser (validation)."
---
# Security Review
- Use this skill to review a concrete implementation or planned change for
- security risk. Keep the review evidence-based: cite files, lines, configs, and
+ Use this skill to review pending changes for security risk: the working-tree or
+ staged diff, unpushed commits, or one PR (`git diff`, `git diff --staged`,
+ `git log @{u}..`). For a whole repository use `audit-orchestrator`; for a
+ launch-readiness scorecard use `vibe-to-prod`. Keep the review evidence-based: cite files, lines, configs, and
runtime behavior where relevant.
## Review Flow
1. Identify the sensitive surface:
- authentication or authorization
- user input, uploads, forms, or generated HTML
- secrets, tokens, credentials, or webhooks
- API endpoints, payments, databases, or RLS policies
- third-party integrations
2. Read the relevant code and configuration before giving advice.
3. Check the high-risk classes first:
- hardcoded or leaked secrets
- missing authz checks
- injection risks
- unsafe file handling
- XSS/CSRF exposure
- sensitive data in logs or errors
- weak webhook/payment verification
- missing rate limits on expensive or public endpoints
4. Verify with available tests, static checks, or targeted grep commands.
5. Report findings by severity with evidence and a concrete fix.
## When to Load References
Load `references/full-checklist.md` when the change touches multiple risk
classes, payment/security-critical paths, or the user asks for a comprehensive
checklist.
## Output
```text
SECURITY REVIEW
Scope: <files/features reviewed>
Findings:
1. <severity> <summary>
Evidence: <path:line>
Risk: <impact>
Fix: <specific remediation>
Verified:
- <commands/checks run>
Residual Risk:
- <anything not verified>
```