[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73C29CJ0EJ8H0XRWQJW7MTT":3,"skill-same:01M73C29CJ0EJ8H0XRWQJW7MTT":87},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":8,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":14,"categories":15,"keywords":16,"publishedAt":17,"linkOnly":18,"markdownContent":19,"markdownBody":20,"frontMatter":21,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":12,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":52,"install":53,"resources":66},"01M73C29CJ0EJ8H0XRWQJW7MTT","code-review-and-quality",null,"ngdletrung\u002FJKAI-Zenith","ngdletrung","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F88302940?v=4","01M73BJVV5QJ87R3MC4BXJMWDN","01M73BJVWAAM03TM18QHKRDAMH",0,"MIT","https:\u002F\u002Fgithub.com\u002Fngdletrung\u002FJKAI-Zenith\u002Fblob\u002Fmain\u002Fintelligence\u002Fskills\u002FSECURITY\u002Fcode-review-and-quality\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nid: CODE_REVIEW_AND_QUALITY\nname_vn: \"Rà soát chất lượng và kiểm toán mã nguồn\"\nversion: 1.0.0\ndomain: SECURITY\nintent_pairs:\n  - [\"ANALYZE\", \"CODE\"]\n  - [\"REVIEW\", \"CODE\"]\naliases_vn: [\"nghiệm thu code\", \"code review\", \"chất lượng code\"]\nschema:\n  parameters:\n    type: object\n    properties:\n      target: { type: string, description: \"Đối tượng hoặc phạm vi mã nguồn cần review\" }\n    required: [\"target\"]\nassigned_agent: agent_critic.md\npriority: HIGH\n---\n\n# Code Review and Quality\n\nMulti-dimensional code review with quality gates. Every change gets reviewed before merge. Review covers five axes: correctness, readability, architecture, security, and performance.\n\nThe approval standard: Approve a change when it definitely improves overall code health, even if it isn't perfect. Perfect code doesn't exist.\n\n## When to Use\n\n- Use before merging any PR or change.\n- Use after completing a feature implementation.\n- Use when another agent or model produced code you need to evaluate.\n- Use when refactoring existing code.\n- Use after any bug fix (review both the fix and the regression test).\n\n## The Code Review Workflow\n\nEvaluate the code systematically across these five dimensions:\n\n### 1. Correctness\nDoes the code do what it claims to do?\n- Does it match the spec or task requirements?\n- Are edge cases handled (null, empty, boundary values)?\n- Are error paths handled (not just the happy path)?\n- Does it pass all tests?\n- Are there off-by-one errors, race conditions, or state inconsistencies?\n\n### 2. Readability & Simplicity\nCan another engineer (or agent) understand this code without the author explaining it?\n- Are names descriptive and consistent with project conventions?\n- Is the control flow straightforward?\n- Is the code organized logically?\n- Are there any clever tricks that should be simplified?\n- Could this be done in fewer lines?\n- Are abstractions earning their complexity?\n- Would comments help clarify non-obvious intent?\n- Are there dead code artifacts: no-op variables, backwards-compat shims, or removed comments?\n\n### 3. Architecture\nDoes the change fit the system's design?\n- Does it follow existing patterns or introduce a new one?\n- Does it maintain clean module boundaries?\n- Is there code duplication that should be shared?\n- Are dependencies flowing in the right direction?\n- Is the abstraction level appropriate?\n\n### 4. Security\nDoes the change introduce vulnerabilities?\n- Is user input validated and sanitized?\n- Are secrets kept out of code, logs, and version control?\n- Is authentication\u002Fauthorization checked where needed?\n- Are SQL queries parameterized?\n- Are outputs encoded to prevent XSS?\n- Are dependencies from trusted sources?\n- Is data from external sources treated as untrusted?\n- Are external data flows validated at system boundaries before use?\n\n### 5. Performance\nDoes the change introduce performance problems?\n- Any N+1 query patterns?\n- Any unbounded loops or unconstrained data fetching?\n- Any synchronous operations that should be async?\n- Any unnecessary re-renders in UI components?\n- Any missing pagination on list endpoints?\n- Any large objects created in hot paths?\n\n### Change Sizing\nSmall, focused changes are easier to review, faster to merge, and safer to deploy. Target these sizes:\n- ~100 lines changed: Good.\n- ~300 lines changed: Acceptable if it's a single logical change.\n- ~1000 lines changed: Too large. Split it.\n\n## Anti-Rationalization (Chống Ngụy Biện)\n\n| Rationalization | Reality |\n|---|---|\n| \"This change is too small to review\" | Even minor changes can introduce fatal security flaws or logic bugs. Every line counts. |\n| \"I will fix the style issues in a later commit\" | Postponed quality fixes almost never happen. Do it right the first time. |\n| \"It works, so the architecture doesn't matter\" | Poor architecture builds up tech debt rapidly, making future changes impossible. |\n| \"There is no time to run a security scan\" | Security is not an optional add-on. A fast automated sanity check is mandatory. |\n\n## Red Flags\n\n- PRs merged without any review\n- Review that only checks if tests pass (ignoring other axes)\n- LGTM without evidence of actual review\n- Security-sensitive changes without security-focused review\n- Large PRs that are too big to review properly\n- No regression tests with bug fix PRs\n- Review comments without severity labels\n- Accepting \"I'll fix it later\" — it never happens\n\n## Exit Criteria & Verification\n\nBefore approving a code review:\n\n- [ ] Code checked across Correctness, Readability, Architecture, Security, and Performance.\n- [ ] Automated tests pass and linter checks run cleanly.\n- [ ] Sizing verified (large PRs split or strategically audited).\n- [ ] No red flags present in the implemented codebase.\n\n---\n## Sovereign Laws\n- Skill nay duoc dong hoa tu agent-skills (MIT License - Addy Osmani).\n- Moi hanh vi cua JKAI khi kich hoat skill #6015 phai tuan thu giao thuc tren.\n- Khong dua ra ket qua cuoi cung neu chua hoan thanh checklist cuoi muc Verification.\n\n*Deck #6015 | Property of Master LeeTrung | JKAI Zenith*\n","# Code Review and Quality\n\nMulti-dimensional code review with quality gates. Every change gets reviewed before merge. Review covers five axes: correctness, readability, architecture, security, and performance.\n\nThe approval standard: Approve a change when it definitely improves overall code health, even if it isn't perfect. Perfect code doesn't exist.\n\n## When to Use\n\n- Use before merging any PR or change.\n- Use after completing a feature implementation.\n- Use when another agent or model produced code you need to evaluate.\n- Use when refactoring existing code.\n- Use after any bug fix (review both the fix and the regression test).\n\n## The Code Review Workflow\n\nEvaluate the code systematically across these five dimensions:\n\n### 1. Correctness\nDoes the code do what it claims to do?\n- Does it match the spec or task requirements?\n- Are edge cases handled (null, empty, boundary values)?\n- Are error paths handled (not just the happy path)?\n- Does it pass all tests?\n- Are there off-by-one errors, race conditions, or state inconsistencies?\n\n### 2. Readability & Simplicity\nCan another engineer (or agent) understand this code without the author explaining it?\n- Are names descriptive and consistent with project conventions?\n- Is the control flow straightforward?\n- Is the code organized logically?\n- Are there any clever tricks that should be simplified?\n- Could this be done in fewer lines?\n- Are abstractions earning their complexity?\n- Would comments help clarify non-obvious intent?\n- Are there dead code artifacts: no-op variables, backwards-compat shims, or removed comments?\n\n### 3. Architecture\nDoes the change fit the system's design?\n- Does it follow existing patterns or introduce a new one?\n- Does it maintain clean module boundaries?\n- Is there code duplication that should be shared?\n- Are dependencies flowing in the right direction?\n- Is the abstraction level appropriate?\n\n### 4. Security\nDoes the change introduce vulnerabilities?\n- Is user input validated and sanitized?\n- Are secrets kept out of code, logs, and version control?\n- Is authentication\u002Fauthorization checked where needed?\n- Are SQL queries parameterized?\n- Are outputs encoded to prevent XSS?\n- Are dependencies from trusted sources?\n- Is data from external sources treated as untrusted?\n- Are external data flows validated at system boundaries before use?\n\n### 5. Performance\nDoes the change introduce performance problems?\n- Any N+1 query patterns?\n- Any unbounded loops or unconstrained data fetching?\n- Any synchronous operations that should be async?\n- Any unnecessary re-renders in UI components?\n- Any missing pagination on list endpoints?\n- Any large objects created in hot paths?\n\n### Change Sizing\nSmall, focused changes are easier to review, faster to merge, and safer to deploy. Target these sizes:\n- ~100 lines changed: Good.\n- ~300 lines changed: Acceptable if it's a single logical change.\n- ~1000 lines changed: Too large. Split it.\n\n## Anti-Rationalization (Chống Ngụy Biện)\n\n| Rationalization | Reality |\n|---|---|\n| \"This change is too small to review\" | Even minor changes can introduce fatal security flaws or logic bugs. Every line counts. |\n| \"I will fix the style issues in a later commit\" | Postponed quality fixes almost never happen. Do it right the first time. |\n| \"It works, so the architecture doesn't matter\" | Poor architecture builds up tech debt rapidly, making future changes impossible. |\n| \"There is no time to run a security scan\" | Security is not an optional add-on. A fast automated sanity check is mandatory. |\n\n## Red Flags\n\n- PRs merged without any review\n- Review that only checks if tests pass (ignoring other axes)\n- LGTM without evidence of actual review\n- Security-sensitive changes without security-focused review\n- Large PRs that are too big to review properly\n- No regression tests with bug fix PRs\n- Review comments without severity labels\n- Accepting \"I'll fix it later\" — it never happens\n\n## Exit Criteria & Verification\n\nBefore approving a code review:\n\n- [ ] Code checked across Correctness, Readability, Architecture, Security, and Performance.\n- [ ] Automated tests pass and linter checks run cleanly.\n- [ ] Sizing verified (large PRs split or strategically audited).\n- [ ] No red flags present in the implemented codebase.\n\n---\n## Sovereign Laws\n- Skill nay duoc dong hoa tu agent-skills (MIT License - Addy Osmani).\n- Moi hanh vi cua JKAI khi kich hoat skill #6015 phai tuan thu giao thuc tren.\n- Khong dua ra ket qua cuoi cung neu chua hoan thanh checklist cuoi muc Verification.\n\n*Deck #6015 | Property of Master LeeTrung | JKAI Zenith*\n",{"id":22,"domain":23,"schema":24,"name_vn":33,"version":34,"priority":35,"aliases_vn":36,"intent_pairs":40,"assigned_agent":46},"CODE_REVIEW_AND_QUALITY","SECURITY",{"parameters":25},{"type":26,"required":27,"properties":29},"object",[28],"target",{"target":30},{"type":31,"description":32},"string","Đối tượng hoặc phạm vi mã nguồn cần review","Rà soát chất lượng và kiểm toán mã nguồn","1.0.0","HIGH",[37,38,39],"nghiệm thu code","code review","chất lượng code",[41,44],[42,43],"ANALYZE","CODE",[45,43],"REVIEW","agent_critic.md","main","571327a911ec45873180fd5628525b6d4504ed79","intelligence\u002Fskills\u002FSECURITY\u002Fcode-review-and-quality","https:\u002F\u002Fgithub.com\u002Fngdletrung\u002FJKAI-Zenith","https:\u002F\u002Fgithub.com\u002Fngdletrung","2026-11-08 11:23:33",{"source":7,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add ngdletrung\u002FJKAI-Zenith --skill code-review-and-quality",{"tool":59,"command":60},"bunx","bunx skills add ngdletrung\u002FJKAI-Zenith --skill code-review-and-quality",{"tool":62,"command":63},"pnpm","pnpm dlx skills add ngdletrung\u002FJKAI-Zenith --skill code-review-and-quality","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fngdletrung\u002FJKAI-Zenith\u002Fblob\u002Fmain\u002Fintelligence\u002Fskills\u002FSECURITY\u002Fcode-review-and-quality\u002FSKILL.md",true,[67,73,79,83],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"__init__.py","SCRIPT","脚本",27,"https:\u002F\u002Fgithub.com\u002Fngdletrung\u002FJKAI-Zenith\u002Fblob\u002Fmain\u002Fintelligence\u002Fskills\u002FSECURITY\u002Fcode-review-and-quality\u002F__init__.py",{"path":74,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":77,"sourceHtmlUrl":78},"dossier.md","REFERENCE","参考文档",4139,"https:\u002F\u002Fgithub.com\u002Fngdletrung\u002FJKAI-Zenith\u002Fblob\u002Fmain\u002Fintelligence\u002Fskills\u002FSECURITY\u002Fcode-review-and-quality\u002Fdossier.md",{"path":80,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":81,"sourceHtmlUrl":82},"logic.py",463,"https:\u002F\u002Fgithub.com\u002Fngdletrung\u002FJKAI-Zenith\u002Fblob\u002Fmain\u002Fintelligence\u002Fskills\u002FSECURITY\u002Fcode-review-and-quality\u002Flogic.py",{"path":84,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":85,"sourceHtmlUrl":86},"manifest.json",912,"https:\u002F\u002Fgithub.com\u002Fngdletrung\u002FJKAI-Zenith\u002Fblob\u002Fmain\u002Fintelligence\u002Fskills\u002FSECURITY\u002Fcode-review-and-quality\u002Fmanifest.json",[88,95,101,108,114,120],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":8,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":17},"01M73C2NC1W5P3A0V3GQAJ0SJB","standard_plugin","Hướng dẫn kích hoạt và vận hành cho kỹ năng standard_plugin.","https:\u002F\u002Fgithub.com\u002Fngdletrung\u002FJKAI-Zenith\u002Fblob\u002Fmain\u002Fintelligence\u002Fskills\u002Ftemplates\u002Fstandard_plugin\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":8,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":17},"01M73C2KAN3Q7D5XEBKB3KZW1B","_STANDARD","https:\u002F\u002Fgithub.com\u002Fngdletrung\u002FJKAI-Zenith\u002Fblob\u002Fmain\u002Fintelligence\u002Fskills\u002F_STANDARD\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":8,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":17},"01M73C2HV7KDJQTA6ACCR10HZB","test_dynamic_audit","Thao tác kiểm toán động","https:\u002F\u002Fgithub.com\u002Fngdletrung\u002FJKAI-Zenith\u002Fblob\u002Fmain\u002Fintelligence\u002Fskills\u002FTEST\u002Ftest_dynamic_audit\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":8,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":17},"01M73C2FRG0JHZ6W155V1KCHRP","security-audit","https:\u002F\u002Fgithub.com\u002Fngdletrung\u002FJKAI-Zenith\u002Fblob\u002Fmain\u002Fintelligence\u002Fskills\u002FSECURITY\u002Fsecurity-audit\u002FSKILL.md",[],[],{"skillNo":115,"name":116,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":8,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":17},"01M73C2EMWYHFTAR9RSZ41TBGP","security-and-hardening","https:\u002F\u002Fgithub.com\u002Fngdletrung\u002FJKAI-Zenith\u002Fblob\u002Fmain\u002Fintelligence\u002Fskills\u002FSECURITY\u002Fsecurity-and-hardening\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":8,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":17},"01M73C2CV0BQ59NAEWXKBQ370Z","performance-optimization","https:\u002F\u002Fgithub.com\u002Fngdletrung\u002FJKAI-Zenith\u002Fblob\u002Fmain\u002Fintelligence\u002Fskills\u002FSECURITY\u002Fperformance-optimization\u002FSKILL.md",[],[]]