AGENT SKILL

review-pr

Review a pull request or local branch diff for correctness, security, lifecycle, error handling, tests, and meaningful performance risks. Use when asked to review PR changes, a branch, a commit range, or the current working tree and return a structured review.

License 许可
GPL-3.0
所属仓库
UNRULYEON/skills
最近更新
2026-11-13
Stars
★ 0
Forks
0

01 前言 Front Matter

name
review-pr
description
Review a pull request or local branch diff for correctness, security, lifecycle, error handling, tests, and meaningful performance risks. Use when asked to review PR changes, a branch, a commit range, or the current working tree and return a structured review.

02 资源文件 1

03 SKILL.md 正文

Review PR

Review the requested change set and return a structured response.

If asked to use a structured JSON output specifically, follow the "Structured JSON Output" section. Otherwise, respond with your structured review as text, naturally as part of the conversation.

Establish scope

  1. Use the base branch, commit, or range named by the user.
  2. Otherwise determine the merge base with the repository's default branch.
  3. Include committed branch changes plus relevant staged, unstaged, and untracked files.
  4. Use available change descriptions, specifications, and review context.
  5. Focus on changed code and the unchanged call sites needed to prove or disprove a finding.

Review priorities

Prioritize:

  1. Correctness, data loss, security, crashes, and broken user behavior.
  2. Lifecycle, concurrency, stale state, cleanup, and error-handling problems.
  3. Material performance regressions on demonstrated hot paths.
  4. Missing or weak tests, judged by .agents/skills/writing-tests/SKILL.md.

Avoid speculative findings. Trace relevant callers, state transitions, cleanup paths, and existing tests before reporting an issue. Do not flag untouched code unless the change makes it unsafe.

Treat robustness ideas as suggestions unless they present a concrete correctness, security, or data-loss risk.

Finding rules

Use these severities:

  • critical: security issue, data loss, crash, or broadly broken behavior.
  • important: concrete logic, lifecycle, edge-case, or error-handling bug.
  • suggestion: worthwhile non-blocking improvement.
  • nit: precise cleanup with a concrete replacement.

For every finding:

  • Cite a repository-relative path.
  • Cite an exact changed line when possible; otherwise use null.
  • Explain the failure mode and when it occurs.
  • Give a concrete fix direction.
  • Keep the body concise and actionable.

Return REQUEST_CHANGES only when at least one critical or important finding remains. Suggestions and nits do not block approval.

Structured JSON Output

If asked to use structured JSON as your output, follow this shape exactly to ensure your response can be parsed in contexts like CI. Do not wrap it in a Markdown fence and do not write it to disk.

{
  "verdict": "REQUEST_CHANGES",
  "overview": "Short description of the reviewed change and overall assessment.",
  "findings": [
    {
      "severity": "important",
      "path": "path/to/file.ts",
      "line": 42,
      "title": "Short finding title",
      "body": "Failure mode, evidence, and concrete fix direction."
    }
  ],
  "counts": {
    "critical": 0,
    "important": 1,
    "suggestion": 0,
    "nit": 0
  }
}

verdict must be exactly APPROVE or REQUEST_CHANGES. findings must be empty when no issues remain. Counts must match the findings array.

Do not modify the repository or publish the review unless the user separately asks.

04 同仓库更多 Skills

UNRULYEON
UNRULYEON/skills

writing-for-agents

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

★ 0
UNRULYEON
UNRULYEON/skills

untangle-codebase

Untangle a whole codebase in one pass, so agents working in it read less per change, break less without noticing, and debug faster.

★ 0
UNRULYEON
UNRULYEON/skills

ui-sh

The ui.sh design system's tools for building and adapting UI: designing new UI from scratch, adding dark mode, generating a brand identity or marketing mockup board, cleaning up Tailwind classes, extracting reusable components, creating dark-mode raster image variants, comparing UI options in-browser with the ui.sh picker, making an existing UI responsive across breakpoints, and converting a screenshot, Figma export, mockup, or wireframe into semantic unstyled markup. Triggers on: design new UI, build a page or section, dark mode, add dark mode, brand kit, visual identity, marketing mockup, canonicalize Tailwind classes, clean up Tailwind, componentize, extract components, dark-mode image variant, ui.sh picker, compare UI options, make responsive, breakpoints, mobile/tablet/desktop layout, markup from image, screenshot to markup, Figma export to code, wireframe to markup.

★ 0
UNRULYEON
UNRULYEON/skills

transitions

Production-ready CSS transitions for web apps, plus tuning for motion that already exists. Use when implementing notification badges, dropdowns, modals, panel reveals, page transitions, card resizes, number pop-ins, text swaps, icon swaps, success checks, avatar group hovers, error state shakes, search/input clear, skeleton loaders, shimmer text, sliding tabs, tooltips, staggered text reveals, card hover tilt, plus-to-menu morph, or accordions. Triggers on "add a transition", "animate the dropdown", "make the modal open smoothly", "swap icon", "page slide", "stagger animation", "open / close transition", "make it animate", "fade between", "success animation", "form error", "shake on invalid", "hover lift", "avatar stack hover", "clear the search", "skeleton loader", "loading shimmer", "shimmer text", "sliding tabs", "segmented control", "tooltip", "reveal text", "tilt card", "3D hover tilt", "cursor glare", "plus to menu", "FAB morph", "accordion", "collapsible", "expand / collapse", "disclosure". Also covers polishing motion that already animates — "polish my transitions", "refine the motion", "tune the timing / easing", "make the animation feel better / less janky", "tighten the durations", "fix the stagger", "align to the motion tokens", "audit the motion", "review my animations", "scan for ad-hoc transitions", "tokenize my animations", "timing feels off", "too slow / too fast", "open close timing", "hover in out". Also the commands transitions reveal, transitions review, transitions apply, transitions polish.

★ 0
UNRULYEON
UNRULYEON/skills

simplify

Use this skill automatically when you feel your code is ready for human review, and whenever writing or reviewing code comments. Ready means the code works and achieves a stated goal, verified by your own tests and/or, if you deem it necessary, human testing.

★ 0
UNRULYEON
UNRULYEON/skills

record-take

Record a reproducible screen video of a web page with CleanShot X from a scripted take. Use when the user wants a demo, showcase or looping video of a web app, or wants to write, change, rehearse or re-record a take.

★ 0