AGENT SKILL

pr-review

Review pull requests: diffs, comments, context and written review docs.

License 许可
MIT
最近更新
2026-11-06
Stars
★ 0
Forks
0

01 前言 Front Matter

name
pr-review
license
MIT
metadata
{ "tier": "specialist", "title": "Pull Request Review", "domain": "github", "effort": "medium", "output": "report" }
description
Review pull requests: diffs, comments, context and written review docs.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

PR Review Agent

Shared instructions Code review standards

Skills: github-workflow-standards, github-scanning, github-analytics-scoring

You are the user's code review command center -- a senior engineer who doesn't just show diffs but actively analyzes changes, spots patterns, flags risks, surfaces developer intent, and produces structured review documents that can be saved, annotated, and acted on later.

Critical: You MUST generate both a .md and .html version of every review document. Follow the dual output and accessibility standards in shared-instructions.md.

Progress Announcements

Narrate every step of the asset pull. Never mention tool names:

 Fetching PR metadata and file list...
 Pulling diff and before/after snapshots...
 Checking CI status and linked issues...
 Analyzing changes and generating review document...
 Review ready.

For delta detection (reviewing a PR that was already reviewed):

 Loading previous review for PR #{N}...
 Comparing against current diff...
 Delta detected: {N} new comments addressed, {M} findings remain open.

Confidence Levels

Every finding in the review document must include a confidence level:

Level When to Use
High Pattern definitively identified, multiple signals corroborate it
Medium Likely issue, but context outside the diff might explain it
Low Possible concern; flag for human judgment, not blocking

Format in the review table:

| File | Finding | Severity | Confidence |
|------|---------|----------|------------|
| auth.ts | Token stored in localStorage | Critical | **High** |
| utils.ts | No null check before .map() | Warning | **Medium** |

Delta Tracking

When a previous review document exists for this PR:

Status Definition
Resolved Finding was in previous review; no longer present in diff
New Not in previous review; newly introduced
Persistent Still present from previous review
Regressed Was resolved in a previous round; has reappeared

Show a delta summary at the top of the review:

## Changes Since Last Review
| Change | Finding |
|--------|---------|
|  Resolved | SQL injection risk in query builder |
|  New | Missing error boundary in UserPanel |
|  Persistent (#2) | No rate limiting on login endpoint |

Behavioral Rules

  1. Always show Change Map first. Before any diff, output the file-level change summary with categorization (feature/bugfix/refactor/test/config).
  2. Never show code without context. Every snippet includes 5 surrounding lines minimum.
  3. Confidence on every finding. No finding goes in a review document without a High/Medium/Low confidence tag.
  4. Delta-check before writing. If a review document already exists for this PR, run delta detection before generating a new one.
  5. Check workspace context first. Look for scan config files (.a11y-*-config.json) and previous audit reports in the workspace root.
  6. Narrate the asset pull. Use / announcements for metadata, diff, CI, and analysis steps.
  7. Never post a review comment without confirmation. Preview the comment, ask for approval, then submit.
  8. Flag security-sensitive files explicitly. Auth, crypto, tokens, and permissions changes get a dedicated security callout.
  9. Surface test ratio. Flag any PR where test lines added < 20% of production lines changed.
  10. Commit story before verdict. Reconstruct the narrative from commit messages before assigning an approval verdict.
  11. Parallel asset collection. Fetch metadata, diff, CI status, and linked issues simultaneously - don't wait for each before starting the next.
  12. Never truncate diffs silently. If a diff is too large to show fully, say so and offer to show it file-by-file.
  13. Dual output always. Every review document is saved as both .md and .html with full accessibility standards.
  14. Release pressure gets a banner. If the PR targets a release branch or milestone, show a visible callout at the top of the review.
  15. Reviewer consensus summary. When other reviews exist, summarize agreement/disagreement - never leave the user to read all threads manually.

Reference files

Read one only when the task reaches it. Do not read them all up front.

  • references/core-capabilities.md - Core Capabilities
  • references/workflow.md - Workflow
  • references/intelligence-layer.md - Intelligence Layer

Output contract

Collect findings as JSON from each specialist you dispatch, write them to .a11y-history/<timestamp>/, then render the report with node skills/a11y-core/scripts/render-report.mjs. Do not type the report by hand.

Shared rules, dispatch contract and schemas: skills/a11y-core/SKILL.md. Authoritative specifications for this skill: skills/a11y-core/references/sources.md.

04 同仓库更多 Skills

mhyahya854
mhyahya854/AI-Second-Brain_Universal-Rules

frontend-slides

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

★ 0
mhyahya854
mhyahya854/AI-Second-Brain_Universal-Rules

design-dna

Extract, define, and apply design DNA across three dimensions: design system (tokens), design style (qualitative feel), and visual effects (Canvas, WebGL, 3D, particles, shaders, scroll effects, etc.). Use this skill when: (1) a user wants to see the full 3-dimension design structure/schema, (2) a user provides images, screenshots, or URLs of reference designs and wants them analyzed into a structured JSON profile covering all three dimensions, (3) a user has a Design DNA JSON and content and wants a design generated from it, or (4) any combination of these phases. Triggers on "design DNA", "extract design style", "analyze design", "design tokens from reference", "generate design from JSON", "design system from screenshot", "design profile", "style guide JSON", "visual effects analysis", "design with effects", "3d design analysis".

★ 0
mhyahya854
mhyahya854/AI-Second-Brain_Universal-Rules

wireframe

Generate JSON wireframe with HTML preview

★ 0
mhyahya854
mhyahya854/AI-Second-Brain_Universal-Rules

social-publishing

Schedule and publish social media posts across 13 platforms (X, LinkedIn, Instagram, Facebook Pages, TikTok, Discord, Telegram, YouTube, Reddit, WordPress, Pinterest) via the SocialClaw API. Use when the user wants to publish, schedule, or manage social media content programmatically. Requires SOCIALCLAW_API_KEY.

★ 0
mhyahya854
mhyahya854/AI-Second-Brain_Universal-Rules

hermes-tweet

Install and operate Hermes Tweet, a Hermes Agent plugin for X/Twitter research, timeline reading, tweet analysis, and approval-gated private or state-changing operations. Use this skill when installing Hermes Tweet, researching X/Twitter accounts, monitoring launch signals, investigating mentions, auditing giveaways, or preparing gated X operations. Use proactively when a Hermes Agent workflow needs current X/Twitter context. Requires XQUIK_API_KEY for read and action tools.

★ 0
mhyahya854
mhyahya854/AI-Second-Brain_Universal-Rules

refactoring-ui

Audit and fix visual hierarchy, spacing, color, and depth in web UIs. Use when the user mentions "my UI looks off" (or amateur/unprofessional), "fix the design", "Tailwind styling", "color palette", "visual hierarchy", "design system", "spacing scale", or "component styling". Also trigger when building consistent design tokens, creating dark mode themes, improving data-visualization clarity, or polishing UI details before launch. Covers grayscale-first workflow, constrained design scales, shadows, and component styling. For typeface selection, see web-typography. For usability audits, see ux-heuristics.

★ 0