AgentSkillsCN

visual-diff-review

生成可视化的 HTML 差异评审,包含前后架构、代码评审发现及决策背景。当用户要求根据分支、提交、范围、拉取请求或当前工作树评审变更时使用。

SKILL.md
--- frontmatter
name: visual-diff-review
description: Generate a visual HTML diff review with before/after architecture, code review findings, and decision context. Use when the user asks to review changes against a branch, commit, range, PR, or current working tree.

Diff Review

Use the visual-explainer diff-review prompt template to perform deep, evidence-backed change analysis.

Workflow

  1. Read and follow ../visual-explainer/prompts/diff-review.md.
  2. Resolve diff scope from user input (branch, commit, PR, range, or default behavior defined in the prompt).
  3. Build the required fact sheet, then generate the HTML review exactly per template constraints.
  4. Write output to ~/.agent/diagrams/, open it in the browser, and report the file path.