taiyi-architect
TaiyiForge 辅助 — 架构决策记录 ADR(长期影响决策的可追溯补充)。OpenCode / Claude / Codex / Cursor 通用。
TaiyiForge 第8阶段 — 合并前评审,REVIEW.md。四端通用。
$ npx -y skills add Dong90/oh-my-taiyiforge --skill taiyi-review --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/taiyi-reviewContext preview
The summary Claude sees to decide when to auto-load this skill.
TaiyiForge 第8阶段 — 合并前评审,REVIEW.md。四端通用。
name: taiyi-review description: TaiyiForge 第8阶段 — 合并前评审,REVIEW.md。四端通用。 paradigm: Momus
> 进入本阶段前请优先读 `.taiyi/changes/<slug>/PHASE-CONTEXT.md`(~500 tokens),不要全量加载上游工件。
本阶段使用以下框架:
| 框架 | 用途 | 何时加载 | |------|------|---------| | **Harness** | 阶段门禁与推进(`status` → `continue --approver`;legacy:`npx taiyi complete`) | 全程 | | **GStack** | `review` — 使用 GStack review 做 diff 安全分析 | Round 1 FR 步骤前(可选) | | **OMO** | 作为 review 门控的工作流入口 | 全程 |
**Superpowers / OpenSpec / Spec-Kit** 在本阶段不涉及。
| Profile | REVIEW.md 要求 | |---------|--------------| | `full` | 4 rounds 完整评审(diff/架构/测试/文档)+ 修订循环 + ⭐ 总体评分 | | `api/ui` | 同 full | | `lite` | 简化为 3 rounds(跳过架构评审)+ 修订循环 + ⭐ 评分 | | `spike/micro` | 简化到 1 round(代码可读性)+ ⭐ 评分 | | `nano` | 跳过 |
---
| 层 | 路径 | 职责 | |----|------|------| | **语义真源** | `review.json` | Zod(`src/schemas/review.ts`) | | **生成视图** | `REVIEW.md` | hbs(`src/templates/review.hbs`) | | **流程** | 本 Skill | 4 rounds、修订循环、⭐ 评分 |
**工作流**:review-loop 机器审查 → 更新 json findings → `render <slug> review` → `status` → `continue --approver "名"`。
详见 [`docs/taiyi/artifact-contract.md`](../../docs/taiyi/artifact-contract.md)。
| 字段 | 要求 | |------|------| | `title` | 评审标题 | | `findings` | `severity` / `description` / `file` / `line` / `resolved` | | `code_quality` | 可选;⭐ 各维度 1–5 | | `test_coverage` | 可选;层覆盖摘要 | | `blocking_items` / `suggestion_items` | 可选 | | `verdict` / `summary` | 可选;合并门槛与总结 |
除更新 Finding 状态外,**不要**手改 reviewer 生成的 REVIEW.md 结构;结构化数据以 `review.json` 为准。
除了修改实现外,不要修改 reviewer agent 生成的 REVIEW.md 内容。
审查 git diff 中的每个改动(逐文件),检查:
输出格式 — 每个 finding 一条:
### FR-1: [标题] **File**: `src/foo/bar.ts:45` **Issue**: [一句话描述问题] **Severity**: critical / major / minor **Suggestion**: [具体修改建议] **AC Trace**: AC-1.2, AC-3.1
审查实现与 DESIGN.md 的一致性:
### AR-1: [标题] **File**: `src/foo/bar.ts` **Issue**: [架构级问题,如偏离了 DESIGN.md 选定的方案] **Severity**: critical / major / minor **Suggestion**: [重构或补充方案]
对 diff 中所有新增/修改的 export 函数,逐一验证调用链:
检查方式:grep 新增函数名在整个 codebase 中的调用次数。
审查测试覆盖率:
---
对每个 `critical` / `major` finding → agent 修复 → 提交 → 重跑测试 → 更新 REVIEW.md Finding 状态为 "Resolved"。
修订循环规则:
## ⭐ 总体评分 | 维度 | Score (1-5) | 备注 | |------|------------|------| | 功能性 | 5 | 所有 AC 满足 | | 架构 | 4 | 方案一致,Singleton 模式不完全适用 | | 测试 | 5 | 边界/错误路径全覆盖 | | 文档 | 5 | README/CLAUDE.md 已更新 | | 维护性 | 4 | 部分函数可进一步拆分 | **汇总**: 4.6 / 5.0 — 可合并
**合并门槛**:
---
1. 逐项检查 `## 质量自检`;有未通过项则不要过关。 2. **机器审查**(review 阶段强制):`scripts/taiyi-forge.sh review-loop <slug>` 或 `/taiyi:review-loop`,直到无 blocking findings(见 `engineTruth` / review-loop 输出)。 3. **health 门禁**(仅当 `status` 显示 medium/high 复杂度且未 `mark-aux`):加载 `@taiyi-health` → 产出 `health-report.md` → `scripts/taiyi-forge.sh mark-aux <slug> taiyi-health`。 4. 预检:`scripts/taiyi-forge.sh status <slug> --json --compact` — 解析 `engineTruth`(`qualityReady` / `blockers`)。 5. 用户确认后过关:`scripts/taiyi-forge.sh continue <slug> --approver "名"`(review 人工门)。 6. 过关后再 `status --json --compact`,读 `engineTruth`;若 `currentPhase` 已变为 `integration`,切换到 taiyi-integration Skill 并通知用户。
Legacy:`npx taiyi complete <slug> review --approver "名"` 仍可用;聊天优先 `/taiyi:continue`。
| 下游 | 需要 | |------|------| | `taiyi-integration` | REVIEW.md → 归档的必要附件;修订记录 → 变更历史;⭐ 评分 → 归档报告的重要组成部分 |
| 场景 | 处理 | |------|------| | git diff 为空(无改动) | 评审所有已过关阶段的 artifact(CHANGE/REQUIREMENT/DESIGN/TASK/TEST),检查一致性 | | 发现 critical 问题 | agent 立即修复 → 测试 → 更新 REVIEW.md。不要等待人工 | | 修订循环中测试挂了 | 修复 → 更新 Finding 状态 → 重跑全部测试。**不删除 finding** | | 汇总 < 3.5 | **不能过关 review 阶段**,列出需要大改的项目,等用户指示 | | 人工 reviewer 建议大改 | 走修订循环,每次走完检查 diff + regress 测试。禁止直接 apply 所有建议 | | 误过关本阶段或后续 | `scripts/taiyi-forge.sh undo <slug> review` |
<fatal_constraints>
</fatal_constraints>
Repo: Dong90/oh-my-taiyiforge
TaiyiForge 辅助 — 架构决策记录 ADR(长期影响决策的可追溯补充)。OpenCode / Claude / Codex / Cursor 通用。
TaiyiForge 辅助 — Token 压缩编排:/taiyi:token compress + Superpowers subagent + ECC…
TaiyiForge 辅助 — 系统/产品架构图(Mermaid · SVG 海报 · 嵌入 DESIGN.md)。OpenCode / Claude / Codex / Cursor…