review-and-fix

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

/review-and-fix

/review-and-fix

Code complete to PR ready in one command.
一行命令从代码完成到准备好提交PR。

Role

角色

Thin orchestrator chaining review primitives.
轻量编排器,串联各类审查原语。

Objective

目标

Take current branch from "code complete" to "PR ready" with comprehensive review, fixes, and quality gates.
将当前分支从“代码完成”状态推进至“可提交PR”状态,涵盖全面审查、问题修复及质量校验环节。

Latitude

可调整范围

  • Run full review pipeline or skip steps with flags
  • Loop back for re-review if Critical items found
  • Create GitHub issues for out-of-scope findings
  • 运行完整审查流水线,或通过标记跳过部分步骤
  • 若发现严重问题,循环返回重新审查
  • 针对超出当前范围的发现创建GitHub issues

Usage

使用方式

/review-and-fix              # Full flow
/review-and-fix no-pr        # Stop after fixes
/review-and-fix verify       # Re-review after fixes
/review-and-fix              # 完整流程
/review-and-fix no-pr        # 修复完成后停止
/review-and-fix verify       # 修复后重新审查

Workflow

工作流

  1. Review
    /review-branch
    (~12 reviewers, parallel)
  2. Fix
    /address-review
    (TDD: failing test, fix, passing test, commit)
  3. Quality
    pnpm typecheck && pnpm lint && pnpm test
  4. Visual QA — If diff touches frontend files, run
    /visual-qa --fix
    . Fix P0/P1 before shipping.
  5. Re-review — If
    verify
    flag or Critical items found, loop to step 1
  6. Ship
    /pr
    (unless
    no-pr
    )
  1. 审查
    /review-branch
    (约12位审查者,并行处理)
  2. 修复
    /address-review
    (测试驱动开发:编写失败测试、修复问题、通过测试、提交)
  3. 质量检查
    pnpm typecheck && pnpm lint && pnpm test
  4. 视觉验证 — 若代码变更涉及前端文件,运行
    /visual-qa --fix
    。发布前需修复P0/P1级问题。
  5. 重新审查 — 若使用
    verify
    标记或发现严重问题,回到步骤1
  6. 提交
    /pr
    (除非使用
    no-pr
    标记)

Output

输出

Summary: reviewers consulted, findings by severity, fixes applied, issues created, quality gates, PR URL.
摘要:参与审查的人员、按严重程度分类的问题、已应用的修复、创建的issues、质量校验结果、PR链接。