pr-review
Use when reviewing a pull request — Constructor Pattern awareness, security, SSOT check
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-11
- Stars
- ★ 7
- Forks
- 8
01 前言 Front Matter
- name
- pr-review
- arguments
- [ { "name": "pr", "required": true, "description": "PR number or URL" } ]
- description
- Use when reviewing a pull request — Constructor Pattern awareness, security, SSOT check
03 SKILL.md 正文
PR Review Workflow
Step 1: Load PR Context
gh pr view $pr --json title,body,files,additions,deletions,commitsgh pr diff $pr- Read PR description and linked issues
Step 2: High-Level Assessment
- What does this PR do? (feature, fix, refactor, docs)
- Is the scope reasonable? (single responsibility)
- Does the PR description explain WHY?
Step 3: Code Review Checklist
Constructor Pattern
- [ ] 1 file = 1 class = 1 responsibility
- [ ] No files >200 lines (new or modified)
- [ ] No functions >30 lines
- [ ] No overlays/patches (fixes at root cause)
- [ ] Self-extension pattern followed for new code
SSOT
- [ ] No duplicated types, constants, or logic
- [ ] Types defined before implementation
- [ ] Single source for routes, enums, config
Security
- [ ] No hardcoded secrets (API keys, tokens, passwords)
- [ ] No SQL injection vectors
- [ ] No XSS vectors in templates/JSX
- [ ] Input validation at system boundaries
- [ ] No sensitive data in logs
Tests
- [ ] New code has tests
- [ ] Edge cases covered
- [ ] No test pollution (shared state between tests)
Quality
- [ ] Error handling at boundaries
- [ ] No dead code or commented-out code
- [ ] Imports clean (no unused)
- [ ] Naming is clear and consistent
Step 4: Write Review
- For each issue found: file, line, severity (blocker/warning/nit), suggestion
- Blockers MUST be fixed before merge
- Group by file, sorted by severity
- End with overall assessment: approve / request changes / comment
04 同仓库更多 Skills
wave-audit
3-wave parallel audit — Wave 1 discovery (4 agents), Wave 2 verification (4 agents), Wave 3 cross-optimization (1 synthesizer). Each wave runs agents in parallel. Combines security review, runtime analysis, quality check, and constructor pattern into one unified workflow with evidence grading and Go/No-Go verdict.
vm-provision
End-to-end VPS provisioning — select provider → plan → provision → harden → verify (ssh-check + firewall-diff hard-gate) → handoff. 6 phases, ≥6 AskUserQuestion calls, defensive-only. Stops if either verification primitive fails.
visual-explainer
Generate beautiful, self-contained HTML pages that visually explain systems, code changes, plans, and data. Use when the user asks for a diagram, architecture overview, diff review, plan review, project recap, comparison table, or any visual explanation of technical concepts. Also use proactively when you are about to render a complex ASCII table (4+ rows or 3+ columns) — present it as a styled HTML page instead.
video-gen
Use when generating video from frame sequences — FFmpeg extraction, WebP/AVIF conversion, sprite sheets, scroll-synced playback, video encoding/transcoding. Covers the full pipeline from video source to web-ready frame sequence or optimized video.
test-matrix
Use when a project needs testing BEYOND unit tests — fuzzing, property-based, load, E2E, or mutation. Five-phase hub-and-spoke pipeline composes the right mix per language × critical path × CI target, scaffolds configs + corpus + fixtures, wires CI jobs, and defines the crash/regression triage workflow. Pure-click: every decision except intake is an AskUserQuestion.
test-gen
Use when generating tests for untested code — happy path, edge cases, error handling