.cursor/skills/code-review-best-practices/SKILL.md
Reviews changes for security, scalability, performance, code reuse, and maintainability using a structured checklist. Use when the user asks for a code review, wants feedback on a PR, or wants to harden code quality.
npx skillsauth add zoeyzou/friend-sync code-review-best-practicesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill defines how the agent should review code in this repository.
When reviewing changes, always consider:
For backend and API changes:
protectedProcedureAUTH_SECRET/NEXTAUTH_URL sourced from envFor frontend:
dangerouslySetInnerHTML without santization)findMany with explicit filters/take/skip for listsinclude or batchinguseEffect or useState overheadIf you find performance risks, suggest:
src/components/ui, src/components/figma) instead of duplicating markupsrc/lib) where it benefits multiple callersWhen responding to the user, group findings by severity:
Use this template:
## Overview
- Short 2–3 sentence summary of what this change does
## Findings
### 🔴 Critical
- [file.ts] [short title] – description + suggestion
### 🟠 Major
- [file.ts] [short title] – description + suggestion
### 🟡 Minor
- [file.tsx] [short title] – description + suggestion
## Suggestions
- 2–4 bullets with concrete next steps (what to fix, where to add tests, etc.)
If you find no critical issues, still point out at least a couple of improvement ideas (reusability, comments, tests) so the review is useful.
documentation
Guides the agent through creating, updating, and summarizing pull requests using this repository's git and GitHub conventions. Use when the user wants to open a PR, refine its description, or understand what will be included.
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.