[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71MXQ06V9T96NM971RN637P":3,"skill-same:01M71MXQ06V9T96NM971RN637P":131},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":54,"commitSha":55,"skillDirectory":56,"forksCount":57,"repositoryHtmlUrl":58,"repositoryHomepageUrl":6,"ownerHtmlUrl":59,"ownerBlogUrl":60,"ownerDescription":61,"updatedAt":62,"install":63,"resources":76},"01M71MXQ06V9T96NM971RN637P","code-review",null,"Use when the user wants a code review of a branch, PR, MR, or working diff against its acceptance criteria and declared scope, in whatever form they take in this repo. Triggers on \"review my branch\", \"review this PR\", \"check this diff before I raise it\", \"is this ready to merge\". Works with any language, delivery process, or issue tracker. Produces a structured verdict with blocking, warning, and suggestion findings; writes no source changes. Do NOT use to address or fix review findings (code-review-fix), to implement work (implement), to publish a review to a provider as its reviewer (merge-request-review), to sign off completion of a larger body of work (validate), or to review rendered UI (ux-design-review).","carinyadigital\u002Fskills","carinyadigital","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F185663942?v=4","01M71MWSF49DXG75MCNJ5D9CE2","Carinya Digital","01M71MWSFRXEATZ2MQGKD8A2S2",2,"MIT","https:\u002F\u002Fgithub.com\u002Fcarinyadigital\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcode-review\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"code","review","code review","do","as","full","ui","issue","git","take","write","read","tracker","MCP","design","fix","review findings","branch","reviews","ready","2026-11-10 10:56:23",false,"---\nname: code-review\ndescription: >\n  Use when the user wants a code review of a branch, PR, MR, or working diff\n  against its acceptance criteria and declared scope, in whatever form they take\n  in this repo. Triggers on \"review my branch\", \"review this PR\", \"check this\n  diff before I raise it\", \"is this ready to merge\". Works with any language,\n  delivery process, or issue tracker. Produces a structured verdict with\n  blocking, warning, and suggestion findings; writes no source changes. Do NOT\n  use to address or fix review findings (code-review-fix), to implement work\n  (implement), to publish a review to a provider as its reviewer\n  (merge-request-review), to sign off completion of a larger body of work\n  (validate), or to review rendered UI (ux-design-review).\nlicense: MIT\ncompatibility: Requires git. Hosted PR\u002FMR features require gh, glab, or an equivalent provider MCP tool.\nallowed-tools: Read Glob Grep WebFetch Bash(git:*) Bash(gh:*) Bash(glab:*) Write(docs\u002Freviews\u002F**) Write(docs\u002Fwork\u002F**\u002Freviews\u002F**)\nargument-hint: \"[branch-or-pr] [--since \u003Csha>] [--full]\"\nmetadata:\n  author: Carinya Parc\n  version: \"1.0\"\n  owner: web-development\n  work_shape: review-and-gate\n  output_class: decision-support\n---\n\n# Code review\n\nYou are a Senior Software Engineer reviewing a change. You judge the code and\nreport. You do not change it.\n\n## Read-only contract\n\nThis skill writes exactly two things: an entry in the shared review-tracking\nfile at `docs\u002Freviews\u002Fcode-review.local.json`, and a human-readable report at\n`docs\u002Fwork\u002F{work-item}\u002Freviews\u002Fcode-review-{nn}.local.md` (or\n`docs\u002Freviews\u002Fcode-review-{branch}.local.md` when no work item resolved). It\nMUST NOT modify source, tests, configuration, or documentation, and MUST NOT\ncommit, push, or comment on a provider.\n\nWhen the review is done, point the reader at `code-review-fix` to action the\nfindings. Naming the next step is not the same as taking it — do not invoke it,\nand do not offer a mode that would.\n\n## Steps\n\n1. **Eligibility** — decide whether to review at all, and how hard.\n2. **Context** — build the Review Context bundle once.\n3. **Summary** — describe the change and size the review.\n4. **Lenses** — inline review, or parallel sub-agents.\n5. **Merge** — dedupe and consolidate candidate findings.\n6. **Verify** — rate each candidate independently.\n7. **Gate** — apply the risk matrix, assign action labels.\n8. **Report** — produce the verdict, persist review state.\n\n---\n\n## 1. Eligibility\n\nCheap checks first. Do not spend six agents on a lockfile bump.\n\n**Skip entirely**, saying why in one line:\n\n- PR\u002FMR is closed or already merged.\n- PR\u002FMR is a draft, unless the user asked explicitly.\n- The diff is empty, or contains only generated files, lockfiles, or vendored\n  dependencies.\n- Authored by a bot and touching nothing else.\n\n**Reduce scope** rather than skipping:\n\n- If `docs\u002Freviews\u002Fcode-review.local.json` has an entry for this branch and\n  `--full` was not passed, this is an **incremental** review. Review the delta\n  from the recorded SHA. See\n  [references\u002Fcontext-resolution.md](references\u002Fcontext-resolution.md) §6.\n\n## 2. Context\n\nBuild the Review Context bundle following\n[references\u002Fcontext-resolution.md](references\u002Fcontext-resolution.md): intent,\nacceptance criteria, scope reference, guidelines, CI signal and existing analysis\noutput, review state, and applicable learnings.\n\nGather **once**. Pass the bundle to every sub-agent. Do not let agents re-fetch\nit — duplicated discovery is the main way a parallel review wastes its budget.\n\nDefault scope: `git diff`. The user may name a branch, PR, MR, or file list.\n\n## 3. Summary and effort\n\nWrite the change summary before reviewing. It orients the reader and it sizes\neverything downstream.\n\nRate effort from lines changed, files touched, and whether the diff reaches\nsecurity-sensitive paths (auth, crypto, input handling) or data paths\n(migrations, schemas, persisted payloads):\n\n| Effort | Shape | Lens budget | Verification |\n| ------ | ----- | ----------- | ------------ |\n| **S** | \u003C ~50 lines, \u003C ~5 files, no sensitive or data paths | Inline only, no sub-agents | Your own judgement (no priors to check) |\n| **M** | Ordinary feature or fix | At most 3 lenses: `bug-scan`, then the two highest-value triggered | Blocking and warning candidates |\n| **L** | Large, structural, security-sensitive, or data-affecting | Every triggered agent | Every candidate |\n\nSensitive or data paths force **L** regardless of size. A three-line change to a\nmigration or an auth check is not a small review.\n\n**Effort caps and triggers are ANDed.** Effort sets the ceiling on how many\nlenses may run; the trigger table in §4.1 decides which are eligible. A lens runs\nonly if it is both triggered and within budget. At **M**, when more than three\ntrigger, keep `bug-scan` and choose the two with the strongest input: a resolved\nacceptance criterion or a guideline file beats a speculative architecture pass.\n\n## 4. Lenses\n\nAt **S**, review inline using the steps in §4.2 and skip to §5.\n\n### 4.1 Sub-agents\n\nSpawn in parallel. Only those whose trigger fires — never all of them by reflex.\n\nFive lenses and one verifier. Each lens owns a distinct **input source**; that is\nwhat earns it a separate context window, not the topic it covers.\n\n| Agent | Reads | Trigger | Tier |\n| ----- | ----- | ------- | ---- |\n| [bug-scan-reviewer](agents\u002Fbug-scan-reviewer.md) | Diff hunks, git blame | Always, whenever spawning | standard |\n| [requirements-reviewer](agents\u002Frequirements-reviewer.md) | Acceptance criteria, scope reference | Criteria **or** a scope\u002Fdesign reference was resolved in §2 | standard |\n| [conventions-reviewer](agents\u002Fconventions-reviewer.md) | AGENTS.md\u002FCLAUDE.md\u002Frules, prior PR review comments | Repo has guideline files, **or** hosted PR with prior history on the touched files | standard |\n| [best-practices-reviewer](agents\u002Fbest-practices-reviewer.md) | External library docs | Manifest or lockfile changed, **or** the diff introduces an import not already used in that module | standard |\n| [architecture-reviewer](agents\u002Farchitecture-reviewer.md) | Sibling modules, architecture docs, ADRs | Diff adds modules, crosses layer boundaries, or adds cross-component dependencies | standard |\n| [finding-verifier](agents\u002Ffinding-verifier.md) | One candidate finding, in isolation | Once per candidate, at step 6 | fast |\n\nTwo lenses each cover both directions of one question, which is why there are\nfive rather than seven. `requirements-reviewer` checks both under-delivery\n(uncovered criteria) and over-delivery (scope drift) against the same resolved\nsource — and can therefore spot when an unmapped hunk *is* the uncovered\ncriterion, built in the wrong place. `conventions-reviewer` reads both written\nrules and rules that were only ever said in a past review comment; both produce\n\"your team requires X, here is the source\".\n\n`finding-verifier` is not a lens. It is a pipeline stage whose value comes\nentirely from isolation, so it can never be merged into anything.\n\nThe `best-practices` trigger is deliberately narrow: it is the only lens that\nreaches the network, and \"touches a library\" fires on nearly every diff.\n\n**Model tiers** are declared as `metadata.model_tier` on each agent rather than\nas model names, so runners without model selection inherit and still work:\n\n| Tier | Use | Claude mapping | Where |\n| ---- | --- | -------------- | ----- |\n| fast | Mechanical predicates, retrieval, summarisation, per-finding verification | Haiku | Steps 1–3, `finding-verifier` |\n| standard | Judgement against a bounded context | Sonnet | All five lenses |\n| deep | Whole-system reasoning | Opus | Synthesis only (steps 5–8) |\n\nNo sub-agent runs at `deep`. Every lens works within a bounded context and an\nexplicit reading budget, which is exactly what a standard-tier model handles\nwell. Depth is needed where the whole picture comes together — merging,\ngating, and writing the verdict — and that runs on the session's own model, not\nin a sub-agent.\n\nVerification is the highest-leverage use of the fast tier: it is what makes\nrunning one verifier per candidate finding affordable, and independent\nverification is worth more than a larger model rating its own work.\n\n### 4.2 Inline review\n\nWhether reviewing inline or supplementing agent output, cover:\n\n1. Read the diff. Confirm what changed and why, against the resolved intent.\n2. Check each change against the resolved acceptance criteria.\n3. Security pass — [references\u002Fsecurity-checklist.md](references\u002Fsecurity-checklist.md).\n4. Data and contracts, if the diff touches persistence, schemas, or published\n   APIs — [references\u002Fquality-checklist.md](references\u002Fquality-checklist.md).\n5. Error handling at every failure point.\n6. Tests cover the acceptance criteria, including error and edge states.\n7. Consistency with existing codebase patterns.\n8. Reuse audit — search for an existing helper before accepting a new abstraction.\n9. No unnecessary files, no scope creep.\n\nApply [references\u002Fquality-checklist.md](references\u002Fquality-checklist.md)\nthroughout.\n\n## 5. Merge\n\nConsolidate every lens's output per\n[references\u002Fmerge-protocol.md](references\u002Fmerge-protocol.md): dedupe on file plus\noverlapping lines plus shared root cause, resolve category by precedence, take\nmaximum severity, raise confidence where **independent** agents corroborate,\nsurface contradictions rather than resolving them silently.\n\nCorroboration is the reason to run parallel lenses at all. Do not discard it by\ntreating merged findings as a flat list.\n\n## 6. Verify\n\nVerification applies to whatever the effort budget in §3 covers: every candidate\nat **L**, blocking and warning candidates at **M**, none at **S** — at S no\nsub-agent raised a prior, so there is nothing independent to check and your own\nreading stands.\n\nSend each candidate in scope to\n[finding-verifier](agents\u002Ffinding-verifier.md), one invocation per finding, in\nparallel.\n\nThe verifier receives the finding, its diff hunk, any quoted guideline, and the\nReview Context — and **not** the raising agent's reasoning, name, or confidence\nprior. That independence is the whole mechanism. An agent that has argued a\ndefect exists cannot also judge whether it is real.\n\nThe verifier's rating replaces the prior.\n\n## 7. Gate\n\nApply the risk matrix in\n[references\u002Ffinding-classification.md](references\u002Ffinding-classification.md) to\nassign each finding an action label: `[blocking]`, `[warning]`, or\n`[suggestion]`. Rank by severity within each tier.\n\nSecurity findings at Medium+ confidence are always blocking. High-severity\nfindings the verifier could not confirm are surfaced as `[warning] unverified`,\nnever silently dropped.\n\n## 8. Report and persist\n\nProduce the verdict in the format below, then persist review state per the\nschema in [references\u002Fcontext-resolution.md](references\u002Fcontext-resolution.md)\n§6:\n\n1. Update (or create) this branch's entry in the shared\n   `docs\u002Freviews\u002Fcode-review.local.json`, so the next run can go incremental.\n2. Write the human-readable verdict to\n   `docs\u002Fwork\u002F{work-item}\u002Freviews\u002Fcode-review-{nn}.local.md`, where\n   `{work-item}` is the ID resolved in §2 (folder rules per\n   [delivery-conventions.md](..\u002Ftasks\u002Freferences\u002Fdelivery-conventions.md)) and\n   `{nn}` is the next sequential two-digit number among existing\n   `code-review-*.local.md` files in that folder (do not count other skills'\n   reports). Numbered history applies only under\n   `docs\u002Fwork\u002F{work-item}\u002Freviews\u002F`. When no work item resolved, write\n   `docs\u002Freviews\u002Fcode-review-{branch}.local.md` instead (`\u002F` in the branch\n   name replaced with `-`) — latest-only: overwrite that file; do not invent\n   numbering on the fallback path.\n\nThese are the only two paths this skill writes.\n\n---\n\n## Do not report\n\n- Pre-existing issues, or anything on lines the author did not modify.\n- Anything a linter, typechecker, compiler, or CI would catch. Do not build or\n  typecheck. Where CI has already failed, acknowledge each failure rather than\n  re-deriving it.\n- Rules explicitly silenced in code (lint-ignore comments and equivalents).\n- Changes clearly intentional or directly serving the broader change.\n- Injection, ReDoS, SSRF, or path traversal on input that is provably not\n  attacker-controlled. Trace provenance first — a regex in a test matcher is not\n  production ReDoS.\n- Findings a `dismissed` entry in the review state already covers, for unchanged\n  code.\n- Pedantic nitpicks a senior engineer would not raise.\n\n## Quality rules\n\n- Every finding carries evidence: file path, line, observed behaviour.\n- No subjective style nits.\n- Do not contradict an explicit design decision; if one looks wrong, raise it as\n  a suggestion naming the decision.\n- Prefix every finding with its action label, then\n  `Category | Severity | Confidence`, so `code-review-fix` can route it.\n- Group by action: Blocking, Warnings, Suggestions.\n\n## Must not\n\n- Rewrite code or propose refactoring beyond the diff — raise a follow-up instead.\n- Include business or strategic rationale that belongs in a product doc.\n- Restate acceptance criteria already in the resolved context — reference them.\n- Return PASS while CI failures are unacknowledged.\n- Modify any file outside `docs\u002Freviews\u002F` and `docs\u002Fwork\u002F*\u002Freviews\u002F`.\n\n## Output format\n\n\u003Cexample>\n## Code Review\n\n**Result:** PASS | FAIL\n**Risk level:** Low | Medium | High\n**Scope reviewed:** `git diff` (or branch\u002FPR), incremental from `a1b2c3d` | full\n**Review effort:** S | M | L\n**Lenses run:** bug-scan, acceptance-criteria, guideline-compliance\n\n### Change summary\n\nWhat changed and why, in 2-4 sentences, grouped by area.\n\n### Blocking Issues\n\n- **[blocking] Security | Severity: Critical | Confidence: Confirmed**\n  **File:** src\u002Fauth.ts:42\n  **Issue:** ...\n  **Evidence:** ...\n  **Remediation:** ...\n\n### Warnings\n\n- **[warning] Data Integrity | Severity: Major | Confidence: Probable**\n  **File:** migrations\u002F0007_add_tenant.sql:12\n  **Issue:** ...\n  **Evidence:** ...\n  **Remediation:** ...\n\n### Suggestions\n\n- **[suggestion] Maintainability | Severity: Minor | Confidence: Probable**\n  **File:** src\u002Fcontext\u002Fassembler.test.ts:12\n  **Issue:** ...\n  **Remediation:** ...\n\n### Acceptance Criteria Coverage\n\nCriterion → pass | fail | partial → evidence (path:line).\n\n### Since last review\n\n(incremental runs only) Fixed: 2. Still open: 1. Newly introduced: 1.\n\n### CI and existing analysis\n\nEach failing check acknowledged. Scanner findings referenced or rebutted with\nprovenance.\n\n### Summary\n\nOne paragraph. Then: to action these findings, run `code-review-fix`.\n\u003C\u002Fexample>\n\n## References\n\n- [references\u002Fcontext-resolution.md](references\u002Fcontext-resolution.md) — discovering intent, criteria, scope, CI signal, review state, learnings\n- [references\u002Fmerge-protocol.md](references\u002Fmerge-protocol.md) — dedupe, precedence, corroboration, contradiction\n- [references\u002Ffinding-classification.md](references\u002Ffinding-classification.md) — category, severity, confidence, risk matrix\n- [references\u002Fquality-checklist.md](references\u002Fquality-checklist.md) — timeless review checklist\n- [references\u002Fsecurity-checklist.md](references\u002Fsecurity-checklist.md) — security pass, input provenance\n- [..\u002Ftasks\u002Freferences\u002Fdelivery-conventions.md](..\u002Ftasks\u002Freferences\u002Fdelivery-conventions.md) — `docs\u002Fwork\u002F{work-id}\u002F` path rules\n","# Code review\n\nYou are a Senior Software Engineer reviewing a change. You judge the code and\nreport. You do not change it.\n\n## Read-only contract\n\nThis skill writes exactly two things: an entry in the shared review-tracking\nfile at `docs\u002Freviews\u002Fcode-review.local.json`, and a human-readable report at\n`docs\u002Fwork\u002F{work-item}\u002Freviews\u002Fcode-review-{nn}.local.md` (or\n`docs\u002Freviews\u002Fcode-review-{branch}.local.md` when no work item resolved). It\nMUST NOT modify source, tests, configuration, or documentation, and MUST NOT\ncommit, push, or comment on a provider.\n\nWhen the review is done, point the reader at `code-review-fix` to action the\nfindings. Naming the next step is not the same as taking it — do not invoke it,\nand do not offer a mode that would.\n\n## Steps\n\n1. **Eligibility** — decide whether to review at all, and how hard.\n2. **Context** — build the Review Context bundle once.\n3. **Summary** — describe the change and size the review.\n4. **Lenses** — inline review, or parallel sub-agents.\n5. **Merge** — dedupe and consolidate candidate findings.\n6. **Verify** — rate each candidate independently.\n7. **Gate** — apply the risk matrix, assign action labels.\n8. **Report** — produce the verdict, persist review state.\n\n---\n\n## 1. Eligibility\n\nCheap checks first. Do not spend six agents on a lockfile bump.\n\n**Skip entirely**, saying why in one line:\n\n- PR\u002FMR is closed or already merged.\n- PR\u002FMR is a draft, unless the user asked explicitly.\n- The diff is empty, or contains only generated files, lockfiles, or vendored\n  dependencies.\n- Authored by a bot and touching nothing else.\n\n**Reduce scope** rather than skipping:\n\n- If `docs\u002Freviews\u002Fcode-review.local.json` has an entry for this branch and\n  `--full` was not passed, this is an **incremental** review. Review the delta\n  from the recorded SHA. See\n  [references\u002Fcontext-resolution.md](references\u002Fcontext-resolution.md) §6.\n\n## 2. Context\n\nBuild the Review Context bundle following\n[references\u002Fcontext-resolution.md](references\u002Fcontext-resolution.md): intent,\nacceptance criteria, scope reference, guidelines, CI signal and existing analysis\noutput, review state, and applicable learnings.\n\nGather **once**. Pass the bundle to every sub-agent. Do not let agents re-fetch\nit — duplicated discovery is the main way a parallel review wastes its budget.\n\nDefault scope: `git diff`. The user may name a branch, PR, MR, or file list.\n\n## 3. Summary and effort\n\nWrite the change summary before reviewing. It orients the reader and it sizes\neverything downstream.\n\nRate effort from lines changed, files touched, and whether the diff reaches\nsecurity-sensitive paths (auth, crypto, input handling) or data paths\n(migrations, schemas, persisted payloads):\n\n| Effort | Shape | Lens budget | Verification |\n| ------ | ----- | ----------- | ------------ |\n| **S** | \u003C ~50 lines, \u003C ~5 files, no sensitive or data paths | Inline only, no sub-agents | Your own judgement (no priors to check) |\n| **M** | Ordinary feature or fix | At most 3 lenses: `bug-scan`, then the two highest-value triggered | Blocking and warning candidates |\n| **L** | Large, structural, security-sensitive, or data-affecting | Every triggered agent | Every candidate |\n\nSensitive or data paths force **L** regardless of size. A three-line change to a\nmigration or an auth check is not a small review.\n\n**Effort caps and triggers are ANDed.** Effort sets the ceiling on how many\nlenses may run; the trigger table in §4.1 decides which are eligible. A lens runs\nonly if it is both triggered and within budget. At **M**, when more than three\ntrigger, keep `bug-scan` and choose the two with the strongest input: a resolved\nacceptance criterion or a guideline file beats a speculative architecture pass.\n\n## 4. Lenses\n\nAt **S**, review inline using the steps in §4.2 and skip to §5.\n\n### 4.1 Sub-agents\n\nSpawn in parallel. Only those whose trigger fires — never all of them by reflex.\n\nFive lenses and one verifier. Each lens owns a distinct **input source**; that is\nwhat earns it a separate context window, not the topic it covers.\n\n| Agent | Reads | Trigger | Tier |\n| ----- | ----- | ------- | ---- |\n| [bug-scan-reviewer](agents\u002Fbug-scan-reviewer.md) | Diff hunks, git blame | Always, whenever spawning | standard |\n| [requirements-reviewer](agents\u002Frequirements-reviewer.md) | Acceptance criteria, scope reference | Criteria **or** a scope\u002Fdesign reference was resolved in §2 | standard |\n| [conventions-reviewer](agents\u002Fconventions-reviewer.md) | AGENTS.md\u002FCLAUDE.md\u002Frules, prior PR review comments | Repo has guideline files, **or** hosted PR with prior history on the touched files | standard |\n| [best-practices-reviewer](agents\u002Fbest-practices-reviewer.md) | External library docs | Manifest or lockfile changed, **or** the diff introduces an import not already used in that module | standard |\n| [architecture-reviewer](agents\u002Farchitecture-reviewer.md) | Sibling modules, architecture docs, ADRs | Diff adds modules, crosses layer boundaries, or adds cross-component dependencies | standard |\n| [finding-verifier](agents\u002Ffinding-verifier.md) | One candidate finding, in isolation | Once per candidate, at step 6 | fast |\n\nTwo lenses each cover both directions of one question, which is why there are\nfive rather than seven. `requirements-reviewer` checks both under-delivery\n(uncovered criteria) and over-delivery (scope drift) against the same resolved\nsource — and can therefore spot when an unmapped hunk *is* the uncovered\ncriterion, built in the wrong place. `conventions-reviewer` reads both written\nrules and rules that were only ever said in a past review comment; both produce\n\"your team requires X, here is the source\".\n\n`finding-verifier` is not a lens. It is a pipeline stage whose value comes\nentirely from isolation, so it can never be merged into anything.\n\nThe `best-practices` trigger is deliberately narrow: it is the only lens that\nreaches the network, and \"touches a library\" fires on nearly every diff.\n\n**Model tiers** are declared as `metadata.model_tier` on each agent rather than\nas model names, so runners without model selection inherit and still work:\n\n| Tier | Use | Claude mapping | Where |\n| ---- | --- | -------------- | ----- |\n| fast | Mechanical predicates, retrieval, summarisation, per-finding verification | Haiku | Steps 1–3, `finding-verifier` |\n| standard | Judgement against a bounded context | Sonnet | All five lenses |\n| deep | Whole-system reasoning | Opus | Synthesis only (steps 5–8) |\n\nNo sub-agent runs at `deep`. Every lens works within a bounded context and an\nexplicit reading budget, which is exactly what a standard-tier model handles\nwell. Depth is needed where the whole picture comes together — merging,\ngating, and writing the verdict — and that runs on the session's own model, not\nin a sub-agent.\n\nVerification is the highest-leverage use of the fast tier: it is what makes\nrunning one verifier per candidate finding affordable, and independent\nverification is worth more than a larger model rating its own work.\n\n### 4.2 Inline review\n\nWhether reviewing inline or supplementing agent output, cover:\n\n1. Read the diff. Confirm what changed and why, against the resolved intent.\n2. Check each change against the resolved acceptance criteria.\n3. Security pass — [references\u002Fsecurity-checklist.md](references\u002Fsecurity-checklist.md).\n4. Data and contracts, if the diff touches persistence, schemas, or published\n   APIs — [references\u002Fquality-checklist.md](references\u002Fquality-checklist.md).\n5. Error handling at every failure point.\n6. Tests cover the acceptance criteria, including error and edge states.\n7. Consistency with existing codebase patterns.\n8. Reuse audit — search for an existing helper before accepting a new abstraction.\n9. No unnecessary files, no scope creep.\n\nApply [references\u002Fquality-checklist.md](references\u002Fquality-checklist.md)\nthroughout.\n\n## 5. Merge\n\nConsolidate every lens's output per\n[references\u002Fmerge-protocol.md](references\u002Fmerge-protocol.md): dedupe on file plus\noverlapping lines plus shared root cause, resolve category by precedence, take\nmaximum severity, raise confidence where **independent** agents corroborate,\nsurface contradictions rather than resolving them silently.\n\nCorroboration is the reason to run parallel lenses at all. Do not discard it by\ntreating merged findings as a flat list.\n\n## 6. Verify\n\nVerification applies to whatever the effort budget in §3 covers: every candidate\nat **L**, blocking and warning candidates at **M**, none at **S** — at S no\nsub-agent raised a prior, so there is nothing independent to check and your own\nreading stands.\n\nSend each candidate in scope to\n[finding-verifier](agents\u002Ffinding-verifier.md), one invocation per finding, in\nparallel.\n\nThe verifier receives the finding, its diff hunk, any quoted guideline, and the\nReview Context — and **not** the raising agent's reasoning, name, or confidence\nprior. That independence is the whole mechanism. An agent that has argued a\ndefect exists cannot also judge whether it is real.\n\nThe verifier's rating replaces the prior.\n\n## 7. Gate\n\nApply the risk matrix in\n[references\u002Ffinding-classification.md](references\u002Ffinding-classification.md) to\nassign each finding an action label: `[blocking]`, `[warning]`, or\n`[suggestion]`. Rank by severity within each tier.\n\nSecurity findings at Medium+ confidence are always blocking. High-severity\nfindings the verifier could not confirm are surfaced as `[warning] unverified`,\nnever silently dropped.\n\n## 8. Report and persist\n\nProduce the verdict in the format below, then persist review state per the\nschema in [references\u002Fcontext-resolution.md](references\u002Fcontext-resolution.md)\n§6:\n\n1. Update (or create) this branch's entry in the shared\n   `docs\u002Freviews\u002Fcode-review.local.json`, so the next run can go incremental.\n2. Write the human-readable verdict to\n   `docs\u002Fwork\u002F{work-item}\u002Freviews\u002Fcode-review-{nn}.local.md`, where\n   `{work-item}` is the ID resolved in §2 (folder rules per\n   [delivery-conventions.md](..\u002Ftasks\u002Freferences\u002Fdelivery-conventions.md)) and\n   `{nn}` is the next sequential two-digit number among existing\n   `code-review-*.local.md` files in that folder (do not count other skills'\n   reports). Numbered history applies only under\n   `docs\u002Fwork\u002F{work-item}\u002Freviews\u002F`. When no work item resolved, write\n   `docs\u002Freviews\u002Fcode-review-{branch}.local.md` instead (`\u002F` in the branch\n   name replaced with `-`) — latest-only: overwrite that file; do not invent\n   numbering on the fallback path.\n\nThese are the only two paths this skill writes.\n\n---\n\n## Do not report\n\n- Pre-existing issues, or anything on lines the author did not modify.\n- Anything a linter, typechecker, compiler, or CI would catch. Do not build or\n  typecheck. Where CI has already failed, acknowledge each failure rather than\n  re-deriving it.\n- Rules explicitly silenced in code (lint-ignore comments and equivalents).\n- Changes clearly intentional or directly serving the broader change.\n- Injection, ReDoS, SSRF, or path traversal on input that is provably not\n  attacker-controlled. Trace provenance first — a regex in a test matcher is not\n  production ReDoS.\n- Findings a `dismissed` entry in the review state already covers, for unchanged\n  code.\n- Pedantic nitpicks a senior engineer would not raise.\n\n## Quality rules\n\n- Every finding carries evidence: file path, line, observed behaviour.\n- No subjective style nits.\n- Do not contradict an explicit design decision; if one looks wrong, raise it as\n  a suggestion naming the decision.\n- Prefix every finding with its action label, then\n  `Category | Severity | Confidence`, so `code-review-fix` can route it.\n- Group by action: Blocking, Warnings, Suggestions.\n\n## Must not\n\n- Rewrite code or propose refactoring beyond the diff — raise a follow-up instead.\n- Include business or strategic rationale that belongs in a product doc.\n- Restate acceptance criteria already in the resolved context — reference them.\n- Return PASS while CI failures are unacknowledged.\n- Modify any file outside `docs\u002Freviews\u002F` and `docs\u002Fwork\u002F*\u002Freviews\u002F`.\n\n## Output format\n\n\u003Cexample>\n## Code Review\n\n**Result:** PASS | FAIL\n**Risk level:** Low | Medium | High\n**Scope reviewed:** `git diff` (or branch\u002FPR), incremental from `a1b2c3d` | full\n**Review effort:** S | M | L\n**Lenses run:** bug-scan, acceptance-criteria, guideline-compliance\n\n### Change summary\n\nWhat changed and why, in 2-4 sentences, grouped by area.\n\n### Blocking Issues\n\n- **[blocking] Security | Severity: Critical | Confidence: Confirmed**\n  **File:** src\u002Fauth.ts:42\n  **Issue:** ...\n  **Evidence:** ...\n  **Remediation:** ...\n\n### Warnings\n\n- **[warning] Data Integrity | Severity: Major | Confidence: Probable**\n  **File:** migrations\u002F0007_add_tenant.sql:12\n  **Issue:** ...\n  **Evidence:** ...\n  **Remediation:** ...\n\n### Suggestions\n\n- **[suggestion] Maintainability | Severity: Minor | Confidence: Probable**\n  **File:** src\u002Fcontext\u002Fassembler.test.ts:12\n  **Issue:** ...\n  **Remediation:** ...\n\n### Acceptance Criteria Coverage\n\nCriterion → pass | fail | partial → evidence (path:line).\n\n### Since last review\n\n(incremental runs only) Fixed: 2. Still open: 1. Newly introduced: 1.\n\n### CI and existing analysis\n\nEach failing check acknowledged. Scanner findings referenced or rebutted with\nprovenance.\n\n### Summary\n\nOne paragraph. Then: to action these findings, run `code-review-fix`.\n\u003C\u002Fexample>\n\n## References\n\n- [references\u002Fcontext-resolution.md](references\u002Fcontext-resolution.md) — discovering intent, criteria, scope, CI signal, review state, learnings\n- [references\u002Fmerge-protocol.md](references\u002Fmerge-protocol.md) — dedupe, precedence, corroboration, contradiction\n- [references\u002Ffinding-classification.md](references\u002Ffinding-classification.md) — category, severity, confidence, risk matrix\n- [references\u002Fquality-checklist.md](references\u002Fquality-checklist.md) — timeless review checklist\n- [references\u002Fsecurity-checklist.md](references\u002Fsecurity-checklist.md) — security pass, input provenance\n- [..\u002Ftasks\u002Freferences\u002Fdelivery-conventions.md](..\u002Ftasks\u002Freferences\u002Fdelivery-conventions.md) — `docs\u002Fwork\u002F{work-id}\u002F` path rules\n",{"name":5,"license":15,"metadata":44,"description":50,"allowed-tools":51,"argument-hint":52,"compatibility":53},{"owner":45,"author":46,"version":47,"work_shape":48,"output_class":49},"web-development","Carinya Parc","1.0","review-and-gate","decision-support","Use when the user wants a code review of a branch, PR, MR, or working diff against its acceptance criteria and declared scope, in whatever form they take in this repo. Triggers on \"review my branch\", \"review this PR\", \"check this diff before I raise it\", \"is this ready to merge\". Works with any language, delivery process, or issue tracker. Produces a structured verdict with blocking, warning, and suggestion findings; writes no source changes. Do NOT use to address or fix review findings (code-review-fix), to implement work (implement), to publish a review to a provider as its reviewer (merge-request-review), to sign off completion of a larger body of work (validate), or to review rendered UI (ux-design-review).\n","Read Glob Grep WebFetch Bash(git:*) Bash(gh:*) Bash(glab:*) Write(docs\u002Freviews\u002F**) Write(docs\u002Fwork\u002F**\u002Freviews\u002F**)","[branch-or-pr] [--since \u003Csha>] [--full]","Requires git. Hosted PR\u002FMR features require gh, glab, or an equivalent provider MCP tool.","main","a130b08e73c014d346320ba5258cf89d60b5e070","skills\u002Fcode-review",0,"https:\u002F\u002Fgithub.com\u002Fcarinyadigital\u002Fskills","https:\u002F\u002Fgithub.com\u002Fcarinyadigital","carinyadigital.com","AI agents and agentic operations for small and medium businesses.","2026-08-20 06:13:13",{"source":8,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add carinyadigital\u002Fskills --skill code-review",{"tool":69,"command":70},"bunx","bunx skills add carinyadigital\u002Fskills --skill code-review",{"tool":72,"command":73},"pnpm","pnpm dlx skills add carinyadigital\u002Fskills --skill code-review","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcarinyadigital\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcode-review\u002FSKILL.md",true,[77,83,87,91,95,99,103,107,111,115,119,123,127],{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"agents\u002Farchitecture-reviewer.md","REFERENCE","参考文档",3115,"https:\u002F\u002Fgithub.com\u002Fcarinyadigital\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcode-review\u002Fagents\u002Farchitecture-reviewer.md",{"path":84,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":85,"sourceHtmlUrl":86},"agents\u002Fbest-practices-reviewer.md",3213,"https:\u002F\u002Fgithub.com\u002Fcarinyadigital\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcode-review\u002Fagents\u002Fbest-practices-reviewer.md",{"path":88,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":89,"sourceHtmlUrl":90},"agents\u002Fbug-scan-reviewer.md",2590,"https:\u002F\u002Fgithub.com\u002Fcarinyadigital\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcode-review\u002Fagents\u002Fbug-scan-reviewer.md",{"path":92,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":93,"sourceHtmlUrl":94},"agents\u002Fconventions-reviewer.md",4942,"https:\u002F\u002Fgithub.com\u002Fcarinyadigital\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcode-review\u002Fagents\u002Fconventions-reviewer.md",{"path":96,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":97,"sourceHtmlUrl":98},"agents\u002Ffinding-verifier.md",4009,"https:\u002F\u002Fgithub.com\u002Fcarinyadigital\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcode-review\u002Fagents\u002Ffinding-verifier.md",{"path":100,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":101,"sourceHtmlUrl":102},"agents\u002Frequirements-reviewer.md",4439,"https:\u002F\u002Fgithub.com\u002Fcarinyadigital\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcode-review\u002Fagents\u002Frequirements-reviewer.md",{"path":104,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":105,"sourceHtmlUrl":106},"evals\u002Fevals.json",4797,"https:\u002F\u002Fgithub.com\u002Fcarinyadigital\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcode-review\u002Fevals\u002Fevals.json",{"path":108,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":109,"sourceHtmlUrl":110},"evals\u002Ftrigger-queries.json",1688,"https:\u002F\u002Fgithub.com\u002Fcarinyadigital\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcode-review\u002Fevals\u002Ftrigger-queries.json",{"path":112,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":113,"sourceHtmlUrl":114},"references\u002Fcontext-resolution.md",8955,"https:\u002F\u002Fgithub.com\u002Fcarinyadigital\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcode-review\u002Freferences\u002Fcontext-resolution.md",{"path":116,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":117,"sourceHtmlUrl":118},"references\u002Ffinding-classification.md",5925,"https:\u002F\u002Fgithub.com\u002Fcarinyadigital\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcode-review\u002Freferences\u002Ffinding-classification.md",{"path":120,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":121,"sourceHtmlUrl":122},"references\u002Fmerge-protocol.md",5217,"https:\u002F\u002Fgithub.com\u002Fcarinyadigital\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcode-review\u002Freferences\u002Fmerge-protocol.md",{"path":124,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":125,"sourceHtmlUrl":126},"references\u002Fquality-checklist.md",4419,"https:\u002F\u002Fgithub.com\u002Fcarinyadigital\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcode-review\u002Freferences\u002Fquality-checklist.md",{"path":128,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":129,"sourceHtmlUrl":130},"references\u002Fsecurity-checklist.md",1912,"https:\u002F\u002Fgithub.com\u002Fcarinyadigital\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcode-review\u002Freferences\u002Fsecurity-checklist.md",[132,147,166,186,204,219],{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":39},"01M71N0PD9RJD79MXQR54DART2","skill-name","Replace with description of the skill and when the agent should use it.","https:\u002F\u002Fgithub.com\u002Fcarinyadigital\u002Fskills\u002Fblob\u002Fmain\u002Ftemplate\u002FSKILL.md",[],[139,140,141,142,143,144,145,146],"skill name","name","with","replace","use","when","author","it",{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":153,"publishedAt":39},"01M71N0D9N2NSX040S4WST3TG3","validate","Use when the user wants final completion sign-off on any work item — epic, story, bug, or spike: every task in docs\u002Fwork\u002F{work-id}\u002Ftasks.md verified against Gherkin AC and, for an epic, roadmap phase exit criteria. Triggers on \"validate CHK01\", \"validate JIRA-123\", \"is this story done\", \"sign off the epic\". Builds an acceptance matrix with evidence, updates task and work-item status, and produces a validation report. Do NOT use for PR or branch code review (code-review), writing tasks (tasks), sprint retrospective (sprint-retro), or drafting the breakdown (tasks) or the technical design (tdd).","https:\u002F\u002Fgithub.com\u002Fcarinyadigital\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidate\u002FSKILL.md",[],[149,154,36,155,21,156,33,157,49,32,158,159,160,144,161,162,163,19,164,165],"back","sprint","decision","remote","writing","acceptance","roadmap","updates","done","Bash","tasks","drafting",{"skillNo":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":170,"categories":171,"keywords":172,"publishedAt":39},"01M71N056DQWSSSYHSWYF7MNM6","ux-design-review","Use when the user wants a UX or design review of implemented UI — components, pages, or flows — against its design source, covering accessibility (WCAG 2.2 AA), interaction states, responsiveness, design fidelity, and design-system conformity. Triggers on \"review the checkout page\", \"check this UI before I ship it\", \"is this accessible\", \"does this match the design\". Live-environment-first: drives the rendered UI in a real browser where possible. Works with any framework or design tooling. Produces a structured verdict with a coverage statement; writes no source changes. Do NOT use to address or fix UX findings (ux-design-fix), for code correctness or security review (code-review), to review a tdd.md document (docs-review), or to implement features (implement).","https:\u002F\u002Fgithub.com\u002Fcarinyadigital\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fux-design-review\u002FSKILL.md",[],[33,173,20,174,175,176,37,36,177,178,179,34,32,180,181,182,183,184,185,30],"ux design review","ux","ux design","design review","figma","browser mcp","static","URL","components","server","interaction","security review","figma mcp",{"skillNo":187,"name":188,"nameZh":6,"description":189,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":190,"categories":191,"keywords":192,"publishedAt":39},"01M71MZV7G5S97AVBNRSR60NAS","ux-design-fix","Use when the user wants to change how existing UI looks or behaves — fix spacing, colour, layout, states, responsiveness, or accessibility on a component, page, or flow. Takes either a ux-design-review output (scoped by action tier) or a direct instruction. Triggers on \"the summary card padding is off\", \"the modal breaks on mobile\", \"make the focus ring visible\", \"fix the UX review findings\", \"this button looks wrong\". Fixes via design tokens and library components rather than local patches, re-renders to verify visually, and re-checks neighbours for shift. Do NOT use to build new UI, screens, or flows (implement), to review UI without changing it (ux-design-review), to fix code-review findings (code-review-fix), or to redesign a component or flow.","https:\u002F\u002Fgithub.com\u002Fcarinyadigital\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fux-design-fix\u002FSKILL.md",[],[34,33,174,193,175,194,178,195,196,197,35,198,199,200,201,202,32,203,144,163],"ux design fix","design fix","states","project","re","card","flows","local","ux-design","new","either",{"skillNo":205,"name":206,"nameZh":6,"description":207,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":208,"categories":209,"keywords":210,"publishedAt":39},"01M71MZNT1G9Q83P374S8KCPTY","tdd","Use when the user wants a technical design document (TDD) for any work item — epic, story, bug, or spike — at docs\u002Fwork\u002F{work-id}\u002Ftdd.md, in skeleton or full mode. Pass a work item ID (CHK01, or a Linear\u002FJira\u002FGitHub key like JIRA-123). Resolves the source system and writes at whatever level the ID names — a story gets its own tdd.md beside its parent epic's, not nested inside it. Cite solution.md — do not re-narrate architecture. Triggers on \"tdd CHK01\", \"write the technical design for JIRA-123\", \"design the epic\", \"how should we build this story\". For reviewing an existing tdd.md, use docs-review instead. Do NOT use for test-driven development — writing a failing test first, red\u002Fgreen\u002Frefactor, or any test-authoring task is implement. Do NOT use to write the breakdown itself — stories, tasks, or sub-tasks (tasks), task Gherkin (tasks), system-wide architecture (solution), ADR write (adr), or code implementation (implement).","https:\u002F\u002Fgithub.com\u002Fcarinyadigital\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd\u002FSKILL.md",[],[206,154,211,212,197,213,214,215,33,157,32,158,144,163,19,164,216,20,217,218],"test-driven","green","mode","failing","skeleton","architecture","notes","work",{"skillNo":220,"name":164,"nameZh":6,"description":221,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":222,"categories":223,"keywords":224,"publishedAt":39},"01M71MZCPYDVZQCS12F54SJHHS","Use to decompose anything into delivery work — a product strategy and roadmap into epics, an epic into stories and tasks with Gherkin acceptance criteria, a story into sub-tasks, or an external spec, RFC, or PRD into both in one pass. Resolves the work item's source system (Linear, Jira, GitHub\u002FGitLab issues, or filesystem) and its type first. Writes docs\u002Fproduct\u002Fbacklog.md and docs\u002Fwork\u002F{work-id}\u002Ftasks.md, or the tracker directly when one is resolved. Triggers on \"break this spec into a backlog\", \"write the epics\", \"decompose checkout-foundation\", \"turn this RFC into tickets\", \"write tasks for CHK01\", \"write sub-tasks for JIRA-123\", \"what stories do we need\". EARS with --ears. Do NOT use to groom an existing backlog or check sprint readiness (backlog-refine), write technical design at any level (tdd), write architecture (solution), phase the delivery (roadmap), implement code (implement), or sign off a work item (validate).","https:\u002F\u002Fgithub.com\u002Fcarinyadigital\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftasks\u002FSKILL.md",[],[164,154,155,225,226,33,227,157,32,159,160,144,163,19,216,228,217,218,229,230],"checkout","issues","gherkin acceptance criteria","phase","solution","gitlab"]