[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AVEF0HKTH61QEP85JB0EV4":3,"skill-same:01M7AVEF0HKTH61QEP85JB0EV4":56},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":14,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":41,"install":42,"resources":55},"01M7AVEF0HKTH61QEP85JB0EV4","code-review-and-quality",null,"Use before merge, after subagent work, or when asked for a code review. Bloat Review mode hunts over-engineering only (delete-list with tagged findings).","MinhDuyDEV\u002Fmd-pikit","MinhDuyDEV","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F94704296?v=4","01M7AVDRJB5JM5VG5B6K49X0EZ","Nguyễn Viết Minh Duy","01M7AVDRKDB3JPGHFE4HGK1Z5M",0,"MIT","https:\u002F\u002Fgithub.com\u002FMinhDuyDEV\u002Fmd-pikit\u002Fblob\u002Fmain\u002F.pi\u002Fskills\u002Fcode-review-and-quality\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: code-review-and-quality\ndescription: Use before merge, after subagent work, or when asked for a code review. Bloat Review mode hunts over-engineering only (delete-list with tagged findings).\nversion: 1.0.0\ntags: [review, code-quality, verification]\ndependencies: [verification-before-completion]\nagent_types: [reviewer]\ntools: [read, bash]\n---\n\n# Code Review & Quality\n\n## Core Principle\n\n**Bloat is the default failure mode.** The goal is a tight, minimal change that solves the stated problem — nothing more. A review that lists nits without identifying deletion candidates has missed the point.\n\n## Two Review Modes\n\n### 1. Standard Review\n\nBefore merge. Findings tagged `[blocker]`, `[should-fix]`, `[nit]`, `[question]`. For `[blocker]`, name the violated invariant and the smallest fix. For `[should-fix]`, name why it matters and the cost of leaving it.\n\n### 2. Bloat Review\n\nFor AI-generated code, after a refactor, or when scope may have crept. Output a **delete-list** tagged `[delete]`, `[simplify]`, `[keep-with-reason]`. Default for any line that does not serve the stated problem is `[delete]`.\n\n## Workflow\n\n1. **Scope check** — diff match stated problem? Outside is `[blocker]` (split) or `[delete]`.\n2. **Iron-law scan** — domain-relevant iron law followed? (TDD: failing test first. Effect: typed errors. UI: design taste. Performance: profile first.)\n3. **Read for deletion** — \"If I delete this, what breaks?\" If nothing, it's bloat.\n4. **Verify behavior** — test pass? Path exercised? `[question]` if unsure.\n5. **Mark dead** — unused exports, dead branches, ownerless TODOs, restating comments.\n6. **Verify in one pass** — typecheck + lint + relevant test.\n\n## Delete-List Categories\n\n| Tag | Meaning | Action |\n| --- | --- | --- |\n| `[delete]` | Unused \u002F dead \u002F speculative | Remove |\n| `[simplify]` | Works but over-engineered | Reduce |\n| `[keep-with-reason]` | Looks bloat, is load-bearing | Justify, or move to `[delete]` |\n\n## Iron Laws by Domain\n\n| Domain | Iron law |\n| --- | --- |\n| Any feature \u002F bugfix | Failing test first (`test-driven-development`) |\n| TS \u002F JS with Effect | Typed errors, no `any` (`typescript-coding-standards`) |\n| React \u002F Next.js | Server components, bundle discipline (`frontend-design`) |\n| UI | Match form to failure (`writing-skills`); visual grammar (`frontend-design`) |\n| Performance | Measure before optimizing (`performance-optimization`) |\n| Security | Validate at every layer (`security-and-hardening`) |\n\n## Red Flags (Bloat)\n\nAbstraction with one call site; wrapper that does nothing; restating comment; helper \"for future use\" with no caller; generic name (`helper`, `util`, `manager`) hiding intent; feature flag never toggled; \"might need this\" branches; AI-shaped comments; `as any` casts; tests that mock the behavior they claim to test.\n\n## Anti-Patterns\n\nLGTM-by-default (review passes when nothing flagged); style nits as review (run the linter); scope creep (fixing unrelated issues — note `[NOTICED BUT NOT TOUCHING]`, don't fix); approving-vibes review (\"looks good\" without evidence — cite test runs, paths, lines).\n\n## Self-Quiz\n\nDid I test for a `[delete]` \u002F `[simplify]` candidate? If none is supported, say why; never invent a finding. Are all `[blocker]`s named with the violated invariant? Did I run the verification command and see it pass? Are unrelated fixes `[NOTICED BUT NOT TOUCHING]`, not silently merged?\n\n## Skill Result Contract\n\n```\n\u003Cskill_result>\n  \u003Cskill>code-review-and-quality\u003C\u002Fskill>\n  \u003Cstatus>success|partial|blocked|failure\u003C\u002Fstatus>\n  \u003Cevidence>Tagged findings, verification run, delete-list (Bloat)\u003C\u002Fevidence>\n  \u003Cartifacts>Review with tagged findings\u003C\u002Fartifacts>\n  \u003Crisks>Untested claims, scope creep, LGTM-by-default, none\u003C\u002Frisks>\n\u003C\u002Fskill_result>\n```\n","# Code Review & Quality\n\n## Core Principle\n\n**Bloat is the default failure mode.** The goal is a tight, minimal change that solves the stated problem — nothing more. A review that lists nits without identifying deletion candidates has missed the point.\n\n## Two Review Modes\n\n### 1. Standard Review\n\nBefore merge. Findings tagged `[blocker]`, `[should-fix]`, `[nit]`, `[question]`. For `[blocker]`, name the violated invariant and the smallest fix. For `[should-fix]`, name why it matters and the cost of leaving it.\n\n### 2. Bloat Review\n\nFor AI-generated code, after a refactor, or when scope may have crept. Output a **delete-list** tagged `[delete]`, `[simplify]`, `[keep-with-reason]`. Default for any line that does not serve the stated problem is `[delete]`.\n\n## Workflow\n\n1. **Scope check** — diff match stated problem? Outside is `[blocker]` (split) or `[delete]`.\n2. **Iron-law scan** — domain-relevant iron law followed? (TDD: failing test first. Effect: typed errors. UI: design taste. Performance: profile first.)\n3. **Read for deletion** — \"If I delete this, what breaks?\" If nothing, it's bloat.\n4. **Verify behavior** — test pass? Path exercised? `[question]` if unsure.\n5. **Mark dead** — unused exports, dead branches, ownerless TODOs, restating comments.\n6. **Verify in one pass** — typecheck + lint + relevant test.\n\n## Delete-List Categories\n\n| Tag | Meaning | Action |\n| --- | --- | --- |\n| `[delete]` | Unused \u002F dead \u002F speculative | Remove |\n| `[simplify]` | Works but over-engineered | Reduce |\n| `[keep-with-reason]` | Looks bloat, is load-bearing | Justify, or move to `[delete]` |\n\n## Iron Laws by Domain\n\n| Domain | Iron law |\n| --- | --- |\n| Any feature \u002F bugfix | Failing test first (`test-driven-development`) |\n| TS \u002F JS with Effect | Typed errors, no `any` (`typescript-coding-standards`) |\n| React \u002F Next.js | Server components, bundle discipline (`frontend-design`) |\n| UI | Match form to failure (`writing-skills`); visual grammar (`frontend-design`) |\n| Performance | Measure before optimizing (`performance-optimization`) |\n| Security | Validate at every layer (`security-and-hardening`) |\n\n## Red Flags (Bloat)\n\nAbstraction with one call site; wrapper that does nothing; restating comment; helper \"for future use\" with no caller; generic name (`helper`, `util`, `manager`) hiding intent; feature flag never toggled; \"might need this\" branches; AI-shaped comments; `as any` casts; tests that mock the behavior they claim to test.\n\n## Anti-Patterns\n\nLGTM-by-default (review passes when nothing flagged); style nits as review (run the linter); scope creep (fixing unrelated issues — note `[NOTICED BUT NOT TOUCHING]`, don't fix); approving-vibes review (\"looks good\" without evidence — cite test runs, paths, lines).\n\n## Self-Quiz\n\nDid I test for a `[delete]` \u002F `[simplify]` candidate? If none is supported, say why; never invent a finding. Are all `[blocker]`s named with the violated invariant? Did I run the verification command and see it pass? Are unrelated fixes `[NOTICED BUT NOT TOUCHING]`, not silently merged?\n\n## Skill Result Contract\n\n```\n\u003Cskill_result>\n  \u003Cskill>code-review-and-quality\u003C\u002Fskill>\n  \u003Cstatus>success|partial|blocked|failure\u003C\u002Fstatus>\n  \u003Cevidence>Tagged findings, verification run, delete-list (Bloat)\u003C\u002Fevidence>\n  \u003Cartifacts>Review with tagged findings\u003C\u002Fartifacts>\n  \u003Crisks>Untested claims, scope creep, LGTM-by-default, none\u003C\u002Frisks>\n\u003C\u002Fskill_result>\n```\n",{"name":5,"tags":24,"tools":28,"version":31,"agent_types":32,"description":7,"dependencies":34},[25,26,27],"review","code-quality","verification",[29,30],"read","bash","1.0.0",[33],"reviewer",[35],"verification-before-completion","main","01207a96514af9f9c4d7d6cb594b936c6a9ddb10",".pi\u002Fskills\u002Fcode-review-and-quality","https:\u002F\u002Fgithub.com\u002FMinhDuyDEV\u002Fmd-pikit","https:\u002F\u002Fgithub.com\u002FMinhDuyDEV","2026-08-20 02:00:33",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add MinhDuyDEV\u002Fmd-pikit --skill code-review-and-quality",{"tool":48,"command":49},"bunx","bunx skills add MinhDuyDEV\u002Fmd-pikit --skill code-review-and-quality",{"tool":51,"command":52},"pnpm","pnpm dlx skills add MinhDuyDEV\u002Fmd-pikit --skill code-review-and-quality","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMinhDuyDEV\u002Fmd-pikit\u002Fblob\u002Fmain\u002F.pi\u002Fskills\u002Fcode-review-and-quality\u002FSKILL.md",true,[],[57,64,70,77,84,91],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7AVGJR1RSRVA3VJT8ZW4Y27","writing-skills","Use when creating new skills, editing existing skills, or verifying skills work before deployment - applies TDD to process documentation by testing with subagents before writing, iterating until bulletproof against rationalization. Includes complete pressure testing methodology.","https:\u002F\u002Fgithub.com\u002FMinhDuyDEV\u002Fmd-pikit\u002Fblob\u002Fmain\u002F.pi\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[],[],{"skillNo":65,"name":35,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7AVGE076BNB3J7JDBGAKD2T","Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always","https:\u002F\u002Fgithub.com\u002FMinhDuyDEV\u002Fmd-pikit\u002Fblob\u002Fmain\u002F.pi\u002Fskills\u002Fverification-before-completion\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7AVGAYJ6APXRB9QWBG7482S","typescript-coding-standards","Use when writing, refactoring, or reviewing TypeScript code that needs strong domain modeling, typed errors, schema parsing, safe adapters, test seams, or maintainable module boundaries.","https:\u002F\u002Fgithub.com\u002FMinhDuyDEV\u002Fmd-pikit\u002Fblob\u002Fmain\u002F.pi\u002Fskills\u002Ftypescript-coding-standards\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7AVG8CE5BTR2CRFPHHVJCJZ","test-driven-development","Use when implementing a feature, bugfix, or behavior-changing refactor — require a failing behavior test before production code, then make the smallest change that passes.","https:\u002F\u002Fgithub.com\u002FMinhDuyDEV\u002Fmd-pikit\u002Fblob\u002Fmain\u002F.pi\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7AVG5FJH3WTG9XR2G0608ND","source-driven-development","Use when unfamiliar libraries, dependency internals, external APIs, framework behavior, migrations, or current ecosystem guidance require official documentation, version-matched source, read the tests, and cited evidence.","https:\u002F\u002Fgithub.com\u002FMinhDuyDEV\u002Fmd-pikit\u002Fblob\u002Fmain\u002F.pi\u002Fskills\u002Fsource-driven-development\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"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":19},"01M7AVG37PZ77CF35KAR6E93ZJ","security-and-hardening","Use when auditing security, implementing authentication or authorization, handling secrets, or validating data across external trust boundaries.","https:\u002F\u002Fgithub.com\u002FMinhDuyDEV\u002Fmd-pikit\u002Fblob\u002Fmain\u002F.pi\u002Fskills\u002Fsecurity-and-hardening\u002FSKILL.md",[],[]]