← All Learning Paths

Code Review Specialist

Turn review from gatekeeping into teaching: acceptance criteria, debt bookkeeping, mutation-tested coverage, policy-as-code, and reviews that finish in hours.

technicalbeginner7 nodes10.08h total

Path overview

评审专家的价值不是抓住更多 bug,而是让整个团队少制造 bug。本路径从评审方法与验收标准讲起,覆盖技术债务的记账方法与特征化测试,再落地变异测试、依赖门禁等自动化手段,把人的注意力留给设计与可维护性。

The reviewer value is not catching more bugs but preventing the team from making them. This path covers review craft, acceptance criteria, debt bookkeeping, mutation testing, and policy as code.

  1. Run "The pre-commit command is available on PATH." from "Add Pre-commit Hooks for Lint and Tests" and confirm the documented result "Install the pre-commit framework once per machine, outside the project virtual environment.".

    Completion criteria: Run the steps through "The pre-commit command is available on PATH.", paste the command output, and mark the line that matches "Install the pre-commit framework once per machine, outside the project virtual environment."; then rerun with one parameter changed.

    Next step: Add Mutation Testing to Critical Modules

    ⏱ 0.5h

  2. Apply "Add Mutation Testing to Critical Modules" to a code review task, checking that "Both packages appear in devDependencies and a stryker.conf.json can reference the vitest" appears after the "Measure whether the test suite actually detects faults in critical business logic, not just" step.

    Prerequisites: Add Pre-commit Hooks for Lint and Tests

    Completion criteria: Deliver a transcript of "Add Mutation Testing to Critical Modules" with each step's command and observed state, ending at "Measure whether the test suite actually detects faults in critical business logic, not just".

    Next step: Block Vulnerable Dependencies at Pull Request Time

    ⏱ 0.5h

  3. Execute "Block Vulnerable Dependencies at Pull Request Time" end to end, then repeat the last step with one parameter changed and compare "The check fails and comments the offending package, advisory, and license on the pull".

    Prerequisites: Add Mutation Testing to Critical Modules

    Completion criteria: Run "Block Vulnerable Dependencies at Pull Request Time" twice — once as written and once with a changed input — and attach both transcripts with the observed difference.

    Next step: Review API Contract Changes Before Merge

    ⏱ 0.5h

  4. Follow "Review API Contract Changes Before Merge" and record "Every breaking change is identified before merge." at the step where it should appear, using "Classify each change: Mark additions as compatible and removals, required additions, type" as the check.

    Prerequisites: Block Vulnerable Dependencies at Pull Request Time

    Completion criteria: Deliver a transcript of "Review API Contract Changes Before Merge" with each step's command and observed state, ending at "Every breaking change is identified before merge.".

    Next step: Text Diff Comparison

    ⏱ 0.5h

  5. Run two different inputs through "Text Diff Comparison" and show where the outputs diverge.

    Prerequisites: Review API Contract Changes Before Merge

    Completion criteria: Paste two input/output pairs from "Text Diff Comparison" and annotate the one where "Compare two text blocks line by line and visualize the differences with added, removed, and" changes the result.

    Next step: Classify Review Risk per Changed File

    ⏱ 0.25h

  6. Turn JSON object: { files: [{ file, added, removed, touchesTests?, into [{file:README.md,risk:medium},{file:src/auth.ts,risk:high}] by completing "Classify Review Risk per Changed File" with a reproducible script and a failing-case note.

    Prerequisites: Text Diff Comparison

    Completion criteria: Attach the solution file for "Code Review Specialist", two passing sample runs, and one failing run whose error matches the contract.

    Next step: Capstone: Code Review Specialist

    ⏱ 0.33h

  7. Deliver the "Build a Data Diff CLI" blueprint with "Snapshot reader" working and "Key indexer" recorded as evidence.

    Prerequisites: Text Diff Comparison, Classify Review Risk per Changed File

    Completion criteria: Run the project's test command for "Build a Data Diff CLI", paste the passing output, and attach the acceptance note for "Snapshot reader" with the test name.

    Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.

    ⏱ 4h