一键导入
code-review
Request and perform code reviews. Guidelines for reviewing code quality, finding bugs, and ensuring best practices.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Request and perform code reviews. Guidelines for reviewing code quality, finding bugs, and ensuring best practices.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
MCP-first testing workflow for Xcode apps (iOS, iPadOS, macOS). Use when the user asks to build, test, run, or verify an Xcode project — including UI checks, smoke tests, regression tests, or simulator launches. Prefers Xcode MCP tools via mcpbridge; falls back to xcodebuild/simctl CLI when MCP is unavailable.
Look up Apple Developer Documentation (Swift, SwiftUI, HealthKit, UIKit, etc.) and WWDC session transcripts using the sosumi CLI tool. Use when working with Swift/iOS code and need to check API signatures, find documentation, or understand Apple frameworks.
Automate browser interactions using agent-browser CLI. Use for taking screenshots, testing deployed sites, checking mobile views, form testing, or browser automation tasks.
Generate user-friendly changelogs from git commits. Transforms technical commits into clear release notes.
Database management with Prisma ORM. Use for migrations, schema management, seeding, and database queries.
Docker and Docker Compose commands for containerization. Use for building images, running containers, managing volumes, and orchestrating services.
| name | code-review |
| description | Request and perform code reviews. Guidelines for reviewing code quality, finding bugs, and ensuring best practices. |
| allowed-tools | Bash, Read, Edit |
| user-invocable | true |
Guidelines for requesting and performing code reviews effectively.
Review early, review often - catch issues before they escalate.
# Recent commits
git log --oneline -10
# Diff from main
git diff main..HEAD
# Changed files
git diff --name-only main..HEAD
# Specific commit
git show <commit-hash>
When requesting review, include:
Action: Stop and fix immediately
Action: Resolve before proceeding
Action: Create follow-up task or address if quick
You may push back on feedback if:
Explain your reasoning clearly.
- Function too long (>50 lines) - consider splitting
- Too many parameters (>4) - consider options object
- Deep nesting (>3 levels) - consider early returns
- Magic numbers - use named constants
- Commented-out code - remove or explain
- Missing dependency in useEffect
- Inline function in render causing re-renders
- Missing key prop in lists
- State that should be derived
- Prop drilling - consider context
- Using 'any' type - be more specific
- Missing return type annotation
- Non-null assertion (!) without justification
- Type assertion without validation
# Request review
gh pr edit --add-reviewer username
# View PR diff
gh pr diff <number>
# Check PR status
gh pr checks <number>
# Approve PR
gh pr review --approve
# Request changes
gh pr review --request-changes --body "Please address..."
# Comment
gh pr review --comment --body "Looks good overall..."
# Checkout PR locally
gh pr checkout <number>
# View changes
git diff main...HEAD
# View specific file changes
git diff main...HEAD -- path/to/file.ts
# View commit messages
git log main..HEAD --oneline
Inspired by obra/superpowers