| name | leetcode-tutorial-review |
| description | v0.1.0 - Review one LeetCode tutorial checkpoint or full draft as an independent gate. Use when deciding whether a problem tutorial step can advance, needs revision, or must block because pressure, break, change, check evidence, code continuity, or final-code placement is weak. |
LeetCode Tutorial Review
Overview
Review a LeetCode or OJ-style tutorial as an independent acceptance gate. The
reviewer is not the builder. It must decide whether the current checkpoint can
advance with pass, revise, or block.
The primary question is whether the reader can move from the previous visible
baseline to this checkpoint without hidden logic or unjustified template jumps.
When to Use
leetcode-tutorial-build produced a needs_review step.
- A problem tutorial draft needs structural review before the next step.
- A checkpoint commit is requested and needs review-pass evidence first.
When NOT to use: writing new tutorial content, SEO enhancement, standalone
algorithm concept review, or full rewrite requests.
The Review Loop
- Identify Scope
- Determine whether the review target is one step or a full draft.
- Identify the problem facts and previous baseline.
- Verify: the target is an OJ-style problem tutorial.
- Check Problem-First Discipline
- Confirm problem requirement, input/output, examples, and constraints
appear before derivation.
- Verify: the tutorial does not start from a named template.
- Check Step Gate
- For the target step, inspect pressure, previous baseline, break, change,
check evidence, freeze, and still-lacks.
- Verify: the change follows from the break and changes only one core thing.
- Check Evidence
- Confirm checks were executed or backed by concrete manual trace evidence.
- Reject generic "checked" language.
- Verify: evidence proves this checkpoint, not just the final answer.
- Check Code Continuity
- Confirm snippets add to or replace the previous baseline.
- Confirm optimization stages preserve a bridge from first correct version
to final version.
- Verify: no hidden helper or final trick appears only at the end.
- Produce Verdict
pass: the step may advance.
revise: targeted fixes are needed before advancing.
block: the teaching chain is broken or evidence is missing.
Severity
block: no concrete check evidence, hidden final logic, problem facts
missing, or step cannot be derived from the previous baseline.
revise: pressure is present but thin, break is generic, change is too broad,
or checkpoint/freeze is unclear.
suggestion: local wording or polish that does not block progression.
Output Format
## Verdict
- verdict: pass | revise | block
- review_scope:
- may_continue_next_step: yes | no
- may_checkpoint_commit: yes | no
## Findings
- [severity] [section]: [issue]
Evidence:
Required change:
## Check Evidence Review
- checks_seen:
- evidence_quality:
## Notes
- ...
Decision Points
- If reviewing a full draft, still inspect step-by-step continuity.
- If a checkpoint commit is requested without review-pass evidence, return
block.
- If the tutorial is actually a concept tutorial, route to
tutorial-reviewer or the future algorithm workflow reviewer.
Common Rationalizations
| Rationalization | Reality |
|---|
| "The code is correct, so the step passes." | Tutorial checkpoints must teach the transition, not only land correct code. |
| "The builder ran self-checks." | Self-checks are evidence to inspect, not acceptance. |
| "The missing bridge is obvious." | If the bridge is obvious, it should be visible in the tutorial. |
| "The final answer covers it." | Final answers do not repair hidden jumps in earlier checkpoints. |
Red Flags
- No problem requirement before derivation.
- No smaller subproblem when recursion, DP, or staged optimization needs one.
- Step check is missing or unexecuted.
- Optimization appears before a first correct baseline exposes the bottleneck.
- Review output gives
pass while listing blocking issues.
Verification
Guardrails
- Do not rewrite the tutorial during review.
- Do not let build self-check substitute for review pass.
- Do not pass a step with missing check evidence.
- Do not bury blockers under compliments.