[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EMNDCHQ2JY15D2WBFWH5TK":3,"skill-same:01M6EMNDCHQ2JY15D2WBFWH5TK":82},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":42,"ownerHtmlUrl":43,"ownerBlogUrl":6,"ownerDescription":44,"updatedAt":45,"install":46,"resources":59},"01M6EMNDCHQ2JY15D2WBFWH5TK","code-review-standards",null,"Code review framework and criteria. References security-sentinel for security checks. Use when performing code reviews or defining review standards.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fbarnhardt-enterprises-inc\u002Fcode-review-standards\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30],"code review","review","code","standards","code review standards","security","framework","sentinel","grep","read","use","references","2026-11-10 10:12:30",false,"---\nname: code-review-standards\ndescription: Code review framework and criteria. References security-sentinel for security checks. Use when performing code reviews or defining review standards.\nallowed-tools: Read, Grep\n---\n\n# Code Review Standards\n\n## When to Use\n- Reviewing pull requests\n- Performing code reviews\n- Defining review criteria\n- Establishing review process\n\n## Overview\n\nCode review standards ensure consistent, thorough reviews that catch bugs before they reach production. This skill aggregates criteria from specialized skills.\n\n## Review Framework\n\n### 4-Level Severity Classification\n\n1. **CRITICAL** ? - Must fix before merge\n   - Security vulnerabilities\n   - Data loss risks\n   - Authentication bypasses\n   - SQL injection risks\n\n2. **HIGH** ? - Should fix before merge\n   - TypeScript strict mode violations\n   - Missing error handling\n   - Performance issues (N+1 queries)\n   - Missing input validation\n\n3. **MEDIUM** ? - Fix soon (can merge with plan)\n   - Code quality issues\n   - Missing tests\n   - Poor naming\n   - Missing documentation\n\n4. **LOW** ? - Nice to have\n   - Style suggestions\n   - Optimization opportunities\n   - Refactoring ideas\n\n---\n\n## Review Checklist\n\n### 1. Correctness\n→ See: [correctness-criteria.md](.\u002Fcorrectness-criteria.md)\n\n- [ ] Logic is correct for all test cases\n- [ ] Edge cases handled (null, empty, max, min)\n- [ ] Error conditions properly handled\n- [ ] Return types match function signatures\n- [ ] Async operations properly awaited\n- [ ] No race conditions\n- [ ] No off-by-one errors\n\n---\n\n### 2. Security\n→ See: [security-sentinel skill](..\u002Fsecurity-sentinel\u002FSKILL.md)\n→ See: [security-checklist.md](.\u002Fsecurity-checklist.md)\n\n**CRITICAL - Must check every review:**\n\n- [ ] No hardcoded secrets\n- [ ] Input validation with Zod (ALL inputs)\n- [ ] Authentication checked on protected routes\n- [ ] Authorization enforced (resource ownership)\n- [ ] SQL injection prevented (using Drizzle)\n- [ ] XSS prevented (no dangerouslySetInnerHTML without sanitization)\n- [ ] CSRF protection on state-changing operations\n- [ ] No sensitive data in logs\n- [ ] Passwords hashed (bcrypt, 12+ rounds)\n- [ ] JWTs properly verified\n\n**For complete security criteria:**\n→ [security-sentinel\u002FSKILL.md](..\u002Fsecurity-sentinel\u002FSKILL.md)\n\n---\n\n### 3. TypeScript Quality\n→ See: [typescript-strict-guard skill](..\u002Ftypescript-strict-guard\u002FSKILL.md)\n\n- [ ] No `any` types\n- [ ] No `@ts-ignore` without extensive comment\n- [ ] No `!` non-null assertions without comment\n- [ ] Explicit types on all function parameters\n- [ ] Explicit return types on all functions\n- [ ] Type guards used for unknown types\n- [ ] Proper use of generics\n- [ ] No implicit any\n\n---\n\n### 4. Testing\n→ See: [quality-gates\u002Ftest-patterns.md](..\u002Fquality-gates\u002Ftest-patterns.md)\n\n- [ ] Tests exist for new code\n- [ ] Tests follow AAA pattern\n- [ ] Coverage meets thresholds (75%\u002F90%)\n- [ ] UI tests verify DOM state (not just mocks)\n- [ ] E2E tests for visual changes\n- [ ] No skipped tests without reason\n- [ ] Tests are independent\n- [ ] Tests clean up after themselves\n\n---\n\n### 5. Performance\n→ See: [performance-criteria.md](.\u002Fperformance-criteria.md)\n\n- [ ] No N+1 query problems\n- [ ] Database queries optimized\n- [ ] Async operations parallelized where possible\n- [ ] Large datasets paginated\n- [ ] Images optimized\n- [ ] No unnecessary re-renders\n- [ ] Expensive calculations memoized\n\n---\n\n### 6. Code Quality\n→ See: [maintainability-rules.md](.\u002Fmaintainability-rules.md)\n\n- [ ] No console.log in production code\n- [ ] No commented-out code\n- [ ] No TODO without GitHub issue\n- [ ] Functions have single responsibility\n- [ ] Variable names are descriptive\n- [ ] No dead code\n- [ ] No duplicated logic\n- [ ] Proper error messages\n\n---\n\n### 7. Architecture Compliance\n→ See: [architecture-patterns skill](..\u002Farchitecture-patterns\u002FSKILL.md)\n\n- [ ] Correct pattern chosen for problem\n- [ ] Pattern implemented correctly\n- [ ] No pattern violations\n- [ ] Follows Next.js best practices\n- [ ] Server vs Client Components correct\n- [ ] State management appropriate\n\n---\n\n## Review Process\n\n### Step 1: Pre-Review (2 minutes)\n\n1. Read PR description\n2. Understand what changed and why\n3. Check CI\u002FCD status (tests, build, coverage)\n4. Identify high-risk areas (auth, payments, data handling)\n\n### Step 2: Security Review (5 minutes)\n\n**For ALL PRs:**\n- Check for hardcoded secrets\n- Verify input validation\n- Check authentication\u002Fauthorization\n\n**For Auth\u002FAPI\u002FData PRs:**\n- Run security-sentinel skill\n- Review OWASP Top 10 criteria\n- Check for injection risks\n\n→ [security-checklist.md](.\u002Fsecurity-checklist.md)\n\n### Step 3: Code Review (10-20 minutes)\n\n1. **Correctness**: Does it work as intended?\n2. **TypeScript**: Strict mode compliance?\n3. **Testing**: Adequate coverage and quality?\n4. **Performance**: Any obvious issues?\n5. **Quality**: Readable, maintainable code?\n6. **Architecture**: Follows established patterns?\n\n### Step 4: Write Feedback (5 minutes)\n\nUse severity levels and templates:\n→ [review-templates.md](.\u002Freview-templates.md)\n\n**Format:**\n```markdown\n## ? CRITICAL Issues\n\n- [ ] [Security] Hardcoded API key in auth.ts:45\n  - **Risk**: API key exposed in version control\n  - **Fix**: Move to environment variable\n  - **File**: src\u002Flib\u002Fauth.ts:45\n\n## ? HIGH Issues\n\n- [ ] [TypeScript] Using `any` type in processData()\n  - **Issue**: No type safety\n  - **Fix**: Define explicit interface\n  - **File**: src\u002Futils\u002Fprocess.ts:12\n\n## ? MEDIUM Issues\n\n- [ ] [Testing] Missing tests for error cases\n  - **Coverage**: Only happy path tested\n  - **Needed**: Test null input, invalid format\n  - **File**: tests\u002Funit\u002Fprocess.test.ts\n\n## ? LOW Issues \u002F Suggestions\n\n- Consider extracting helper function for readability\n```\n\n### Step 5: Verdict\n\n**Choose one:**\n\n- ✅ **APPROVE** - No critical\u002Fhigh issues\n- ? **REQUEST CHANGES** - Critical or multiple high issues\n- ? **COMMENT** - Questions or low\u002Fmedium issues only\n\n---\n\n## Review Templates\n\n### Security Issue Template\n\n```markdown\n? **[Security] [Vulnerability Type]**\n\n**Location**: `src\u002Fpath\u002Ffile.ts:123`\n\n**Issue**: [Description of vulnerability]\n\n**Risk**: [What could go wrong]\n\n**Fix**:\n```typescript\n\u002F\u002F Suggested fix\n```\n\n**Reference**: [OWASP link or skill reference]\n```\n\n### TypeScript Issue Template\n\n```markdown\n? **[TypeScript] [Issue Type]**\n\n**Location**: `src\u002Fpath\u002Ffile.ts:45`\n\n**Issue**: [What's wrong]\n\n**Fix**:\n```typescript\n\u002F\u002F Current (bad)\nfunction process(data: any) { }\n\n\u002F\u002F Suggested (good)\nfunction process(data: ProcessData): ProcessedResult { }\n```\n\n**Reference**: typescript-strict-guard skill\n```\n\n### Performance Issue Template\n\n```markdown\n? **[Performance] [Issue Type]**\n\n**Location**: `src\u002Fpath\u002Ffile.ts:78`\n\n**Issue**: N+1 query problem in getUserProjects()\n\n**Impact**: Linear time complexity, slow for large datasets\n\n**Fix**:\n```typescript\n\u002F\u002F Use join instead of separate queries\nconst projects = await db\n  .select()\n  .from(projectsTable)\n  .leftJoin(usersTable, eq(projectsTable.userId, usersTable.id))\n```\n```\n\n---\n\n## Common Review Patterns\n\n### Code Smells\n\n**Long Functions**\n```typescript\n\u002F\u002F ? BAD: 100+ line function\nfunction processEverything() {\n  \u002F\u002F ... 100 lines\n}\n\n\u002F\u002F ✅ GOOD: Extracted helpers\nfunction processEverything() {\n  const validated = validateInput()\n  const processed = processData(validated)\n  const saved = saveToDatabase(processed)\n  return saved\n}\n```\n\n**Deeply Nested Logic**\n```typescript\n\u002F\u002F ? BAD: 4+ levels of nesting\nif (user) {\n  if (user.projects) {\n    if (user.projects.length > 0) {\n      if (user.projects[0].status === 'active') {\n        \u002F\u002F ...\n      }\n    }\n  }\n}\n\n\u002F\u002F ✅ GOOD: Early returns\nif (!user) return\nif (!user.projects || user.projects.length === 0) return\nif (user.projects[0].status !== 'active') return\n\u002F\u002F ...\n```\n\n**Magic Numbers**\n```typescript\n\u002F\u002F ? BAD: Unexplained numbers\nsetTimeout(callback, 3600000)\n\n\u002F\u002F ✅ GOOD: Named constants\nconst ONE_HOUR_MS = 60 * 60 * 1000\nsetTimeout(callback, ONE_HOUR_MS)\n```\n\n---\n\n## Progressive Disclosure\n\n1. **SKILL.md** (this file) - Review framework overview\n2. **security-checklist.md** - OWASP Top 10 checklist\n3. **performance-criteria.md** - Performance review criteria\n4. **maintainability-rules.md** - Code quality rules\n5. **review-templates.md** - Feedback templates\n\n---\n\n## Integration with Other Skills\n\nCode review aggregates criteria from:\n- **security-sentinel** - Security vulnerability checks\n- **typescript-strict-guard** - Type safety validation\n- **quality-gates** - Quality checkpoint framework\n- **architecture-patterns** - Pattern compliance\n- **nextjs-15-specialist** - Next.js best practices\n\n---\n\n## Example Review\n\n```markdown\n# Code Review: Add User Authentication\n\n## Summary\nAdds JWT-based authentication with login\u002Flogout endpoints.\n\n## ? CRITICAL Issues\n\n### 1. Hardcoded JWT Secret\n**File**: `src\u002Flib\u002Fauth.ts:12`\n**Issue**: JWT secret is hardcoded as \"secret123\"\n**Risk**: Anyone can forge JWTs\n**Fix**:\n```typescript\n- const secret = \"secret123\"\n+ const secret = process.env.JWT_SECRET\n+ if (!secret) throw new Error('JWT_SECRET not set')\n```\n\n## ? HIGH Issues\n\n### 2. Missing Input Validation\n**File**: `src\u002Fapp\u002Fapi\u002Fauth\u002Flogin\u002Froute.ts:15`\n**Issue**: User input not validated before use\n**Fix**: Add Zod schema validation\n```typescript\nconst loginSchema = z.object({\n  email: z.string().email(),\n  password: z.string().min(8),\n})\n\nconst validated = loginSchema.parse(body)\n```\n\n## ? MEDIUM Issues\n\n### 3. Missing Tests\n**File**: `tests\u002Fintegration\u002Fauth.test.ts`\n**Issue**: No tests for error cases\n**Needed**:\n- Test invalid email format\n- Test wrong password\n- Test expired JWT\n\n## Verdict\n\n? **REQUEST CHANGES** - Fix critical and high issues before merge.\n\nOnce fixed, this will be a solid authentication implementation.\n```\n\n---\n\n## See Also\n\n- security-checklist.md - OWASP Top 10 checklist\n- performance-criteria.md - Performance review guide\n- maintainability-rules.md - Code quality rules\n- review-templates.md - Feedback templates\n- ..\u002Fsecurity-sentinel\u002FSKILL.md - Security patterns\n- ..\u002Fquality-gates\u002FSKILL.md - Quality framework\n","# Code Review Standards\n\n## When to Use\n- Reviewing pull requests\n- Performing code reviews\n- Defining review criteria\n- Establishing review process\n\n## Overview\n\nCode review standards ensure consistent, thorough reviews that catch bugs before they reach production. This skill aggregates criteria from specialized skills.\n\n## Review Framework\n\n### 4-Level Severity Classification\n\n1. **CRITICAL** ? - Must fix before merge\n   - Security vulnerabilities\n   - Data loss risks\n   - Authentication bypasses\n   - SQL injection risks\n\n2. **HIGH** ? - Should fix before merge\n   - TypeScript strict mode violations\n   - Missing error handling\n   - Performance issues (N+1 queries)\n   - Missing input validation\n\n3. **MEDIUM** ? - Fix soon (can merge with plan)\n   - Code quality issues\n   - Missing tests\n   - Poor naming\n   - Missing documentation\n\n4. **LOW** ? - Nice to have\n   - Style suggestions\n   - Optimization opportunities\n   - Refactoring ideas\n\n---\n\n## Review Checklist\n\n### 1. Correctness\n→ See: [correctness-criteria.md](.\u002Fcorrectness-criteria.md)\n\n- [ ] Logic is correct for all test cases\n- [ ] Edge cases handled (null, empty, max, min)\n- [ ] Error conditions properly handled\n- [ ] Return types match function signatures\n- [ ] Async operations properly awaited\n- [ ] No race conditions\n- [ ] No off-by-one errors\n\n---\n\n### 2. Security\n→ See: [security-sentinel skill](..\u002Fsecurity-sentinel\u002FSKILL.md)\n→ See: [security-checklist.md](.\u002Fsecurity-checklist.md)\n\n**CRITICAL - Must check every review:**\n\n- [ ] No hardcoded secrets\n- [ ] Input validation with Zod (ALL inputs)\n- [ ] Authentication checked on protected routes\n- [ ] Authorization enforced (resource ownership)\n- [ ] SQL injection prevented (using Drizzle)\n- [ ] XSS prevented (no dangerouslySetInnerHTML without sanitization)\n- [ ] CSRF protection on state-changing operations\n- [ ] No sensitive data in logs\n- [ ] Passwords hashed (bcrypt, 12+ rounds)\n- [ ] JWTs properly verified\n\n**For complete security criteria:**\n→ [security-sentinel\u002FSKILL.md](..\u002Fsecurity-sentinel\u002FSKILL.md)\n\n---\n\n### 3. TypeScript Quality\n→ See: [typescript-strict-guard skill](..\u002Ftypescript-strict-guard\u002FSKILL.md)\n\n- [ ] No `any` types\n- [ ] No `@ts-ignore` without extensive comment\n- [ ] No `!` non-null assertions without comment\n- [ ] Explicit types on all function parameters\n- [ ] Explicit return types on all functions\n- [ ] Type guards used for unknown types\n- [ ] Proper use of generics\n- [ ] No implicit any\n\n---\n\n### 4. Testing\n→ See: [quality-gates\u002Ftest-patterns.md](..\u002Fquality-gates\u002Ftest-patterns.md)\n\n- [ ] Tests exist for new code\n- [ ] Tests follow AAA pattern\n- [ ] Coverage meets thresholds (75%\u002F90%)\n- [ ] UI tests verify DOM state (not just mocks)\n- [ ] E2E tests for visual changes\n- [ ] No skipped tests without reason\n- [ ] Tests are independent\n- [ ] Tests clean up after themselves\n\n---\n\n### 5. Performance\n→ See: [performance-criteria.md](.\u002Fperformance-criteria.md)\n\n- [ ] No N+1 query problems\n- [ ] Database queries optimized\n- [ ] Async operations parallelized where possible\n- [ ] Large datasets paginated\n- [ ] Images optimized\n- [ ] No unnecessary re-renders\n- [ ] Expensive calculations memoized\n\n---\n\n### 6. Code Quality\n→ See: [maintainability-rules.md](.\u002Fmaintainability-rules.md)\n\n- [ ] No console.log in production code\n- [ ] No commented-out code\n- [ ] No TODO without GitHub issue\n- [ ] Functions have single responsibility\n- [ ] Variable names are descriptive\n- [ ] No dead code\n- [ ] No duplicated logic\n- [ ] Proper error messages\n\n---\n\n### 7. Architecture Compliance\n→ See: [architecture-patterns skill](..\u002Farchitecture-patterns\u002FSKILL.md)\n\n- [ ] Correct pattern chosen for problem\n- [ ] Pattern implemented correctly\n- [ ] No pattern violations\n- [ ] Follows Next.js best practices\n- [ ] Server vs Client Components correct\n- [ ] State management appropriate\n\n---\n\n## Review Process\n\n### Step 1: Pre-Review (2 minutes)\n\n1. Read PR description\n2. Understand what changed and why\n3. Check CI\u002FCD status (tests, build, coverage)\n4. Identify high-risk areas (auth, payments, data handling)\n\n### Step 2: Security Review (5 minutes)\n\n**For ALL PRs:**\n- Check for hardcoded secrets\n- Verify input validation\n- Check authentication\u002Fauthorization\n\n**For Auth\u002FAPI\u002FData PRs:**\n- Run security-sentinel skill\n- Review OWASP Top 10 criteria\n- Check for injection risks\n\n→ [security-checklist.md](.\u002Fsecurity-checklist.md)\n\n### Step 3: Code Review (10-20 minutes)\n\n1. **Correctness**: Does it work as intended?\n2. **TypeScript**: Strict mode compliance?\n3. **Testing**: Adequate coverage and quality?\n4. **Performance**: Any obvious issues?\n5. **Quality**: Readable, maintainable code?\n6. **Architecture**: Follows established patterns?\n\n### Step 4: Write Feedback (5 minutes)\n\nUse severity levels and templates:\n→ [review-templates.md](.\u002Freview-templates.md)\n\n**Format:**\n```markdown\n## ? CRITICAL Issues\n\n- [ ] [Security] Hardcoded API key in auth.ts:45\n  - **Risk**: API key exposed in version control\n  - **Fix**: Move to environment variable\n  - **File**: src\u002Flib\u002Fauth.ts:45\n\n## ? HIGH Issues\n\n- [ ] [TypeScript] Using `any` type in processData()\n  - **Issue**: No type safety\n  - **Fix**: Define explicit interface\n  - **File**: src\u002Futils\u002Fprocess.ts:12\n\n## ? MEDIUM Issues\n\n- [ ] [Testing] Missing tests for error cases\n  - **Coverage**: Only happy path tested\n  - **Needed**: Test null input, invalid format\n  - **File**: tests\u002Funit\u002Fprocess.test.ts\n\n## ? LOW Issues \u002F Suggestions\n\n- Consider extracting helper function for readability\n```\n\n### Step 5: Verdict\n\n**Choose one:**\n\n- ✅ **APPROVE** - No critical\u002Fhigh issues\n- ? **REQUEST CHANGES** - Critical or multiple high issues\n- ? **COMMENT** - Questions or low\u002Fmedium issues only\n\n---\n\n## Review Templates\n\n### Security Issue Template\n\n```markdown\n? **[Security] [Vulnerability Type]**\n\n**Location**: `src\u002Fpath\u002Ffile.ts:123`\n\n**Issue**: [Description of vulnerability]\n\n**Risk**: [What could go wrong]\n\n**Fix**:\n```typescript\n\u002F\u002F Suggested fix\n```\n\n**Reference**: [OWASP link or skill reference]\n```\n\n### TypeScript Issue Template\n\n```markdown\n? **[TypeScript] [Issue Type]**\n\n**Location**: `src\u002Fpath\u002Ffile.ts:45`\n\n**Issue**: [What's wrong]\n\n**Fix**:\n```typescript\n\u002F\u002F Current (bad)\nfunction process(data: any) { }\n\n\u002F\u002F Suggested (good)\nfunction process(data: ProcessData): ProcessedResult { }\n```\n\n**Reference**: typescript-strict-guard skill\n```\n\n### Performance Issue Template\n\n```markdown\n? **[Performance] [Issue Type]**\n\n**Location**: `src\u002Fpath\u002Ffile.ts:78`\n\n**Issue**: N+1 query problem in getUserProjects()\n\n**Impact**: Linear time complexity, slow for large datasets\n\n**Fix**:\n```typescript\n\u002F\u002F Use join instead of separate queries\nconst projects = await db\n  .select()\n  .from(projectsTable)\n  .leftJoin(usersTable, eq(projectsTable.userId, usersTable.id))\n```\n```\n\n---\n\n## Common Review Patterns\n\n### Code Smells\n\n**Long Functions**\n```typescript\n\u002F\u002F ? BAD: 100+ line function\nfunction processEverything() {\n  \u002F\u002F ... 100 lines\n}\n\n\u002F\u002F ✅ GOOD: Extracted helpers\nfunction processEverything() {\n  const validated = validateInput()\n  const processed = processData(validated)\n  const saved = saveToDatabase(processed)\n  return saved\n}\n```\n\n**Deeply Nested Logic**\n```typescript\n\u002F\u002F ? BAD: 4+ levels of nesting\nif (user) {\n  if (user.projects) {\n    if (user.projects.length > 0) {\n      if (user.projects[0].status === 'active') {\n        \u002F\u002F ...\n      }\n    }\n  }\n}\n\n\u002F\u002F ✅ GOOD: Early returns\nif (!user) return\nif (!user.projects || user.projects.length === 0) return\nif (user.projects[0].status !== 'active') return\n\u002F\u002F ...\n```\n\n**Magic Numbers**\n```typescript\n\u002F\u002F ? BAD: Unexplained numbers\nsetTimeout(callback, 3600000)\n\n\u002F\u002F ✅ GOOD: Named constants\nconst ONE_HOUR_MS = 60 * 60 * 1000\nsetTimeout(callback, ONE_HOUR_MS)\n```\n\n---\n\n## Progressive Disclosure\n\n1. **SKILL.md** (this file) - Review framework overview\n2. **security-checklist.md** - OWASP Top 10 checklist\n3. **performance-criteria.md** - Performance review criteria\n4. **maintainability-rules.md** - Code quality rules\n5. **review-templates.md** - Feedback templates\n\n---\n\n## Integration with Other Skills\n\nCode review aggregates criteria from:\n- **security-sentinel** - Security vulnerability checks\n- **typescript-strict-guard** - Type safety validation\n- **quality-gates** - Quality checkpoint framework\n- **architecture-patterns** - Pattern compliance\n- **nextjs-15-specialist** - Next.js best practices\n\n---\n\n## Example Review\n\n```markdown\n# Code Review: Add User Authentication\n\n## Summary\nAdds JWT-based authentication with login\u002Flogout endpoints.\n\n## ? CRITICAL Issues\n\n### 1. Hardcoded JWT Secret\n**File**: `src\u002Flib\u002Fauth.ts:12`\n**Issue**: JWT secret is hardcoded as \"secret123\"\n**Risk**: Anyone can forge JWTs\n**Fix**:\n```typescript\n- const secret = \"secret123\"\n+ const secret = process.env.JWT_SECRET\n+ if (!secret) throw new Error('JWT_SECRET not set')\n```\n\n## ? HIGH Issues\n\n### 2. Missing Input Validation\n**File**: `src\u002Fapp\u002Fapi\u002Fauth\u002Flogin\u002Froute.ts:15`\n**Issue**: User input not validated before use\n**Fix**: Add Zod schema validation\n```typescript\nconst loginSchema = z.object({\n  email: z.string().email(),\n  password: z.string().min(8),\n})\n\nconst validated = loginSchema.parse(body)\n```\n\n## ? MEDIUM Issues\n\n### 3. Missing Tests\n**File**: `tests\u002Fintegration\u002Fauth.test.ts`\n**Issue**: No tests for error cases\n**Needed**:\n- Test invalid email format\n- Test wrong password\n- Test expired JWT\n\n## Verdict\n\n? **REQUEST CHANGES** - Fix critical and high issues before merge.\n\nOnce fixed, this will be a solid authentication implementation.\n```\n\n---\n\n## See Also\n\n- security-checklist.md - OWASP Top 10 checklist\n- performance-criteria.md - Performance review guide\n- maintainability-rules.md - Code quality rules\n- review-templates.md - Feedback templates\n- ..\u002Fsecurity-sentinel\u002FSKILL.md - Security patterns\n- ..\u002Fquality-gates\u002FSKILL.md - Quality framework\n",{"name":5,"description":7,"allowed-tools":36},"Read, Grep","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Faiskillstore\u002Fmarketplace\u002Fbarnhardt-enterprises-inc\u002Fcode-review-standards",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill code-review-standards",{"tool":52,"command":53},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill code-review-standards",{"tool":55,"command":56},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill code-review-standards","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fbarnhardt-enterprises-inc\u002Fcode-review-standards\u002FSKILL.md",true,[60,66,70,74,78],{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"agents\u002Fopenai.yaml","REFERENCE","参考文档",99,"https:\u002F\u002Fgithub.com\u002FHigorAlves\u002Forc\u002Fblob\u002Fmain\u002Fcodex\u002Forc\u002Fskills\u002Forc-ci-routing\u002Fagents\u002Fopenai.yaml",{"path":67,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":68,"sourceHtmlUrl":69},"maintainability-rules.md",6983,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fbarnhardt-enterprises-inc\u002Fcode-review-standards\u002Fmaintainability-rules.md",{"path":71,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":72,"sourceHtmlUrl":73},"performance-criteria.md",5149,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fbarnhardt-enterprises-inc\u002Fcode-review-standards\u002Fperformance-criteria.md",{"path":75,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":76,"sourceHtmlUrl":77},"security-checklist.md",3262,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fbarnhardt-enterprises-inc\u002Fcode-review-standards\u002Fsecurity-checklist.md",{"path":79,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":80,"sourceHtmlUrl":81},"skill-report.json",10092,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fbarnhardt-enterprises-inc\u002Fcode-review-standards\u002Fskill-report.json",[83,92,101,110,116,122],{"skillNo":84,"name":85,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":31},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[89,90,91],"model","model hierarchy","model hierarchy skill",{"skillNo":93,"name":94,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":31},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[98,99,100],"MCP","zoom","zoom mcp",{"skillNo":102,"name":103,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":31},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[107,108,109,99],"sdk","zoom apps sdk","apps",{"skillNo":111,"name":112,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":31},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[112],{"skillNo":117,"name":118,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":31},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[118],{"skillNo":123,"name":124,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":31},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[124]]