[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78BW710KXPEW50PD9KG22NM":3,"skill-same:01M78BW710KXPEW50PD9KG22NM":55},{"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":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M78BW710KXPEW50PD9KG22NM","code-review",null,"Use when a user asks to \"review this branch\", \"review this PR\", \"review my changes\", or \"review since main\". Also use for pre-merge review, work-in-progress diffs, staged changes, suspected regressions in a patch, or checking implementation against a specification.","adriancodes\u002Fskills","adriancodes","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F940414?v=4","01M6NJ91CRRXPC6RRKWM4CVEGJ","Adrian Martin","01M78BV1DGXZ4VG3VVC30VH0MC",1,"MIT","https:\u002F\u002Fgithub.com\u002Fadriancodes\u002Fskills\u002Fblob\u002Fmain\u002Fevals\u002Fremaining-skills-2026-10-04\u002Fsubjects\u002Foriginal\u002Fcode-review\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: code-review\ndescription: >\n  Use when a user asks to \"review this branch\", \"review this PR\",\n  \"review my changes\", or \"review since main\". Also use for pre-merge\n  review, work-in-progress diffs, staged changes, suspected regressions\n  in a patch, or checking implementation against a specification.\nlicense: MIT\nmetadata:\n  category: Quality\n  summary: Reviews a pinned diff for correctness, spec compliance, and repository-standard violations with evidence-backed findings.\n---\n\n# Code Review\n\n## Overview\n\n**Review changed behavior, not code aesthetics.** Report a finding only when the scoped change introduces a concrete defect, violates an applicable contract, or creates demonstrable engineering risk. Attempt to falsify every candidate before reporting it; no evidence means no finding.\n\nReview is read-only by default: a request to review, assess, or inspect authorizes repository inspection and safe diagnostics, not edits. Explicitly requested fixes follow the completed report, never precede it.\n\n## When to Use\n\n- Review a branch, PR, commit range, patch, or work-in-progress change.\n- Check implementation against an issue, PRD, specification, acceptance criteria, or migration plan.\n- Assess staged, unstaged, or newly added files before commit.\n- Investigate whether a patch introduces correctness, security, data, concurrency, compatibility, or regression risk.\n- Check changed code against documented repository standards and coherent local patterns.\n\n## Do Not Use When\n\n- The request asks how unchanged code works; use `understand-codebase` when installed, otherwise trace the current path read-only.\n- A reported runtime failure needs root-cause discovery; use `diagnose` when installed, otherwise reproduce and isolate it before proposing changes.\n- A finished artifact needs hostile-input verification; use `verify-work` when installed, otherwise execute adversarial fixtures against its stated promise.\n- The request is a broad architecture assessment or refactor plan without a bounded diff; use `engineering-best-practices` when installed, otherwise assess the architecture separately.\n- The task is to summarize changes or draft a pull-request description; write that artifact instead of inventing review findings.\n\n## Required Context\n\nEstablish four facts before reviewing:\n\n- **Scope:** branch, PR, commit range, patch, or working-tree changes\n- **Endpoints:** immutable base and head identities, plus whether staged, unstaged, and untracked files are included\n- **Contracts:** applicable specification, repository instructions, standards, tests, and migration or compatibility promises\n- **Authority:** `review-only` unless fixes were explicitly requested\n\nHonor an explicit base; otherwise resolve the PR target, configured upstream, or repository default branch, in that order, and state the inferred base. Ask one pointed question only when plausible bases produce materially different diffs. Done when scope, endpoints, contracts, and authority mode are written down.\n\n## Workflow\n\n### 1. Pin the exact change set\n\nFor committed branch work, record the merge base and review `git diff \u003Cbase>...\u003Chead>`. Record `git log \u003Cbase>..\u003Chead> --oneline` for intent clues, never as a diff substitute.\n\nFor work-in-progress changes, also inspect:\n\n- staged changes with `git diff --cached`;\n- unstaged changes with `git diff`;\n- relevant untracked files from `git status --short`, read directly because Git has no diff base for them.\n\nCapture the resolved base SHA, head SHA, worktree status, changed-file list, and exact diff commands. Reject an invalid ref. On an empty diff, report the resolved scope and stop; never review unrelated files. Done when every reviewed file belongs to one frozen, reproducible scope.\n\n### 2. Load the governing contracts\n\nRead the binding instructions for each changed path — the nearest `AGENTS.md`, contributor guidance, coding standards, test conventions, schemas, and migration rules — then locate the originating specification in this order:\n\n1. A user-provided path or linked issue\u002FPR\n2. Issue references in the branch or commit metadata\n3. A matching specification, PRD, decision log, or ticket under repository documentation\n4. Explicit acceptance criteria in the request\n\nIf none is available, mark the Spec lens `unavailable` and continue with Correctness and Standards. Never invent requirements from branch names or commit messages.\n\nTreat formatter, linter, type-checker, and compiler output as diagnostic evidence; restate their issues only when the review exposes a missing enforcement path or a user-visible consequence they do not explain.\n\nDone when each lens has named sources or an explicit `unavailable` status:\n\n| Lens | Governing evidence |\n|------|--------------------|\n| Correctness | Runtime contracts, callers, tests, types, schemas, invariants |\n| Spec | Issue, PRD, specification, acceptance criteria |\n| Standards | Binding repository docs and coherent analogous code |\n\n### 3. Understand the changed behavior\n\nRead the diff, then enough surrounding code to understand every changed behavior. Follow changed symbols through callers, callees, state owners, configuration, persistence, asynchronous boundaries, and externally visible outcomes. Check which important conditions the changed path's tests prove or omit.\n\nClassify every changed file as behavioral code, test, configuration, schema\u002Fmigration, generated\u002Fvendor\u002Flock output, or documentation, giving extra scrutiny to trust boundaries, durable state, destructive operations, compatibility edges, concurrency, retries, error paths, and migrations.\n\nRun focused read-only or safely isolated diagnostics when they can confirm a candidate defect. Never install dependencies, update snapshots, regenerate outputs, or mutate external systems to complete a review; report the unexecuted check as residual risk.\n\nDone when every changed file is classified and every behaviorally significant hunk is traced to its contract and observable consequence.\n\n### 4. Generate candidates through three lenses\n\nReview the same frozen scope through all available lenses:\n\n**Correctness and regression risk**\n\n- Trace validation, authorization, state transitions, error behavior, cleanup, retries, concurrency, ordering, idempotency, compatibility, and data migration where applicable.\n- Check boundary values and failure paths, not only the happy path.\n- Treat a missing test as a finding only when a concrete changed behavior is both risky and unprotected; test preference alone is not a defect.\n\n**Specification compliance**\n\n- Identify missing, partial, or incorrectly implemented requirements.\n- Flag additions outside the agreed scope that create cost, risk, or incompatibility.\n- Cite the exact contract language for every Spec finding.\n\n**Repository standards**\n\n- Apply documented rules and coherent patterns from analogous code.\n- Use `engineering-best-practices` when installed only when the request explicitly includes maintainability or architecture; otherwise apply project-local evidence directly.\n- Report maintainability issues only when the diff creates a concrete defect risk or demonstrable change cost. Never manufacture findings from a generic smell checklist.\n\nFor each candidate, record the trigger, actual behavior, consequence, changed location, and supporting contract. Done when every available lens is examined and every candidate has a falsifiable consequence.\n\n### 5. Use parallel reviewers only when they earn their cost\n\nWhen the harness supports subagents and the diff spans at least two independent subsystems or more than 500 non-generated changed lines, dispatch at most three reviewers: Correctness, Spec, and Standards. Give each the same frozen scope and only its governing sources. Ask for candidate findings, not a verdict.\n\nFor smaller diffs or harnesses without subagents, run the lenses sequentially. Parallel output never becomes a finding automatically; the primary reviewer must validate, deduplicate, and rank every candidate. Done when all reviewer output passes the same evidence gate.\n\n### 6. Falsify and rank every candidate\n\nAttempt to disprove each candidate before reporting it:\n\n1. Confirm the scoped change introduces or materially worsens the issue.\n2. Read surrounding implementation, callers, tests, and configuration for a handling path that invalidates it.\n3. Execute the smallest safe reproducer or focused check when feasible.\n4. Confirm a realistic trigger and concrete consequence.\n5. Deduplicate findings that share one root cause.\n\nDrop candidates that are pre-existing, purely stylistic, speculative, automatically enforced, outside scope, or preference without consequence. Record unverified concerns as residual risk, not findings.\n\nAssign the lowest defensible severity:\n\n| Severity | Threshold |\n|----------|-----------|\n| **P0** | Immediate broad outage, irreversible loss, or critical security compromise |\n| **P1** | Likely security, data, or core-function failure requiring merge blockage |\n| **P2** | Real bounded correctness, reliability, compatibility, or significant maintenance defect |\n| **P3** | Small but concrete defect with a realistic trigger; never a nitpick |\n\nDone when every retained finding survives falsification, has one severity, and cites the changed line plus supporting evidence.\n\n### 7. Report findings first\n\nSort findings by severity, then file location, in one unified list; tag each with its lens or lenses so duplicate Correctness and Spec reports remain one issue.\n\nFormat each finding as:\n\n```markdown\n### [P1][Correctness, Spec] Cross-tenant export bypass: `src\u002Fexport.js:3`\n\nWhen an authenticated requester supplies a workspace ID it does not own, the new path calls\n`store.export(workspaceId)` without checking membership. This violates the specification's\ncross-tenant `404` requirement and can expose another tenant's data. Add the ownership predicate\nat this boundary and cover the cross-tenant case.\n```\n\nKeep each finding to one short paragraph with the trigger, behavior, consequence, evidence, and correction direction. Do not praise the patch, narrate the process, or bury findings under a summary.\n\nAfter the findings, report:\n\n- frozen scope and contracts reviewed;\n- commands or tests run;\n- unavailable lenses, unreviewed files, and residual risk.\n\nIf no candidate survives, lead with `No findings.` and still report coverage and residual risk. In review-only mode, stop there. If fixes were explicitly requested, apply only supported fixes through the repository's implementation or TDD workflow after the report, then re-review the resulting diff. Done when every finding is actionable and evidenced, every gap is explicit, and no unauthorized edit occurred.\n\n## Core Example\n\nSpecification: “Export data only when the requester belongs to the workspace; return `404` for cross-tenant access.”\n\nScoped diff:\n\n```diff\n export function exportWorkspace(requester, workspaceId, store) {\n   if (!requester) return { status: 401 };\n-  if (!requester.workspaceIds.includes(workspaceId)) return { status: 404 };\n   return { status: 200, body: store.export(workspaceId) };\n }\n```\n\nReport:\n\n> ### [P1][Correctness, Spec] Workspace export loses tenant authorization: `candidate-auth.js:3`\n>\n> Any authenticated requester can now export an arbitrary workspace because the changed path reaches `store.export(workspaceId)` without verifying membership. The removed condition enforced the specification's cross-tenant `404` requirement, so this change creates cross-tenant data exposure. Restore ownership enforcement at this boundary and add a cross-tenant regression test.\n\nDo not add generic naming, abstraction, or style findings: the authorization regression is the evidence-backed review result.\n\n## Tool Guidance\n\n**Prefer:**\n\n- `git rev-parse`, `git merge-base`, `git status --short`, focused `git diff`, and `git log`\n- `rg --files` and `rg` for contracts, symbols, callers, and tests\n- Read-only issue or PR retrieval when linked context is available\n- Existing focused tests, type checks, linters, and analyzers that do not rewrite files\n- Independent subagents only for genuinely substantial diffs\n\n**Avoid:**\n\n- Reviewing only commit messages, filenames, or the diff without surrounding code\n- Whole-repository audits unrelated to the frozen scope\n- Formatter, dependency, snapshot, generated-file, or external-system mutation\n- Mandatory subagent use for small reviews\n\n## Common Rationalizations\n\n| Shortcut | Reality |\n|----------|---------|\n| “Two independent reports can be pasted verbatim.” | Validate, deduplicate, and rank candidates before reporting. |\n| “A universal smell baseline catches maintainability issues.” | Generic smells manufacture noise; require repository evidence and concrete consequence. |\n| “No base was supplied, so review must stop for a question.” | Resolve the PR target, upstream, or default branch and state the inference. |\n| “Parallel agents always improve review quality.” | Parallelism adds cost and duplicates; use it only for substantial independent surfaces. |\n| “No specification means the review is blocked.” | Mark that lens unavailable and continue with correctness and standards. |\n| “A review request implies permission for small fixes.” | Review-only authority ends at the findings report. |\n\n## Stop Conditions\n\n- “This looks suspicious.”\n- “The code could be cleaner.”\n- “The linter will catch the important parts.”\n- “The other reviewer already validated it.”\n- “This probably existed before.”\n- “It is only a tiny fix.”\n\nEach thought maps to the Rationalization Table or evidence gate. Return to the unfinished workflow step.\n\n## Success Criteria\n\n- Pin an immutable, reproducible review scope and account for dirty worktree files when included.\n- Examine Correctness, Spec, and Standards, marking unavailable lenses explicitly.\n- Trace every behaviorally significant hunk through enough context to establish its consequence.\n- Report only defects introduced or worsened by the scoped change.\n- Make every finding survive falsification and include severity, lens, changed location, trigger, consequence, and evidence.\n- Remove duplicates, generic smells, nitpicks, tooling restatements, and unsupported speculation.\n- Preserve review-only authority and leave files and external systems unchanged.\n- Report honest coverage and residual risk even when no findings survive.\n\n## Common Mistakes\n\n| Mistake | Fix |\n|---------|-----|\n| Reviewing `base..HEAD` without confirming intent | Resolve the merge base and use the frozen comparison the review actually promises. |\n| Ignoring staged, unstaged, or untracked work | State whether each category is in scope and inspect included files separately. |\n| Treating the diff as complete context | Follow changed symbols into callers, state owners, tests, and configuration. |\n| Reporting missing tests as defects by default | Name the concrete unprotected behavior and consequence or leave it as residual risk. |\n| Reporting a pre-existing issue | Drop it unless the scoped change materially worsens it. |\n| Trusting subagent output | Reproduce or trace each candidate through the primary evidence gate. |\n| Returning a review summary before findings | Lead with findings or `No findings.` |\n\n## Failure Modes\n\n- **Invalid or unavailable base:** Report the failed ref resolution and ask for one valid fixed point; do not guess across materially different histories.\n- **Diff too large for complete review:** Split by independent subsystem or commit range, state the completed partitions, and name every unreviewed one. Never sample silently.\n- **Specification unavailable:** Continue with other lenses and avoid spec-completeness claims.\n- **External issue or PR inaccessible:** Ask for pasted acceptance criteria only when Spec coverage is required; otherwise mark the lens unavailable.\n- **Generated or binary change:** Review its source and generation contract when available; mark opaque output as residual risk.\n- **Diagnostics would mutate state:** Skip them, use read-only evidence, and report the unexecuted check.\n- **Conflicting standards:** Cite the conflict and apply the more local binding instruction; ask only when precedence remains ambiguous.\n\n## Genuine Exceptions\n\nWhen complete review is genuinely impossible, name the blocked lens or scope, show the evidence for the block, review every unaffected part, and state the weaker conclusion. Time pressure, diff size, absent subagents, sunk cost, and an expectation of “just a quick look” do not justify silent sampling or unsupported findings.\n\n## Summary\n\nReview the pinned change, falsify every candidate, and report only evidence-backed findings. In review-only mode, stop without editing.\n","# Code Review\n\n## Overview\n\n**Review changed behavior, not code aesthetics.** Report a finding only when the scoped change introduces a concrete defect, violates an applicable contract, or creates demonstrable engineering risk. Attempt to falsify every candidate before reporting it; no evidence means no finding.\n\nReview is read-only by default: a request to review, assess, or inspect authorizes repository inspection and safe diagnostics, not edits. Explicitly requested fixes follow the completed report, never precede it.\n\n## When to Use\n\n- Review a branch, PR, commit range, patch, or work-in-progress change.\n- Check implementation against an issue, PRD, specification, acceptance criteria, or migration plan.\n- Assess staged, unstaged, or newly added files before commit.\n- Investigate whether a patch introduces correctness, security, data, concurrency, compatibility, or regression risk.\n- Check changed code against documented repository standards and coherent local patterns.\n\n## Do Not Use When\n\n- The request asks how unchanged code works; use `understand-codebase` when installed, otherwise trace the current path read-only.\n- A reported runtime failure needs root-cause discovery; use `diagnose` when installed, otherwise reproduce and isolate it before proposing changes.\n- A finished artifact needs hostile-input verification; use `verify-work` when installed, otherwise execute adversarial fixtures against its stated promise.\n- The request is a broad architecture assessment or refactor plan without a bounded diff; use `engineering-best-practices` when installed, otherwise assess the architecture separately.\n- The task is to summarize changes or draft a pull-request description; write that artifact instead of inventing review findings.\n\n## Required Context\n\nEstablish four facts before reviewing:\n\n- **Scope:** branch, PR, commit range, patch, or working-tree changes\n- **Endpoints:** immutable base and head identities, plus whether staged, unstaged, and untracked files are included\n- **Contracts:** applicable specification, repository instructions, standards, tests, and migration or compatibility promises\n- **Authority:** `review-only` unless fixes were explicitly requested\n\nHonor an explicit base; otherwise resolve the PR target, configured upstream, or repository default branch, in that order, and state the inferred base. Ask one pointed question only when plausible bases produce materially different diffs. Done when scope, endpoints, contracts, and authority mode are written down.\n\n## Workflow\n\n### 1. Pin the exact change set\n\nFor committed branch work, record the merge base and review `git diff \u003Cbase>...\u003Chead>`. Record `git log \u003Cbase>..\u003Chead> --oneline` for intent clues, never as a diff substitute.\n\nFor work-in-progress changes, also inspect:\n\n- staged changes with `git diff --cached`;\n- unstaged changes with `git diff`;\n- relevant untracked files from `git status --short`, read directly because Git has no diff base for them.\n\nCapture the resolved base SHA, head SHA, worktree status, changed-file list, and exact diff commands. Reject an invalid ref. On an empty diff, report the resolved scope and stop; never review unrelated files. Done when every reviewed file belongs to one frozen, reproducible scope.\n\n### 2. Load the governing contracts\n\nRead the binding instructions for each changed path — the nearest `AGENTS.md`, contributor guidance, coding standards, test conventions, schemas, and migration rules — then locate the originating specification in this order:\n\n1. A user-provided path or linked issue\u002FPR\n2. Issue references in the branch or commit metadata\n3. A matching specification, PRD, decision log, or ticket under repository documentation\n4. Explicit acceptance criteria in the request\n\nIf none is available, mark the Spec lens `unavailable` and continue with Correctness and Standards. Never invent requirements from branch names or commit messages.\n\nTreat formatter, linter, type-checker, and compiler output as diagnostic evidence; restate their issues only when the review exposes a missing enforcement path or a user-visible consequence they do not explain.\n\nDone when each lens has named sources or an explicit `unavailable` status:\n\n| Lens | Governing evidence |\n|------|--------------------|\n| Correctness | Runtime contracts, callers, tests, types, schemas, invariants |\n| Spec | Issue, PRD, specification, acceptance criteria |\n| Standards | Binding repository docs and coherent analogous code |\n\n### 3. Understand the changed behavior\n\nRead the diff, then enough surrounding code to understand every changed behavior. Follow changed symbols through callers, callees, state owners, configuration, persistence, asynchronous boundaries, and externally visible outcomes. Check which important conditions the changed path's tests prove or omit.\n\nClassify every changed file as behavioral code, test, configuration, schema\u002Fmigration, generated\u002Fvendor\u002Flock output, or documentation, giving extra scrutiny to trust boundaries, durable state, destructive operations, compatibility edges, concurrency, retries, error paths, and migrations.\n\nRun focused read-only or safely isolated diagnostics when they can confirm a candidate defect. Never install dependencies, update snapshots, regenerate outputs, or mutate external systems to complete a review; report the unexecuted check as residual risk.\n\nDone when every changed file is classified and every behaviorally significant hunk is traced to its contract and observable consequence.\n\n### 4. Generate candidates through three lenses\n\nReview the same frozen scope through all available lenses:\n\n**Correctness and regression risk**\n\n- Trace validation, authorization, state transitions, error behavior, cleanup, retries, concurrency, ordering, idempotency, compatibility, and data migration where applicable.\n- Check boundary values and failure paths, not only the happy path.\n- Treat a missing test as a finding only when a concrete changed behavior is both risky and unprotected; test preference alone is not a defect.\n\n**Specification compliance**\n\n- Identify missing, partial, or incorrectly implemented requirements.\n- Flag additions outside the agreed scope that create cost, risk, or incompatibility.\n- Cite the exact contract language for every Spec finding.\n\n**Repository standards**\n\n- Apply documented rules and coherent patterns from analogous code.\n- Use `engineering-best-practices` when installed only when the request explicitly includes maintainability or architecture; otherwise apply project-local evidence directly.\n- Report maintainability issues only when the diff creates a concrete defect risk or demonstrable change cost. Never manufacture findings from a generic smell checklist.\n\nFor each candidate, record the trigger, actual behavior, consequence, changed location, and supporting contract. Done when every available lens is examined and every candidate has a falsifiable consequence.\n\n### 5. Use parallel reviewers only when they earn their cost\n\nWhen the harness supports subagents and the diff spans at least two independent subsystems or more than 500 non-generated changed lines, dispatch at most three reviewers: Correctness, Spec, and Standards. Give each the same frozen scope and only its governing sources. Ask for candidate findings, not a verdict.\n\nFor smaller diffs or harnesses without subagents, run the lenses sequentially. Parallel output never becomes a finding automatically; the primary reviewer must validate, deduplicate, and rank every candidate. Done when all reviewer output passes the same evidence gate.\n\n### 6. Falsify and rank every candidate\n\nAttempt to disprove each candidate before reporting it:\n\n1. Confirm the scoped change introduces or materially worsens the issue.\n2. Read surrounding implementation, callers, tests, and configuration for a handling path that invalidates it.\n3. Execute the smallest safe reproducer or focused check when feasible.\n4. Confirm a realistic trigger and concrete consequence.\n5. Deduplicate findings that share one root cause.\n\nDrop candidates that are pre-existing, purely stylistic, speculative, automatically enforced, outside scope, or preference without consequence. Record unverified concerns as residual risk, not findings.\n\nAssign the lowest defensible severity:\n\n| Severity | Threshold |\n|----------|-----------|\n| **P0** | Immediate broad outage, irreversible loss, or critical security compromise |\n| **P1** | Likely security, data, or core-function failure requiring merge blockage |\n| **P2** | Real bounded correctness, reliability, compatibility, or significant maintenance defect |\n| **P3** | Small but concrete defect with a realistic trigger; never a nitpick |\n\nDone when every retained finding survives falsification, has one severity, and cites the changed line plus supporting evidence.\n\n### 7. Report findings first\n\nSort findings by severity, then file location, in one unified list; tag each with its lens or lenses so duplicate Correctness and Spec reports remain one issue.\n\nFormat each finding as:\n\n```markdown\n### [P1][Correctness, Spec] Cross-tenant export bypass: `src\u002Fexport.js:3`\n\nWhen an authenticated requester supplies a workspace ID it does not own, the new path calls\n`store.export(workspaceId)` without checking membership. This violates the specification's\ncross-tenant `404` requirement and can expose another tenant's data. Add the ownership predicate\nat this boundary and cover the cross-tenant case.\n```\n\nKeep each finding to one short paragraph with the trigger, behavior, consequence, evidence, and correction direction. Do not praise the patch, narrate the process, or bury findings under a summary.\n\nAfter the findings, report:\n\n- frozen scope and contracts reviewed;\n- commands or tests run;\n- unavailable lenses, unreviewed files, and residual risk.\n\nIf no candidate survives, lead with `No findings.` and still report coverage and residual risk. In review-only mode, stop there. If fixes were explicitly requested, apply only supported fixes through the repository's implementation or TDD workflow after the report, then re-review the resulting diff. Done when every finding is actionable and evidenced, every gap is explicit, and no unauthorized edit occurred.\n\n## Core Example\n\nSpecification: “Export data only when the requester belongs to the workspace; return `404` for cross-tenant access.”\n\nScoped diff:\n\n```diff\n export function exportWorkspace(requester, workspaceId, store) {\n   if (!requester) return { status: 401 };\n-  if (!requester.workspaceIds.includes(workspaceId)) return { status: 404 };\n   return { status: 200, body: store.export(workspaceId) };\n }\n```\n\nReport:\n\n> ### [P1][Correctness, Spec] Workspace export loses tenant authorization: `candidate-auth.js:3`\n>\n> Any authenticated requester can now export an arbitrary workspace because the changed path reaches `store.export(workspaceId)` without verifying membership. The removed condition enforced the specification's cross-tenant `404` requirement, so this change creates cross-tenant data exposure. Restore ownership enforcement at this boundary and add a cross-tenant regression test.\n\nDo not add generic naming, abstraction, or style findings: the authorization regression is the evidence-backed review result.\n\n## Tool Guidance\n\n**Prefer:**\n\n- `git rev-parse`, `git merge-base`, `git status --short`, focused `git diff`, and `git log`\n- `rg --files` and `rg` for contracts, symbols, callers, and tests\n- Read-only issue or PR retrieval when linked context is available\n- Existing focused tests, type checks, linters, and analyzers that do not rewrite files\n- Independent subagents only for genuinely substantial diffs\n\n**Avoid:**\n\n- Reviewing only commit messages, filenames, or the diff without surrounding code\n- Whole-repository audits unrelated to the frozen scope\n- Formatter, dependency, snapshot, generated-file, or external-system mutation\n- Mandatory subagent use for small reviews\n\n## Common Rationalizations\n\n| Shortcut | Reality |\n|----------|---------|\n| “Two independent reports can be pasted verbatim.” | Validate, deduplicate, and rank candidates before reporting. |\n| “A universal smell baseline catches maintainability issues.” | Generic smells manufacture noise; require repository evidence and concrete consequence. |\n| “No base was supplied, so review must stop for a question.” | Resolve the PR target, upstream, or default branch and state the inference. |\n| “Parallel agents always improve review quality.” | Parallelism adds cost and duplicates; use it only for substantial independent surfaces. |\n| “No specification means the review is blocked.” | Mark that lens unavailable and continue with correctness and standards. |\n| “A review request implies permission for small fixes.” | Review-only authority ends at the findings report. |\n\n## Stop Conditions\n\n- “This looks suspicious.”\n- “The code could be cleaner.”\n- “The linter will catch the important parts.”\n- “The other reviewer already validated it.”\n- “This probably existed before.”\n- “It is only a tiny fix.”\n\nEach thought maps to the Rationalization Table or evidence gate. Return to the unfinished workflow step.\n\n## Success Criteria\n\n- Pin an immutable, reproducible review scope and account for dirty worktree files when included.\n- Examine Correctness, Spec, and Standards, marking unavailable lenses explicitly.\n- Trace every behaviorally significant hunk through enough context to establish its consequence.\n- Report only defects introduced or worsened by the scoped change.\n- Make every finding survive falsification and include severity, lens, changed location, trigger, consequence, and evidence.\n- Remove duplicates, generic smells, nitpicks, tooling restatements, and unsupported speculation.\n- Preserve review-only authority and leave files and external systems unchanged.\n- Report honest coverage and residual risk even when no findings survive.\n\n## Common Mistakes\n\n| Mistake | Fix |\n|---------|-----|\n| Reviewing `base..HEAD` without confirming intent | Resolve the merge base and use the frozen comparison the review actually promises. |\n| Ignoring staged, unstaged, or untracked work | State whether each category is in scope and inspect included files separately. |\n| Treating the diff as complete context | Follow changed symbols into callers, state owners, tests, and configuration. |\n| Reporting missing tests as defects by default | Name the concrete unprotected behavior and consequence or leave it as residual risk. |\n| Reporting a pre-existing issue | Drop it unless the scoped change materially worsens it. |\n| Trusting subagent output | Reproduce or trace each candidate through the primary evidence gate. |\n| Returning a review summary before findings | Lead with findings or `No findings.` |\n\n## Failure Modes\n\n- **Invalid or unavailable base:** Report the failed ref resolution and ask for one valid fixed point; do not guess across materially different histories.\n- **Diff too large for complete review:** Split by independent subsystem or commit range, state the completed partitions, and name every unreviewed one. Never sample silently.\n- **Specification unavailable:** Continue with other lenses and avoid spec-completeness claims.\n- **External issue or PR inaccessible:** Ask for pasted acceptance criteria only when Spec coverage is required; otherwise mark the lens unavailable.\n- **Generated or binary change:** Review its source and generation contract when available; mark opaque output as residual risk.\n- **Diagnostics would mutate state:** Skip them, use read-only evidence, and report the unexecuted check.\n- **Conflicting standards:** Cite the conflict and apply the more local binding instruction; ask only when precedence remains ambiguous.\n\n## Genuine Exceptions\n\nWhen complete review is genuinely impossible, name the blocked lens or scope, show the evidence for the block, review every unaffected part, and state the weaker conclusion. Time pressure, diff size, absent subagents, sunk cost, and an expectation of “just a quick look” do not justify silent sampling or unsupported findings.\n\n## Summary\n\nReview the pinned change, falsify every candidate, and report only evidence-backed findings. In review-only mode, stop without editing.\n",{"name":5,"license":15,"metadata":24,"description":27},{"summary":25,"category":26},"Reviews a pinned diff for correctness, spec compliance, and repository-standard violations with evidence-backed findings.","Quality","Use when a user asks to \"review this branch\", \"review this PR\", \"review my changes\", or \"review since main\". Also use for pre-merge review, work-in-progress diffs, staged changes, suspected regressions in a patch, or checking implementation against a specification.\n","main","9a3fe345285b86c3071deb2ecb302dff99a855b8","evals\u002Fremaining-skills-2026-10-04\u002Fsubjects\u002Foriginal\u002Fcode-review",0,"https:\u002F\u002Fgithub.com\u002Fadriancodes\u002Fskills","https:\u002F\u002Fgithub.com\u002Fadriancodes","2026-11-12 06:06:49",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add adriancodes\u002Fskills --skill code-review",{"tool":41,"command":42},"bunx","bunx skills add adriancodes\u002Fskills --skill code-review",{"tool":44,"command":45},"pnpm","pnpm dlx skills add adriancodes\u002Fskills --skill code-review","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fadriancodes\u002Fskills\u002Fblob\u002Fmain\u002Fevals\u002Fremaining-skills-2026-10-04\u002Fsubjects\u002Foriginal\u002Fcode-review\u002FSKILL.md",true,[49],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"cases.jsonl","OTHER","其他",2505,"https:\u002F\u002Fgithub.com\u002Fadriancodes\u002Fskills\u002Fblob\u002Fmain\u002Fevals\u002Fremaining-skills-2026-10-04\u002Fsubjects\u002Foriginal\u002Fcode-review\u002Fcases.jsonl",[56,63,70,77,84,91],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M78C1QNZAXX06QMDJ8R65TTV","write-agent-instructions","Make the smallest evidence-backed change to persistent project instructions and test downstream behavior.","https:\u002F\u002Fgithub.com\u002Fadriancodes\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fwrite-agent-instructions\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"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},"01M78C1K3QVP67S0TRERZ5YNGB","verify-work","Use when a finished, runnable artifact (a script, config, parser, prompt, or CLI, not a diff under review) must survive hostile input before shipping: the user asks to \"verify this script\", \"find the loopholes\", \"test this properly against bad input\", or asks \"is this ready to ship\" about one. Also when a shipped artifact failed on an input nobody tried, or when verification so far is a happy-path smoke test.","https:\u002F\u002Fgithub.com\u002Fadriancodes\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fverify-work\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},"01M78C1DDYDEQ7H1HNW84VW1V3","understand-codebase","Use when the user asks to \"understand this codebase\", \"how does this feature work in this repo?\", \"trace this feature through the code\", or needs onboarding, an architecture explanation, or answers about unfamiliar code. Also use for read-only code-path questions before a change.","https:\u002F\u002Fgithub.com\u002Fadriancodes\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Funderstand-codebase\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},"01M78C18C6TG62PY1PQBGCSKXR","tdd","Use when writing or changing production behavior: implementing a feature, fixing a bug whose cause is already known, or altering stored, transformed, migrated, serialized, or externally transmitted data. Also use when a user says \"use TDD\", \"test first\", or \"red-green-refactor\", and when code is being written before a failing test. For a failure whose cause is unknown, diagnose first.","https:\u002F\u002Fgithub.com\u002Fadriancodes\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftdd\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},"01M78C151714X4Z3VQW5F23FZW","simplify-code","Use when the user asks to \"simplify this code\", \"remove the fluff\", or \"clean up this over-engineered module\", or wants working code that is bloated, duplicated, over-abstracted, or dependency-heavy reduced without changing behavior.","https:\u002F\u002Fgithub.com\u002Fadriancodes\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsimplify-code\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},"01M78C127TPYNJBX0B4BCF7246","review-session","Review an agent session for evidence-backed friction and the smallest measurable remedies.","https:\u002F\u002Fgithub.com\u002Fadriancodes\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Freview-session\u002FSKILL.md",[],[]]