[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M70FY6V9527NH282ZX9HFKAM":3,"skill-same:01M70FY6V9527NH282ZX9HFKAM":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"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":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":40,"ownerHtmlUrl":41,"ownerBlogUrl":42,"ownerDescription":43,"updatedAt":44,"install":45,"resources":58},"01M70FY6V9527NH282ZX9HFKAM","review-code",null,"Read code. Understand it. Find issues. Report clearly.","dhaupin\u002Fvant","dhaupin","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6352930?v=4","01M70FR23MK9RWZMWEQCWXMJ5Y","01M70FR24ETCQQSC3TGH374C6A",16,"MIT","https:\u002F\u002Fgithub.com\u002Fdhaupin\u002Fvant\u002Fblob\u002Fmain\u002Fmodels\u002Fpublic\u002Fvant\u002Fskills\u002Fvant-skill-review-code\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26],"review","code","review code","report","issues","find","read","it","understand","2026-11-10 10:12:30",false,"---\nname: review-code\ndescription: Read code. Understand it. Find issues. Report clearly.\nlicense: MIT\nmetadata:\n  author: vant\n  version: \"1.0\"\n---\n\n# Code Review\n\n> Read code. Understand it. Find issues. Report clearly.\n\n---\n\n## First: Read It Like It Works\n\nBefore finding bugs, understand what it does:\n\n1. **Run it** - Actually execute if possible\n2. **Trace the data** - Follow input to output\n3. **Find the edges** - Where does it start, where does it end?\n4. **Check the happy path** - Does the main thing work?\n\nAssume it's right until you understand it. Then question.\n\n---\n\n## Pass 1: Functionality\n\nDoes this actually do the thing?\n\n| Check | Look For |\n|-------|----------|\n| Entry point | Where does execution start? |\n| Main logic | Core algorithm correct? |\n| Edge cases | null, empty, extremes |\n| Error handling | What happens on failure? |\n| Return values | What's actually returned? |\n\n### How to verify:\n\n```javascript\n\u002F\u002F Run with inputs\nnode file.js test-input\n\n\u002F\u002F Check output matches expectation\n```\n\n---\n\n## Pass 2: Security\n\nInput enters. Something executes. Check:\n\n```javascript\n\u002F\u002F Credentials exposed?\nprocess.env.API_KEY\n\u002F\u002F Hardcoded secrets?\nconst token = \"sk-...\"\n\u002F\u002F Injection points?\ndb.query(userInput)\nexec(userInput)\neval(userInput)\n\u002F\u002F Filesystem?\nfs.readFile(path)\n```\n\n### Questions to ask:\n\n- Can this be called by anyone?\n- What happens with malicious input?\n- Are credentials visible in stack traces?\n- Rate limiting?\n\n---\n\n## Pass 3: Performance\n\nExpensive operations:\n\n```javascript\n\u002F\u002F Loops inside loops?\nitems.map(i => i.sub.map(s => ...))\n\n\u002F\u002F Async blocked?\nawait Promise.all(heavy)\n\n\u002F\u002F Missing cache?\n\u002F\u002F Same lookup repeated\n\n\u002F\u002F Memory unbounded?\narr.push(infinite)\n```\n\n### Questions:\n\n- Scales with users?\n- Memory bounded?\n- Async\u002Fawait correct?\n\n---\n\n## Pass 4: Code Quality\n\n| Check | Issue | Fix |\n|-------|------|-----|\n| Name unclear | `x` | `userCount` |\n| Function too long | 500 lines | Split it |\n| Comments what not why | `\u002F\u002F loop` | `\u002F\u002F sorted by date to match UI` |\n| No tests | - | Add tests |\n\n### Questions:\n\n- Can I understand this in 30 seconds?\n- Does function do one thing?\n- Are side effects obvious?\n\n---\n\n## Pass 5: AI Usability (Vant-specific)\n\nCan another agent use this?\n\n- Public API clear?\n- Required params documented?\n- Can be imported and called?\n- Errors descriptive?\n\n```javascript\n\u002F\u002F Good: Clear API\nawait loadBrain(repo, options)\n\n\u002F\u002F Bad: What is options?\nawait loadBrain(x, y)\n```\n\n---\n\n## Output Format\n\nFor each file:\n\n```\n## Review - [filename]\n\n### What it does\n[One sentence: What problem does this solve?]\n\n### Issues\n| Severity | Type | Issue | Suggestion |\n|----------|------|-------|-----------|\n| HIGH     | Security | SQL injection | Use parameterized query |\n| MEDIUM   | Perf     | N+1 query    | Batch fetches |\n| LOW      | Quality | Unclear name | Rename 'x' to 'userId' |\n\n### Looks Good\n- [Things done well]\n\n### AI Usability\n- [Can another agent call this?]\n```\n\n---\n\n## Severity Guide\n\n| Severity | Meaning | Action Required |\n|----------|---------|----------------|\n| HIGH | Exploit possible \u002F broken | Fix before merge |\n| MEDIUM | Could cause issues | Fix or document |\n| LOW | Style \u002F preference | Optional fix |\n\n---\n\n## Tips\n\n- **First read then review** - Don't scan, read fully\n- **One pass per axis** - Don't mix security with style\n- **Question kindly** - \"Could this be...\" not \"Wrong\"\n- **Think like the writer** - They had reasons\n- **Check the tests** - Verify the behavior\n\n---\n\n**Role**: Code Reviewer **Input**: Source file(s) **Output**: Issues found\n\n> Be thorough. Be kind. Be clear.\n","# Code Review\n\n> Read code. Understand it. Find issues. Report clearly.\n\n---\n\n## First: Read It Like It Works\n\nBefore finding bugs, understand what it does:\n\n1. **Run it** - Actually execute if possible\n2. **Trace the data** - Follow input to output\n3. **Find the edges** - Where does it start, where does it end?\n4. **Check the happy path** - Does the main thing work?\n\nAssume it's right until you understand it. Then question.\n\n---\n\n## Pass 1: Functionality\n\nDoes this actually do the thing?\n\n| Check | Look For |\n|-------|----------|\n| Entry point | Where does execution start? |\n| Main logic | Core algorithm correct? |\n| Edge cases | null, empty, extremes |\n| Error handling | What happens on failure? |\n| Return values | What's actually returned? |\n\n### How to verify:\n\n```javascript\n\u002F\u002F Run with inputs\nnode file.js test-input\n\n\u002F\u002F Check output matches expectation\n```\n\n---\n\n## Pass 2: Security\n\nInput enters. Something executes. Check:\n\n```javascript\n\u002F\u002F Credentials exposed?\nprocess.env.API_KEY\n\u002F\u002F Hardcoded secrets?\nconst token = \"sk-...\"\n\u002F\u002F Injection points?\ndb.query(userInput)\nexec(userInput)\neval(userInput)\n\u002F\u002F Filesystem?\nfs.readFile(path)\n```\n\n### Questions to ask:\n\n- Can this be called by anyone?\n- What happens with malicious input?\n- Are credentials visible in stack traces?\n- Rate limiting?\n\n---\n\n## Pass 3: Performance\n\nExpensive operations:\n\n```javascript\n\u002F\u002F Loops inside loops?\nitems.map(i => i.sub.map(s => ...))\n\n\u002F\u002F Async blocked?\nawait Promise.all(heavy)\n\n\u002F\u002F Missing cache?\n\u002F\u002F Same lookup repeated\n\n\u002F\u002F Memory unbounded?\narr.push(infinite)\n```\n\n### Questions:\n\n- Scales with users?\n- Memory bounded?\n- Async\u002Fawait correct?\n\n---\n\n## Pass 4: Code Quality\n\n| Check | Issue | Fix |\n|-------|------|-----|\n| Name unclear | `x` | `userCount` |\n| Function too long | 500 lines | Split it |\n| Comments what not why | `\u002F\u002F loop` | `\u002F\u002F sorted by date to match UI` |\n| No tests | - | Add tests |\n\n### Questions:\n\n- Can I understand this in 30 seconds?\n- Does function do one thing?\n- Are side effects obvious?\n\n---\n\n## Pass 5: AI Usability (Vant-specific)\n\nCan another agent use this?\n\n- Public API clear?\n- Required params documented?\n- Can be imported and called?\n- Errors descriptive?\n\n```javascript\n\u002F\u002F Good: Clear API\nawait loadBrain(repo, options)\n\n\u002F\u002F Bad: What is options?\nawait loadBrain(x, y)\n```\n\n---\n\n## Output Format\n\nFor each file:\n\n```\n## Review - [filename]\n\n### What it does\n[One sentence: What problem does this solve?]\n\n### Issues\n| Severity | Type | Issue | Suggestion |\n|----------|------|-------|-----------|\n| HIGH     | Security | SQL injection | Use parameterized query |\n| MEDIUM   | Perf     | N+1 query    | Batch fetches |\n| LOW      | Quality | Unclear name | Rename 'x' to 'userId' |\n\n### Looks Good\n- [Things done well]\n\n### AI Usability\n- [Can another agent call this?]\n```\n\n---\n\n## Severity Guide\n\n| Severity | Meaning | Action Required |\n|----------|---------|----------------|\n| HIGH | Exploit possible \u002F broken | Fix before merge |\n| MEDIUM | Could cause issues | Fix or document |\n| LOW | Style \u002F preference | Optional fix |\n\n---\n\n## Tips\n\n- **First read then review** - Don't scan, read fully\n- **One pass per axis** - Don't mix security with style\n- **Question kindly** - \"Could this be...\" not \"Wrong\"\n- **Think like the writer** - They had reasons\n- **Check the tests** - Verify the behavior\n\n---\n\n**Role**: Code Reviewer **Input**: Source file(s) **Output**: Issues found\n\n> Be thorough. Be kind. Be clear.\n",{"name":5,"license":14,"metadata":32,"description":7},{"author":33,"version":34},"vant","1.0","main","8b503d1512c76e22a20a6ec9300fa670b37a79be","models\u002Fpublic\u002Fvant\u002Fskills\u002Fvant-skill-review-code",1,"https:\u002F\u002Fgithub.com\u002Fdhaupin\u002Fvant","https:\u002F\u002Fvant.creadev.org","https:\u002F\u002Fgithub.com\u002Fdhaupin","https:\u002F\u002Fcreadev.org\u002F","Hi. I make web, app, ecom, enterprise, agent, and orchestration things. Let me know if I can help with your next project. 🤝 Part of the Creadev.org team.","2026-11-13 16:43:16",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add dhaupin\u002Fvant --skill review-code",{"tool":51,"command":52},"bunx","bunx skills add dhaupin\u002Fvant --skill review-code",{"tool":54,"command":55},"pnpm","pnpm dlx skills add dhaupin\u002Fvant --skill review-code","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdhaupin\u002Fvant\u002Fblob\u002Fmain\u002Fmodels\u002Fpublic\u002Fvant\u002Fskills\u002Fvant-skill-review-code\u002FSKILL.md",true,[],[60,69,80,88,110,134],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":27},"01M70G0NZMN2E0RPCAH59497C3","yaml","Data serialization.","https:\u002F\u002Fgithub.com\u002Fdhaupin\u002Fvant\u002Fblob\u002Fmain\u002Fmodels\u002Fpublic\u002Fvant\u002Fskills\u002Fvant-skill-yaml\u002FSKILL.md",[],[62,67,68],"serialization","data",{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":27},"01M70G0MV7JGRXJ60VZZ692ZTM","vite","Frontend build tool.","https:\u002F\u002Fgithub.com\u002Fdhaupin\u002Fvant\u002Fblob\u002Fmain\u002Fmodels\u002Fpublic\u002Fvant\u002Fskills\u002Fvant-skill-vite\u002FSKILL.md",[],[71,76,77,78,79],"tool","build tool","build","frontend",{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":27},"01M70G0HAFQC4K6N14B5CWPMQ2","typescript","Typed JavaScript.","https:\u002F\u002Fgithub.com\u002Fdhaupin\u002Fvant\u002Fblob\u002Fmain\u002Fmodels\u002Fpublic\u002Fvant\u002Fskills\u002Fvant-skill-typescript\u002FSKILL.md",[],[82,87],"javascript",{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":27},"01M70G0CH5E4PVJ62YBP7WKV44","test-unit","Test individual functions and methods in isolation. Test happy path, edge cases, and error handling. Use when adding new functions, after bug fixes, or before commits.","https:\u002F\u002Fgithub.com\u002Fdhaupin\u002Fvant\u002Fblob\u002Fmain\u002Fmodels\u002Fpublic\u002Fvant\u002Fskills\u002Fvant-skill-test-unit\u002FSKILL.md",[],[95,96,97,98,99,100,101,102,103,104,105,106,107,108,109],"unit","test","test unit","when","error","commits","fixes","methods","edge","use","error handling","functions","bug","isolation","path",{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":27},"01M70G08P5CPCX3B3RJFF9VJC2","test-snapshot","Capture and compare UI\u002Fcomponent snapshots to detect visual changes. Use when testing UI rendering, before visual changes, or for design systems.","https:\u002F\u002Fgithub.com\u002Fdhaupin\u002Fvant\u002Fblob\u002Fmain\u002Fmodels\u002Fpublic\u002Fvant\u002Fskills\u002Fvant-skill-test-snapshot\u002FSKILL.md",[],[117,118,96,119,120,121,122,123,124,104,125,126,98,127,128,129,130,131,132,133],"test snapshot","snapshot","capture","ui","for","testing ui","testing","design","design systems","snapshots","visual","compare","component","changes","detect","rendering","systems",{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":27},"01M70G03WAR8HYBH7R2AZJRPCZ","test-smoke","Quick sanity check to verify basic functionality works. Run fastest tests first. Use when needing quick verification before deeper testing.","https:\u002F\u002Fgithub.com\u002Fdhaupin\u002Fvant\u002Fblob\u002Fmain\u002Fmodels\u002Fpublic\u002Fvant\u002Fskills\u002Fvant-skill-test-smoke\u002FSKILL.md",[],[96,141,142,143,144,145,123,146,104,98,147,148,149,150,151,152],"test smoke","smoke","quick","deeper","basic","tests","check","sanity","verification","first","verify","run"]