code-reviewer
Use when asked to review MERN stack code - comprehensive code reviewer that checks project health, security, maintainability, performance, testing, and architecture. Combines general code quality analysis with MERN-specific expertise.
Best use case
code-reviewer is best used when you need a repeatable AI agent workflow instead of a one-off prompt. It is especially useful for teams working in multi. Use when asked to review MERN stack code - comprehensive code reviewer that checks project health, security, maintainability, performance, testing, and architecture. Combines general code quality analysis with MERN-specific expertise.
Use when asked to review MERN stack code - comprehensive code reviewer that checks project health, security, maintainability, performance, testing, and architecture. Combines general code quality analysis with MERN-specific expertise.
Users should expect a more consistent workflow output, faster repeated execution, and less time spent rewriting prompts from scratch.
Practical example
Example input
Use the "code-reviewer" skill to help with this workflow task. Context: Use when asked to review MERN stack code - comprehensive code reviewer that checks project health, security, maintainability, performance, testing, and architecture. Combines general code quality analysis with MERN-specific expertise.
Example output
A structured workflow result with clearer steps, more consistent formatting, and an output that is easier to reuse in the next run.
When to use this skill
- Use this skill when you want a reusable workflow rather than writing the same prompt again and again.
When not to use this skill
- Do not use this when you only need a one-off answer and do not need a reusable workflow.
- Do not use it if you cannot install or maintain the related files, repository context, or supporting tools.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/code-reviewer/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How code-reviewer Compares
| Feature / Agent | code-reviewer | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Use when asked to review MERN stack code - comprehensive code reviewer that checks project health, security, maintainability, performance, testing, and architecture. Combines general code quality analysis with MERN-specific expertise.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
Cursor vs Codex for AI Workflows
Compare Cursor and Codex for AI coding workflows, repository assistance, debugging, refactoring, and reusable developer skills.
SKILL.md Source
# Code Reviewer ## Overview Comprehensive code review: General intelligence + MERN specialization. **Philosophy:** Check project health FIRST, then dive into code. A 6,000-line file is a problem regardless of what's in it. ## Review Workflow ### Phase 0: Project Health (Do This First) Before reading any code, assess project health: 1. **Build status:** Run `tsc --noEmit` or check for compilation errors 2. **Project docs:** Read README, any STATUS/BUGS/TODO files - look for deployment blockers 3. **Test health:** Do tests exist? Check `package.json` scripts, look for test directories 4. **File sizes:** `find src -name "*.ts" -o -name "*.tsx" | xargs wc -l | sort -n | tail -20` 5. **Dependencies:** Check for `npm audit` issues, unusual deps (Angular in React?) **Stop here if:** Build is broken, docs say "DO NOT DEPLOY", or critical blockers found. Report immediately. ### Phase 1: Scope Detection 1. Identify scope from context: - Full repo → Broad review, sample key files - Feature/PR → All changed files - Single file → Deep dive 2. Detect layers: React? Express? MongoDB? Node.js? 3. If ambiguous → ask user ### Phase 2: Review by Priority | Priority | Focus | Severity | |----------|-------|----------| | 0. Blockers | Build failures, "DO NOT DEPLOY", broken deploys | STOP | | 1. Security | Injection, auth, secrets, XSS | Critical | | 2. Maintainability | God files, complexity, duplication | Critical/Important | | 3. Performance | N+1, missing indexes, re-renders | Important | | 4. Testing | No tests, low coverage, flaky tests | Important | | 5. Best Practices | Error handling, async patterns | Suggestion | | 6. Architecture | API design, state management | Suggestion | Load reference files ON-DEMAND when you hit MERN-specific edge cases. ### Phase 3: Report Use the output format below. Offer to fix starting with Critical. ## Output Format ```markdown # MERN Code Review ## Project Health - Build: [Compiles / X errors / Not checked] - Tests: [X passing / X failing / None found] - Blockers: [Any deployment blockers from docs] - Large files: [Files >500 lines] ## Scope [What was reviewed] ## Summary - Files reviewed: X - Issues: X Critical, X Important, X Suggestions ## Critical (Must Fix) ### [C1] Category: Title **File:** `path:line` **Why:** [1-2 sentences] **Fix:** [Code or instruction] ## Important (Should Fix) ### [I1] Category: Title ... ## Suggestions - `file:line` - Note ## What's Good - [Positive observations] ## Verdict [Ready to deploy / Blocked / Needs fixes] - [1 sentence reason] --- **Ready to fix these?** Starting with Critical issues. ``` ## Checklists **Minimum required checks.** Report other issues you find during review. ### Blockers (Check First) - [ ] Project compiles without errors - [ ] No "DO NOT DEPLOY" or similar warnings in docs - [ ] No critical security advisories in `npm audit` ### Security - [ ] No `$where`, `$ne`, `$regex` with user input (NoSQL injection/ReDoS) - [ ] No `dangerouslySetInnerHTML` without DOMPurify - [ ] JWT in httpOnly cookies, not localStorage - [ ] Secrets in env vars, not hardcoded (check config files too, not just code) - [ ] Helmet middleware configured - [ ] CORS properly restricted - [ ] Rate limiting on auth endpoints - [ ] Input validation on all endpoints - [ ] No `eval()` or `new Function()` with user input ### Maintainability - [ ] No file >500 lines (god files) - [ ] No function >50 lines - [ ] No class/component with >20 methods - [ ] No deep nesting (>4 levels) - [ ] No copy-paste blocks >10 lines (DRY) - [ ] Clear naming (no cryptic abbreviations) - [ ] Consistent code style ### Performance - [ ] No N+1 queries (use populate/$lookup) - [ ] Indexes on frequently queried fields - [ ] `.lean()` for read-only Mongoose queries - [ ] No `fs.readFileSync` in request handlers - [ ] React.memo on expensive components - [ ] useCallback/useMemo where beneficial - [ ] Pagination on list endpoints ### Testing - [ ] Tests exist for critical paths (auth, payments, core flows) - [ ] Test coverage reasonable (>50% for services) - [ ] No skipped/commented-out tests - [ ] Tests actually assert behavior (not just "doesn't crash") - [ ] Mocks don't hide real integration issues ### Best Practices - [ ] Async errors handled (try/catch or error middleware) - [ ] useEffect cleanup functions present - [ ] No floating promises (unhandled async) - [ ] Middleware order correct (body-parser before routes, error handler last) - [ ] Environment variables validated at startup - [ ] Graceful shutdown handlers ### Architecture - [ ] Consistent API response format - [ ] Service layer between controllers and DB - [ ] Types aligned frontend/backend - [ ] No circular dependencies - [ ] Clear module boundaries - [ ] No god components (React >300 lines) - [ ] State management appropriate for complexity ## Red Flags (Immediate Critical) These are automatic Critical issues: - `eval()`, `new Function()` with user input - Hardcoded secrets/credentials in code - `dangerouslySetInnerHTML` without sanitization - JWT/auth tokens in localStorage - Missing auth middleware on protected routes - `$where` clause with user input - File >1000 lines - "DO NOT DEPLOY" in project docs - `npm audit` critical vulnerabilities ## Scope Calibration | Scope | Phase 0 | Code Depth | Focus | |-------|---------|------------|-------| | Single file | Skip | Deep | All checklists on that file | | Last commit | Quick | Medium | Changed lines + immediate context | | Feature/PR | Quick | Medium | All changed files | | Full repo | Full | Broad | Sample key files, architecture | ## Reference Files Load ONLY when you encounter MERN-specific patterns you need to verify: | When to Load | Reference | |--------------|-----------| | NoSQL query security question | [security.md](reference/security.md) | | React hooks/re-render issue | [react.md](reference/react.md) | | Express middleware question | [express.md](reference/express.md) | | MongoDB schema/index question | [mongodb.md](reference/mongodb.md) | | Node.js async/memory issue | [nodejs.md](reference/nodejs.md) | | API design/auth flow question | [fullstack.md](reference/fullstack.md) | **Do NOT load all references upfront.** They're for edge cases, not general review. ## Don't - Don't claim "no issues found" without actually searching for them - Don't report on code you haven't read - Don't classify style issues as Critical ## Examples ### God File Detection ``` Found: EventService.ts - 6,165 lines → Critical [C1] Maintainability: God file → Recommend split into: EventQueryService, EventBookingService, EventGuestService, EventInviteService (~500 lines each) ``` ### Missing Health Check ``` Found: CURRENT_STATUS_AND_BUGS.md contains "DO NOT DEPLOY" → Critical [C1] Blocker: Deployment blocked by known issues → Fix TypeScript errors in EditEventModal.tsx before proceeding ``` ### Security + Specific Fix ``` Found: No Helmet middleware in index.ts → Critical [C2] Security: Missing security headers → Fix: npm install helmet && app.use(helmet()) ```
Related Skills
doc-consistency-reviewer
文档一致性审核官,检查代码实现与文档说明的一致性。当用户请求审查文档与代码的一致性、检查 README/docs 是否过时、验证 API 文档准确性时使用此技能。适用于:(1) 审查 README 与实现一致性 (2) 检查 docs/ 目录文档是否过时 (3) 验证 API/配置文档准确性 (4) 生成文档一致性报告。触发词包括:文档审查、doc review、文档一致性、documentation consistency、检查文档过时、verify docs。
clean-code-reviewer
Analyze code quality based on "Clean Code" principles. Identify naming, function size, duplication, over-engineering, and magic number issues with severity ratings and refactoring suggestions. Use when the user requests code review, quality check, refactoring advice, Clean Code analysis, code smell detection, or mentions terms like 代码体检, 代码质量, 重构检查.
examples-code-reviewer
AI-powered code review tool that analyzes code for bugs, style issues, and improvements
quality-reviewer
Deep code review with web research to verify against latest ecosystem. Use when user says 'double check against latest', 'verify versions', 'check security', 'review against docs', or needs deep analysis beyond automatic quality hook.
azure-quotas
Check/manage Azure quotas and usage across providers. For deployment planning, capacity validation, region selection. WHEN: "check quotas", "service limits", "current usage", "request quota increase", "quota exceeded", "validate capacity", "regional availability", "provisioning limits", "vCPU limit", "how many vCPUs available in my subscription".
raindrop-io
Manage Raindrop.io bookmarks with AI assistance. Save and organize bookmarks, search your collection, manage reading lists, and organize research materials. Use when working with bookmarks, web research, reading lists, or when user mentions Raindrop.io.
zlibrary-to-notebooklm
自动从 Z-Library 下载书籍并上传到 Google NotebookLM。支持 PDF/EPUB 格式,自动转换,一键创建知识库。
discover-skills
当你发现当前可用的技能都不够合适(或用户明确要求你寻找技能)时使用。本技能会基于任务目标和约束,给出一份精简的候选技能清单,帮助你选出最适配当前任务的技能。
web-performance-seo
Fix PageSpeed Insights/Lighthouse accessibility "!" errors caused by contrast audit failures (CSS filters, OKLCH/OKLAB, low opacity, gradient text, image backgrounds). Use for accessibility-driven SEO/performance debugging and remediation.
project-to-obsidian
将代码项目转换为 Obsidian 知识库。当用户提到 obsidian、项目文档、知识库、分析项目、转换项目 时激活。 【激活后必须执行】: 1. 先完整阅读本 SKILL.md 文件 2. 理解 AI 写入规则(默认到 00_Inbox/AI/、追加式、统一 Schema) 3. 执行 STEP 0: 使用 AskUserQuestion 询问用户确认 4. 用户确认后才开始 STEP 1 项目扫描 5. 严格按 STEP 0 → 1 → 2 → 3 → 4 顺序执行 【禁止行为】: - 禁止不读 SKILL.md 就开始分析项目 - 禁止跳过 STEP 0 用户确认 - 禁止直接在 30_Resources 创建(先到 00_Inbox/AI/) - 禁止自作主张决定输出位置
obsidian-helper
Obsidian 智能笔记助手。当用户提到 obsidian、日记、笔记、知识库、capture、review 时激活。 【激活后必须执行】: 1. 先完整阅读本 SKILL.md 文件 2. 理解 AI 写入三条硬规矩(00_Inbox/AI/、追加式、白名单字段) 3. 按 STEP 0 → STEP 1 → ... 顺序执行 4. 不要跳过任何步骤,不要自作主张 【禁止行为】: - 禁止不读 SKILL.md 就开始工作 - 禁止跳过用户确认步骤 - 禁止在非 00_Inbox/AI/ 位置创建新笔记(除非用户明确指定)
internationalizing-websites
Adds multi-language support to Next.js websites with proper SEO configuration including hreflang tags, localized sitemaps, and language-specific content. Use when adding new languages, setting up i18n, optimizing for international SEO, or when user mentions localization, translation, multi-language, or specific languages like Japanese, Korean, Chinese.