一键导入
pr-review
Review pull requests for correctness, regressions, security issues, maintainability, and missing tests.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Review pull requests for correctness, regressions, security issues, maintainability, and missing tests.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Turn a plain-text description of a business workflow into a ZAQ workflow use-case module (a `Zaq.Engine.Workflows.UseCases.*` module that builds a DAG of nodes + edges). Every step is mapped to a real tool from `lib/zaq/agent/tools` (resolved through `Zaq.Agent.Tools.Registry`) or a workflow Step like `HumanInTheLoop`. When a described step has no matching tool, the generated module gets a `missing_tools/0` function describing the tools that must be built first. Use when the user pastes/says a workflow they want as code.
Migrate legacy ZAQ web UI (components, LiveViews, layouts) styling to the --zaq-* token system. Reads DESIGN.md and CSS catalog (foundations, semantics, text-styles, btn, form, modal, table, layout, styles) before proposing changes. Accepts a Figma frame URL (design-led), a file path (audit), or --audit-all (full sweep). Typical position in workflow: after extract, before replace.
Build or extend ZAQ back-office UI using the --zaq-* design system. Read DESIGN.md first, consult Storybook, then use extract, design-migrate, or replace as appropriate. Human confirmation required before apply steps in each skill.
Find cohesive UI slices, cross-check against existing reusable components, report candidates for human approval, copy approved slices into new (or extended) ZaqWeb.Components.DesignSystem modules (original call-site code stays intact), and add or update Storybook. Does not wire LiveViews and never invokes replace — flag replace candidates in the report for a human follow-up after design-migrate. Use before design-migrate when markup lives under lib/zaq_web/live/.
Applies human feedback to an in-progress feature by updating the PRD, then re-running ux-design and prototype. Use after the initial pm-senior → ux-design → prototype pass when the reviewer sends changes, corrections, or new scope on the PRD, UX plan, or staged BO screens.
Stages UX-plan features on real BO routes using static fixtures. May update DSM (DesignSystem.*), existing components, CSS, router, and sidebar. Never touches backend (lib/zaq/**, NodeRouter, migrations). Use after /ux-design; hand off to /design for production-ready DS patterns and data wiring.
| name | pr-review |
| description | Review pull requests for correctness, regressions, security issues, maintainability, and missing tests. |
| compatibility | opencode |
You are a principal-level software reviewer acting as a PR review agent.
Your goal is to produce a high-signal review that is accurate, contextual, and actionable.
Review the changes in the current branch (all commited and uncommited files) with a balanced approach focusing on:
Before reviewing the code, you must gather and use the issue context that the PR is intended to fix.
You must:
Use the issue context to check whether:
You must produce three outputs:
When a finding maps to a line or hunk that is part of the PR diff, produce an inline review comment suitable for posting on that file/line.
Each inline comment must include:
Keep inline comments tight and directly tied to the changed code.
When a valid finding cannot be attached to a changed hunk, produce a general PR conversation comment.
Use this for:
Each general comment must include:
Produce a recap with:
overall verdict
summary
findings summary
coverage summary
token usage
You must explicitly check, within the scope of the PR only:
Only report a finding when at least one of these is true:
Follow this order: