[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6K03785MX77RSH1A236FPHZ":3,"skill-same:01M6K03785MX77RSH1A236FPHZ":57},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":27,"linkOnly":28,"markdownContent":29,"markdownBody":30,"frontMatter":31,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":13,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":42,"install":43,"resources":56},"01M6K03785MX77RSH1A236FPHZ","core-review",null,"Act as a Senior Auditor for code changes before merging.","sigitpoerwo\u002Frepoworkspace_zahra","sigitpoerwo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F260207224?v=4","01M6K000PB6NA0N6SQ7VFMEAFZ","01M6K000V4N0CEHNPPQA9TNQNX",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002F01-SIAP-PAKAI\u002Fcoding\u002Fcore-review\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26],"review","core","core review","code","act","as","auditor","for","changes","2026-11-10 10:12:30",false,"---\nname: core-review\ndescription: \"Act as a Senior Auditor for code changes before merging.\"\nmetadata: { \"openclaw\": { \"emoji\": \"?️\", \"requires\": { \"bins\": [] } } }\n---\n\n# ?️ Core Review & Security Auditor\n\n## Overview\nA hyper-systematic checklist for reviewing code correctness, maintainability, performance, and memory leaks. Act as an expert reviewer who spots bad patterns, XSS vulnerabilities, SQL injections, and data access leaks.\n\n## Audit Checklist (The Gauntlet)\n\n### 1. Correctness & Architecture\n- Code matches the approved design spec exactly and operates defensively.\n- No race conditions or improper async handling.\n- Components are not overloaded.\n\n### 2. Performance & Scale\n- No unneeded renders, redundant calculations, or inefficient iterations.\n- Database access patterns are optimal (no N+1).\n- Debouncing and throttling applied where necessary.\n\n### 3. Security (Critical)\n- **Input Validation**: No raw payload processing. Strong schemas in place (e.g., Zod).\n- **Secrets Management**: No hardcoded secrets. Proper environment variables used.\n- **XSS\u002FInjection protection**: No raw innerHTML or unchecked URL variables.\n\n## Severity Report\n- ? **Critical**: Vulnerabilities, data loss, crashing the app. Must fix.\n- ? **Major**: Technical debt, performance bottlenecks, unhandled states.\n- ? **Minor**: Code style, naming, refactoring suggestions.\n\n---\n\n## ? Review Examples\n\n### Example 1: Security Review\n\n**Code to Review:**\n```typescript\n\u002F\u002F ❌ CRITICAL ISSUES\nexport async function loginUser(req: Request) {\n  const { email, password } = await req.json();\n  \n  \u002F\u002F Issue 1: No input validation\n  const user = await db.query(\n    `SELECT * FROM users WHERE email = '${email}'` \u002F\u002F Issue 2: SQL Injection\n  );\n  \n  \u002F\u002F Issue 3: Plain text password comparison\n  if (user.password === password) {\n    \u002F\u002F Issue 4: Hardcoded secret\n    const token = jwt.sign({ id: user.id }, 'secret123');\n    return { token };\n  }\n}\n```\n\n**Review Report:**\n```markdown\n? CRITICAL (4 issues):\n\n1. **No Input Validation** (Line 3)\n   - Risk: Malformed data can crash the app\n   - Fix: Add Zod schema validation\n   \n2. **SQL Injection Vulnerability** (Line 6-7)\n   - Risk: Attacker can execute arbitrary SQL\n   - Fix: Use parameterized queries\n   \n3. **Plain Text Password** (Line 11)\n   - Risk: Passwords stored\u002Fcompared in plain text\n   - Fix: Use bcrypt.compare()\n   \n4. **Hardcoded Secret** (Line 13)\n   - Risk: Secret exposed in code\n   - Fix: Use environment variable\n\n**Fixed Code:**\n```typescript\nimport { z } from 'zod';\nimport bcrypt from 'bcrypt';\n\nconst loginSchema = z.object({\n  email: z.string().email(),\n  password: z.string().min(8)\n});\n\nexport async function loginUser(req: Request) {\n  \u002F\u002F ✅ Input validation\n  const body = await req.json();\n  const { email, password } = loginSchema.parse(body);\n  \n  \u002F\u002F ✅ Parameterized query\n  const user = await db.query(\n    'SELECT * FROM users WHERE email = $1',\n    [email]\n  );\n  \n  if (!user) {\n    throw new Error('Invalid credentials');\n  }\n  \n  \u002F\u002F ✅ Hashed password comparison\n  const valid = await bcrypt.compare(password, user.passwordHash);\n  \n  if (!valid) {\n    throw new Error('Invalid credentials');\n  }\n  \n  \u002F\u002F ✅ Environment variable\n  const token = jwt.sign({ id: user.id }, process.env.JWT_SECRET!);\n  return { token };\n}\n```\n\n### Example 2: Performance Review\n\n**Code to Review:**\n```typescript\n\u002F\u002F ❌ PERFORMANCE ISSUES\nexport default function UserList({ users }) {\n  return (\n    \u003Cdiv>\n      {users.map((user) => (\n        \u003Cdiv key={user.id}>\n          \u003Ch3>{user.name}\u003C\u002Fh3>\n          {\u002F* Issue 1: N+1 query in component *\u002F}\n          \u003CPosts userId={user.id} \u002F>\n        \u003C\u002Fdiv>\n      ))}\n    \u003C\u002Fdiv>\n  );\n}\n\nfunction Posts({ userId }) {\n  const [posts, setPosts] = useState([]);\n  \n  \u002F\u002F Issue 2: Fetch in useEffect (runs for each user)\n  useEffect(() => {\n    fetch(`\u002Fapi\u002Fposts?userId=${userId}`)\n      .then(res => res.json())\n      .then(setPosts);\n  }, [userId]);\n  \n  return (\n    \u003Cul>\n      {posts.map((post) => (\n        \u002F\u002F Issue 3: Missing key\n        \u003Cli>{post.title}\u003C\u002Fli>\n      ))}\n    \u003C\u002Ful>\n  );\n}\n```\n\n**Review Report:**\n```markdown\n? MAJOR (3 issues):\n\n1. **N+1 Query Problem** (Line 7)\n   - Risk: 100 users = 100 API calls\n   - Impact: Slow page load, high server load\n   - Fix: Fetch all posts in parent, pass as prop\n   \n2. **Inefficient Data Fetching** (Line 17-21)\n   - Risk: Multiple sequential fetches\n   - Impact: Waterfall loading, poor UX\n   - Fix: Use Server Component or parallel fetching\n   \n3. **Missing Key Prop** (Line 26)\n   - Risk: React reconciliation issues\n   - Impact: Incorrect updates, performance degradation\n   - Fix: Add key={post.id}\n\n**Fixed Code:**\n```typescript\n\u002F\u002F ✅ Fetch all data at once (Server Component)\nasync function getUsersWithPosts() {\n  const users = await db.user.findMany({\n    include: { posts: true }\n  });\n  return users;\n}\n\nexport default async function UserList() {\n  const users = await getUsersWithPosts();\n  \n  return (\n    \u003Cdiv>\n      {users.map((user) => (\n        \u003Cdiv key={user.id}>\n          \u003Ch3>{user.name}\u003C\u002Fh3>\n          \u003Cul>\n            {user.posts.map((post) => (\n              \u003Cli key={post.id}>{post.title}\u003C\u002Fli>\n            ))}\n          \u003C\u002Ful>\n        \u003C\u002Fdiv>\n      ))}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Example 3: Code Quality Review\n\n**Code to Review:**\n```typescript\n\u002F\u002F ❌ CODE QUALITY ISSUES\nfunction processData(d) { \u002F\u002F Issue 1: Poor naming\n  let r = []; \u002F\u002F Issue 2: Unclear variable\n  \n  \u002F\u002F Issue 3: No error handling\n  for (let i = 0; i \u003C d.length; i++) {\n    if (d[i].status == 'active') { \u002F\u002F Issue 4: Loose equality\n      \u002F\u002F Issue 5: Complex nested logic\n      if (d[i].type == 'premium') {\n        if (d[i].balance > 100) {\n          r.push({\n            id: d[i].id,\n            name: d[i].name,\n            \u002F\u002F Issue 6: Magic number\n            discount: d[i].price * 0.2\n          });\n        }\n      }\n    }\n  }\n  \n  return r;\n}\n```\n\n**Review Report:**\n```markdown\n? MINOR (6 issues):\n\n1. **Poor Function Naming** (Line 2)\n   - Issue: 'processData' is too generic\n   - Fix: Use descriptive name like 'getActivePremiumUsersWithDiscount'\n   \n2. **Unclear Variable Names** (Line 2-3)\n   - Issue: 'd' and 'r' are cryptic\n   - Fix: Use 'data' and 'results' or better names\n   \n3. **No Error Handling** (Line 6)\n   - Issue: No try-catch or validation\n   - Fix: Add error boundaries\n   \n4. **Loose Equality** (Line 7, 10)\n   - Issue: Using == instead of ===\n   - Fix: Use strict equality\n   \n5. **Deep Nesting** (Line 7-17)\n   - Issue: Hard to read and maintain\n   - Fix: Use early returns or filter chains\n   \n6. **Magic Number** (Line 15)\n   - Issue: 0.2 has no context\n   - Fix: Use named constant\n\n**Fixed Code:**\n```typescript\nconst PREMIUM_DISCOUNT_RATE = 0.2;\nconst MINIMUM_BALANCE = 100;\n\ninterface User {\n  id: string;\n  name: string;\n  status: 'active' | 'inactive';\n  type: 'premium' | 'basic';\n  balance: number;\n  price: number;\n}\n\ninterface DiscountedUser {\n  id: string;\n  name: string;\n  discount: number;\n}\n\nfunction getActivePremiumUsersWithDiscount(\n  users: User[]\n): DiscountedUser[] {\n  try {\n    return users\n      .filter(user => user.status === 'active')\n      .filter(user => user.type === 'premium')\n      .filter(user => user.balance > MINIMUM_BALANCE)\n      .map(user => ({\n        id: user.id,\n        name: user.name,\n        discount: user.price * PREMIUM_DISCOUNT_RATE\n      }));\n  } catch (error) {\n    console.error('Error processing users:', error);\n    return [];\n  }\n}\n```\n\n---\n\n## ? Review Checklist\n\n### Security Checklist\n- [ ] All user inputs are validated\n- [ ] No SQL injection vulnerabilities\n- [ ] No XSS vulnerabilities\n- [ ] Secrets are in environment variables\n- [ ] Authentication is properly implemented\n- [ ] Authorization checks are in place\n- [ ] CORS is configured correctly\n- [ ] Rate limiting is implemented\n- [ ] Sensitive data is encrypted\n- [ ] Error messages don't leak information\n\n### Performance Checklist\n- [ ] No N+1 query problems\n- [ ] Database queries are optimized\n- [ ] Proper indexing is used\n- [ ] Caching is implemented where needed\n- [ ] Images are optimized\n- [ ] Bundle size is reasonable\n- [ ] No memory leaks\n- [ ] Debouncing\u002Fthrottling is used\n- [ ] Lazy loading is implemented\n- [ ] Code splitting is used\n\n### Code Quality Checklist\n- [ ] Functions are small and focused\n- [ ] Variable names are descriptive\n- [ ] No magic numbers or strings\n- [ ] Error handling is comprehensive\n- [ ] Code is DRY (Don't Repeat Yourself)\n- [ ] Comments explain \"why\", not \"what\"\n- [ ] TypeScript types are properly defined\n- [ ] Tests are included\n- [ ] Documentation is updated\n- [ ] No console.logs in production\n\n---\n\n## ? Common Issues & Fixes\n\n### Issue: Unhandled Promise Rejection\n\n**Bad:**\n```typescript\nasync function fetchData() {\n  const data = await fetch('\u002Fapi\u002Fdata');\n  return data.json();\n}\n```\n\n**Good:**\n```typescript\nasync function fetchData() {\n  try {\n    const response = await fetch('\u002Fapi\u002Fdata');\n    \n    if (!response.ok) {\n      throw new Error(`HTTP error! status: ${response.status}`);\n    }\n    \n    return await response.json();\n  } catch (error) {\n    console.error('Failed to fetch data:', error);\n    throw error;\n  }\n}\n```\n\n### Issue: Memory Leak in useEffect\n\n**Bad:**\n```typescript\nuseEffect(() => {\n  const interval = setInterval(() => {\n    fetchData();\n  }, 1000);\n  \u002F\u002F Missing cleanup!\n}, []);\n```\n\n**Good:**\n```typescript\nuseEffect(() => {\n  const interval = setInterval(() => {\n    fetchData();\n  }, 1000);\n  \n  return () => clearInterval(interval);\n}, []);\n```\n\n### Issue: Race Condition\n\n**Bad:**\n```typescript\nlet data = null;\n\nasync function loadData() {\n  data = await fetchData();\n  processData(data);\n}\n\n\u002F\u002F Race condition if called multiple times\nloadData();\nloadData();\n```\n\n**Good:**\n```typescript\nlet abortController: AbortController | null = null;\n\nasync function loadData() {\n  \u002F\u002F Cancel previous request\n  if (abortController) {\n    abortController.abort();\n  }\n  \n  abortController = new AbortController();\n  \n  try {\n    const data = await fetchData({ signal: abortController.signal });\n    processData(data);\n  } catch (error) {\n    if (error.name === 'AbortError') {\n      console.log('Request cancelled');\n    } else {\n      throw error;\n    }\n  }\n}\n```\n\n---\n\n## ? Review Template\n\n```markdown\n## Code Review: [Feature Name]\n\n### Summary\nBrief description of what this PR does.\n\n### Security Review\n? Critical: [count]\n? Major: [count]\n? Minor: [count]\n\n#### Critical Issues\n1. [Issue description]\n   - Location: [file:line]\n   - Risk: [security risk]\n   - Fix: [recommended fix]\n\n### Performance Review\n- [ ] No N+1 queries\n- [ ] Proper caching\n- [ ] Optimized queries\n- [ ] Bundle size impact: [size]\n\n### Code Quality\n- [ ] Tests included\n- [ ] Documentation updated\n- [ ] TypeScript types complete\n- [ ] No console.logs\n\n### Recommendations\n1. [Recommendation 1]\n2. [Recommendation 2]\n\n### Approval Status\n- [ ] Approved\n- [ ] Approved with minor changes\n- [ ] Needs major changes\n- [ ] Rejected\n\n**Reviewer:** [Name]\n**Date:** [Date]\n```\n\n---\n\n## ? Additional Resources\n\n- [OWASP Top 10](https:\u002F\u002Fowasp.org\u002Fwww-project-top-ten\u002F)\n- [Code Review Best Practices](https:\u002F\u002Fgoogle.github.io\u002Feng-practices\u002Freview\u002F)\n- [Security Checklist](https:\u002F\u002Fgithub.com\u002Fshieldfy\u002FAPI-Security-Checklist)\n- [Performance Best Practices](https:\u002F\u002Fweb.dev\u002Fperformance\u002F)\n","# ?️ Core Review & Security Auditor\n\n## Overview\nA hyper-systematic checklist for reviewing code correctness, maintainability, performance, and memory leaks. Act as an expert reviewer who spots bad patterns, XSS vulnerabilities, SQL injections, and data access leaks.\n\n## Audit Checklist (The Gauntlet)\n\n### 1. Correctness & Architecture\n- Code matches the approved design spec exactly and operates defensively.\n- No race conditions or improper async handling.\n- Components are not overloaded.\n\n### 2. Performance & Scale\n- No unneeded renders, redundant calculations, or inefficient iterations.\n- Database access patterns are optimal (no N+1).\n- Debouncing and throttling applied where necessary.\n\n### 3. Security (Critical)\n- **Input Validation**: No raw payload processing. Strong schemas in place (e.g., Zod).\n- **Secrets Management**: No hardcoded secrets. Proper environment variables used.\n- **XSS\u002FInjection protection**: No raw innerHTML or unchecked URL variables.\n\n## Severity Report\n- ? **Critical**: Vulnerabilities, data loss, crashing the app. Must fix.\n- ? **Major**: Technical debt, performance bottlenecks, unhandled states.\n- ? **Minor**: Code style, naming, refactoring suggestions.\n\n---\n\n## ? Review Examples\n\n### Example 1: Security Review\n\n**Code to Review:**\n```typescript\n\u002F\u002F ❌ CRITICAL ISSUES\nexport async function loginUser(req: Request) {\n  const { email, password } = await req.json();\n  \n  \u002F\u002F Issue 1: No input validation\n  const user = await db.query(\n    `SELECT * FROM users WHERE email = '${email}'` \u002F\u002F Issue 2: SQL Injection\n  );\n  \n  \u002F\u002F Issue 3: Plain text password comparison\n  if (user.password === password) {\n    \u002F\u002F Issue 4: Hardcoded secret\n    const token = jwt.sign({ id: user.id }, 'secret123');\n    return { token };\n  }\n}\n```\n\n**Review Report:**\n```markdown\n? CRITICAL (4 issues):\n\n1. **No Input Validation** (Line 3)\n   - Risk: Malformed data can crash the app\n   - Fix: Add Zod schema validation\n   \n2. **SQL Injection Vulnerability** (Line 6-7)\n   - Risk: Attacker can execute arbitrary SQL\n   - Fix: Use parameterized queries\n   \n3. **Plain Text Password** (Line 11)\n   - Risk: Passwords stored\u002Fcompared in plain text\n   - Fix: Use bcrypt.compare()\n   \n4. **Hardcoded Secret** (Line 13)\n   - Risk: Secret exposed in code\n   - Fix: Use environment variable\n\n**Fixed Code:**\n```typescript\nimport { z } from 'zod';\nimport bcrypt from 'bcrypt';\n\nconst loginSchema = z.object({\n  email: z.string().email(),\n  password: z.string().min(8)\n});\n\nexport async function loginUser(req: Request) {\n  \u002F\u002F ✅ Input validation\n  const body = await req.json();\n  const { email, password } = loginSchema.parse(body);\n  \n  \u002F\u002F ✅ Parameterized query\n  const user = await db.query(\n    'SELECT * FROM users WHERE email = $1',\n    [email]\n  );\n  \n  if (!user) {\n    throw new Error('Invalid credentials');\n  }\n  \n  \u002F\u002F ✅ Hashed password comparison\n  const valid = await bcrypt.compare(password, user.passwordHash);\n  \n  if (!valid) {\n    throw new Error('Invalid credentials');\n  }\n  \n  \u002F\u002F ✅ Environment variable\n  const token = jwt.sign({ id: user.id }, process.env.JWT_SECRET!);\n  return { token };\n}\n```\n\n### Example 2: Performance Review\n\n**Code to Review:**\n```typescript\n\u002F\u002F ❌ PERFORMANCE ISSUES\nexport default function UserList({ users }) {\n  return (\n    \u003Cdiv>\n      {users.map((user) => (\n        \u003Cdiv key={user.id}>\n          \u003Ch3>{user.name}\u003C\u002Fh3>\n          {\u002F* Issue 1: N+1 query in component *\u002F}\n          \u003CPosts userId={user.id} \u002F>\n        \u003C\u002Fdiv>\n      ))}\n    \u003C\u002Fdiv>\n  );\n}\n\nfunction Posts({ userId }) {\n  const [posts, setPosts] = useState([]);\n  \n  \u002F\u002F Issue 2: Fetch in useEffect (runs for each user)\n  useEffect(() => {\n    fetch(`\u002Fapi\u002Fposts?userId=${userId}`)\n      .then(res => res.json())\n      .then(setPosts);\n  }, [userId]);\n  \n  return (\n    \u003Cul>\n      {posts.map((post) => (\n        \u002F\u002F Issue 3: Missing key\n        \u003Cli>{post.title}\u003C\u002Fli>\n      ))}\n    \u003C\u002Ful>\n  );\n}\n```\n\n**Review Report:**\n```markdown\n? MAJOR (3 issues):\n\n1. **N+1 Query Problem** (Line 7)\n   - Risk: 100 users = 100 API calls\n   - Impact: Slow page load, high server load\n   - Fix: Fetch all posts in parent, pass as prop\n   \n2. **Inefficient Data Fetching** (Line 17-21)\n   - Risk: Multiple sequential fetches\n   - Impact: Waterfall loading, poor UX\n   - Fix: Use Server Component or parallel fetching\n   \n3. **Missing Key Prop** (Line 26)\n   - Risk: React reconciliation issues\n   - Impact: Incorrect updates, performance degradation\n   - Fix: Add key={post.id}\n\n**Fixed Code:**\n```typescript\n\u002F\u002F ✅ Fetch all data at once (Server Component)\nasync function getUsersWithPosts() {\n  const users = await db.user.findMany({\n    include: { posts: true }\n  });\n  return users;\n}\n\nexport default async function UserList() {\n  const users = await getUsersWithPosts();\n  \n  return (\n    \u003Cdiv>\n      {users.map((user) => (\n        \u003Cdiv key={user.id}>\n          \u003Ch3>{user.name}\u003C\u002Fh3>\n          \u003Cul>\n            {user.posts.map((post) => (\n              \u003Cli key={post.id}>{post.title}\u003C\u002Fli>\n            ))}\n          \u003C\u002Ful>\n        \u003C\u002Fdiv>\n      ))}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Example 3: Code Quality Review\n\n**Code to Review:**\n```typescript\n\u002F\u002F ❌ CODE QUALITY ISSUES\nfunction processData(d) { \u002F\u002F Issue 1: Poor naming\n  let r = []; \u002F\u002F Issue 2: Unclear variable\n  \n  \u002F\u002F Issue 3: No error handling\n  for (let i = 0; i \u003C d.length; i++) {\n    if (d[i].status == 'active') { \u002F\u002F Issue 4: Loose equality\n      \u002F\u002F Issue 5: Complex nested logic\n      if (d[i].type == 'premium') {\n        if (d[i].balance > 100) {\n          r.push({\n            id: d[i].id,\n            name: d[i].name,\n            \u002F\u002F Issue 6: Magic number\n            discount: d[i].price * 0.2\n          });\n        }\n      }\n    }\n  }\n  \n  return r;\n}\n```\n\n**Review Report:**\n```markdown\n? MINOR (6 issues):\n\n1. **Poor Function Naming** (Line 2)\n   - Issue: 'processData' is too generic\n   - Fix: Use descriptive name like 'getActivePremiumUsersWithDiscount'\n   \n2. **Unclear Variable Names** (Line 2-3)\n   - Issue: 'd' and 'r' are cryptic\n   - Fix: Use 'data' and 'results' or better names\n   \n3. **No Error Handling** (Line 6)\n   - Issue: No try-catch or validation\n   - Fix: Add error boundaries\n   \n4. **Loose Equality** (Line 7, 10)\n   - Issue: Using == instead of ===\n   - Fix: Use strict equality\n   \n5. **Deep Nesting** (Line 7-17)\n   - Issue: Hard to read and maintain\n   - Fix: Use early returns or filter chains\n   \n6. **Magic Number** (Line 15)\n   - Issue: 0.2 has no context\n   - Fix: Use named constant\n\n**Fixed Code:**\n```typescript\nconst PREMIUM_DISCOUNT_RATE = 0.2;\nconst MINIMUM_BALANCE = 100;\n\ninterface User {\n  id: string;\n  name: string;\n  status: 'active' | 'inactive';\n  type: 'premium' | 'basic';\n  balance: number;\n  price: number;\n}\n\ninterface DiscountedUser {\n  id: string;\n  name: string;\n  discount: number;\n}\n\nfunction getActivePremiumUsersWithDiscount(\n  users: User[]\n): DiscountedUser[] {\n  try {\n    return users\n      .filter(user => user.status === 'active')\n      .filter(user => user.type === 'premium')\n      .filter(user => user.balance > MINIMUM_BALANCE)\n      .map(user => ({\n        id: user.id,\n        name: user.name,\n        discount: user.price * PREMIUM_DISCOUNT_RATE\n      }));\n  } catch (error) {\n    console.error('Error processing users:', error);\n    return [];\n  }\n}\n```\n\n---\n\n## ? Review Checklist\n\n### Security Checklist\n- [ ] All user inputs are validated\n- [ ] No SQL injection vulnerabilities\n- [ ] No XSS vulnerabilities\n- [ ] Secrets are in environment variables\n- [ ] Authentication is properly implemented\n- [ ] Authorization checks are in place\n- [ ] CORS is configured correctly\n- [ ] Rate limiting is implemented\n- [ ] Sensitive data is encrypted\n- [ ] Error messages don't leak information\n\n### Performance Checklist\n- [ ] No N+1 query problems\n- [ ] Database queries are optimized\n- [ ] Proper indexing is used\n- [ ] Caching is implemented where needed\n- [ ] Images are optimized\n- [ ] Bundle size is reasonable\n- [ ] No memory leaks\n- [ ] Debouncing\u002Fthrottling is used\n- [ ] Lazy loading is implemented\n- [ ] Code splitting is used\n\n### Code Quality Checklist\n- [ ] Functions are small and focused\n- [ ] Variable names are descriptive\n- [ ] No magic numbers or strings\n- [ ] Error handling is comprehensive\n- [ ] Code is DRY (Don't Repeat Yourself)\n- [ ] Comments explain \"why\", not \"what\"\n- [ ] TypeScript types are properly defined\n- [ ] Tests are included\n- [ ] Documentation is updated\n- [ ] No console.logs in production\n\n---\n\n## ? Common Issues & Fixes\n\n### Issue: Unhandled Promise Rejection\n\n**Bad:**\n```typescript\nasync function fetchData() {\n  const data = await fetch('\u002Fapi\u002Fdata');\n  return data.json();\n}\n```\n\n**Good:**\n```typescript\nasync function fetchData() {\n  try {\n    const response = await fetch('\u002Fapi\u002Fdata');\n    \n    if (!response.ok) {\n      throw new Error(`HTTP error! status: ${response.status}`);\n    }\n    \n    return await response.json();\n  } catch (error) {\n    console.error('Failed to fetch data:', error);\n    throw error;\n  }\n}\n```\n\n### Issue: Memory Leak in useEffect\n\n**Bad:**\n```typescript\nuseEffect(() => {\n  const interval = setInterval(() => {\n    fetchData();\n  }, 1000);\n  \u002F\u002F Missing cleanup!\n}, []);\n```\n\n**Good:**\n```typescript\nuseEffect(() => {\n  const interval = setInterval(() => {\n    fetchData();\n  }, 1000);\n  \n  return () => clearInterval(interval);\n}, []);\n```\n\n### Issue: Race Condition\n\n**Bad:**\n```typescript\nlet data = null;\n\nasync function loadData() {\n  data = await fetchData();\n  processData(data);\n}\n\n\u002F\u002F Race condition if called multiple times\nloadData();\nloadData();\n```\n\n**Good:**\n```typescript\nlet abortController: AbortController | null = null;\n\nasync function loadData() {\n  \u002F\u002F Cancel previous request\n  if (abortController) {\n    abortController.abort();\n  }\n  \n  abortController = new AbortController();\n  \n  try {\n    const data = await fetchData({ signal: abortController.signal });\n    processData(data);\n  } catch (error) {\n    if (error.name === 'AbortError') {\n      console.log('Request cancelled');\n    } else {\n      throw error;\n    }\n  }\n}\n```\n\n---\n\n## ? Review Template\n\n```markdown\n## Code Review: [Feature Name]\n\n### Summary\nBrief description of what this PR does.\n\n### Security Review\n? Critical: [count]\n? Major: [count]\n? Minor: [count]\n\n#### Critical Issues\n1. [Issue description]\n   - Location: [file:line]\n   - Risk: [security risk]\n   - Fix: [recommended fix]\n\n### Performance Review\n- [ ] No N+1 queries\n- [ ] Proper caching\n- [ ] Optimized queries\n- [ ] Bundle size impact: [size]\n\n### Code Quality\n- [ ] Tests included\n- [ ] Documentation updated\n- [ ] TypeScript types complete\n- [ ] No console.logs\n\n### Recommendations\n1. [Recommendation 1]\n2. [Recommendation 2]\n\n### Approval Status\n- [ ] Approved\n- [ ] Approved with minor changes\n- [ ] Needs major changes\n- [ ] Rejected\n\n**Reviewer:** [Name]\n**Date:** [Date]\n```\n\n---\n\n## ? Additional Resources\n\n- [OWASP Top 10](https:\u002F\u002Fowasp.org\u002Fwww-project-top-ten\u002F)\n- [Code Review Best Practices](https:\u002F\u002Fgoogle.github.io\u002Feng-practices\u002Freview\u002F)\n- [Security Checklist](https:\u002F\u002Fgithub.com\u002Fshieldfy\u002FAPI-Security-Checklist)\n- [Performance Best Practices](https:\u002F\u002Fweb.dev\u002Fperformance\u002F)\n",{"name":5,"metadata":32,"description":7},{"openclaw":33},{"emoji":34,"requires":35},"?️",{"bins":36},[],"main","000d804ba753926ec0eca35be68bdb42da72c672","skills\u002F01-SIAP-PAKAI\u002Fcoding\u002Fcore-review","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo","2026-04-05 09:27:05",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add sigitpoerwo\u002Frepoworkspace_zahra --skill core-review",{"tool":49,"command":50},"bunx","bunx skills add sigitpoerwo\u002Frepoworkspace_zahra --skill core-review",{"tool":52,"command":53},"pnpm","pnpm dlx skills add sigitpoerwo\u002Frepoworkspace_zahra --skill core-review","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002F01-SIAP-PAKAI\u002Fcoding\u002Fcore-review\u002FSKILL.md",true,[],[58,85,110,126,132,138],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":27},"01M6K0FJ41XMDT72PK0E3ZJF9P","zahra-workspace-manager","Comprehensive workspace management skill for Zahra Maurita's development environment. Use when managing projects across 8 divisions (Web, App, AI Agent, Bot, Content, Marketing, Research, Business), organizing files, tracking progress, managing memory, or coordinating multi-domain work. Triggers on mentions of workspace organization, project management, division-specific tasks, memory updates, or cross-domain coordination.","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002Fzahra-workspace-manager\u002FSKILL.md",[],[65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],"workspace","workspace manager","manager","zahra workspace manager","work","updates","progress","app","project","across","multi-domain","files","command","coordination","projects","search","tasks","ai agent","memory","bot",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":27},"01M6K0FBZYXG5M8VBW5R6TPKEP","tinyfish","AI-powered web automation using TinyFish Web Agent. Use when you need to scrape data from websites, automate form filling, extract structured information, or perform any web-based task using natural language instructions. Works with any website including those with JavaScript, dynamic content, and bot protection.","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002F05-CUSTOM-SKILLS\u002Ftinyfish\u002FSKILL.md",[],[87,92,93,94,95,96,97,98,99,100,101,102,103,84,104,105,106,107,108,109],"with","natural language","web automation","form","information","scrape","task","language","protection","use","instructions","automate","you","website","web","javascript","automation","data",{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":27},"01M6K0F57WDT62QNXTTC6YS34D","tinyfish-openclaw","TinyFish Web Agent integration for OpenClaw. Use this skill to scrape websites, automate web tasks, extract structured data, and perform browser automation using natural language. Works seamlessly with OpenClaw's MCP protocol.","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002F05-CUSTOM-SKILLS\u002Ftinyfish-openclaw\u002FSKILL.md",[],[87,117,118,108,119,120,121,106,103,25,92,93,101,97,109,122,123,124,125,81],"openclaw","tinyfish openclaw","structured data","browser automation","MCP","integration","mcp protocol","browser","protocol",{"skillNo":127,"name":128,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":27},"01M6K0E9ZWFTG44SK6G2ARS39Z","autoresearchclaw","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002F05-CUSTOM-SKILLS\u002Fautoresearchclaw\u002FSKILL.md",[],[128],{"skillNo":133,"name":134,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":27},"01M6K0E6ZAEJFYDXM4GANCKZY0","researchclaw","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002F05-CUSTOM-SKILLS\u002Fautoresearchclaw\u002F.claude\u002Fskills\u002Fresearchclaw\u002FSKILL.md",[],[134],{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":27},"01M6K0E1B6RZ8T2S7RMWQ6BVWW","academic-research-assistant","Research assistant for management & digital business academics - literature review, paper analysis, citation management, research methodology","https:\u002F\u002Fgithub.com\u002Fsigitpoerwo\u002Frepoworkspace_zahra\u002Fblob\u002Fmain\u002Fskills\u002F05-CUSTOM-SKILLS\u002Facademic-research-assistant\u002FSKILL.md",[],[145,146,147,148,149,150,25,151,152,153,154,155,156,157,158,159,160,18],"research assistant","academic research assistant","Academic","assistant","research","paper analysis","literature","paper","Citation","research methodology","business","management","literature review","analysis","citation management","methodology"]