design-review-gate hook (PostToolUse)

design-review-gate hook (PostToolUse) A workflow diagram generated by Archify. 01 / Checks, in order 02 / Silent (exit 0) 03 / Signal to the agent Write / Edit done · the file is already written · Checks, in order Write / Edit done the file is already written UI file? · tsx, vue, css, components/ · Checks, in order UI file? tsx, vue, css, components/ Run in progress? · references.md newer than verdict · Checks, in order Run in progress? references.md newer than verdict alive verdict newer? · .design-review/verdict.json · Checks, in order alive verdict newer? .design-review/verdict.json DESIGN_REVIEW_GATE · warn (default) or block · Checks, in order DESIGN_REVIEW_GATE warn (default) or block Skip · not UI, or mode is off · Silent (exit 0) Skip not UI, or mode is off Skip · pipeline is applying fixes · Silent (exit 0) Skip pipeline is applying fixes Pass · surface already alive · Silent (exit 0) Pass surface already alive warn: additionalContext · once per file per session · Signal to the agent warn: additionalContext once per file per session block: exit 2 + stderr · feedback, cannot undo the write · Signal to the agent block: exit 2 + stderr feedback, cannot undo the write block warn yes no yes no no yes Legend User UI Agent logic Policy