skills/code-review/SKILL.md
Performs comprehensive code reviews on the Syncly codebase. Use when the user asks for a code review, audit, quality check, or wants to find bugs and security issues.
npx skillsauth add aagii9912/smarthub code-reviewInstall 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.
Performs multi-category code analysis with severity-graded findings, modeled after Claude Code's Code Review.
/code-review workflow| Level | Label | Meaning | |-------|-------|---------| | 🔴 | Must Fix | Bugs, security vulnerabilities, data loss risks, crashes | | 🟡 | Should Fix | Logic errors, missing error handling, performance issues, bad patterns | | 🟢 | Consider | Style improvements, refactoring opportunities, minor optimizations | | 💙 | Praise | Well-written code worth highlighting as a good example |
any usage, missing types, incorrect type assertionsRead REVIEW.md from the project root for project-specific rules.
Read CLAUDE.md for project conventions and architecture context.
src/ directory (skip node_modules/, .next/, test-results/)For each file in scope, check against all 7 categories above plus any rules from REVIEW.md.
Priority order:
Output a structured markdown report:
# 🔍 Code Review Report — [Scope Description]
**Date:** [date]
**Files reviewed:** [count]
**Findings:** 🔴 [n] Must Fix · 🟡 [n] Should Fix · 🟢 [n] Consider · 💙 [n] Praise
---
## 🔴 Must Fix
### [Finding Title]
**File:** `path/to/file.ts` (line X-Y)
**Category:** Security | Logic | Error Handling | ...
**Description:** Clear explanation of the issue
**Impact:** What could go wrong
**Fix:**
\```typescript
// suggested code fix
\```
---
## 🟡 Should Fix
[Same format...]
## 🟢 Consider
[Same format...]
## 💙 Praise
[Same format — highlight good patterns]
---
## Summary
[Brief overview of code health, top priorities, and recommendations]
These checks are specific to this project — always verify:
supabase-browser.tssupabase-server.tssupabase.ts (service role)supabase-middleware.tslib/validations/{ error: string, details?: string[] }x-shop-id header validated, not blindly trusted@/ alias (not relative ../)lucide-reactsonnerreact-hook-form + zod"use client" only when necessarydevelopment
Strict guidelines for building UI components, pages, and layouts. Ensures adherence to brand-identity tokens, technical constraints, and performance standards.
testing
Generates high-quality, predictable, and efficient .agent/skills/ directories based on user requirements. Use when the user asks to create a new skill or defining a new agent capability.
testing
Provides the single source of truth for brand guidelines, design tokens, technology choices, and voice/tone. Use this skill whenever generating UI components, styling applications, writing copy, or creating user-facing assets to ensure brand consistency.
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.