用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/aiskillstore/marketplace --skill code-review命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Maintain a portable task-state ledger for long, multi-step work. Use when a task spans many files, produces large logs, needs a reliable handoff, or requires traceable evidence without repeatedly loading full outputs. Creates concise state records and private evidence references with explicit limits, redaction checks, and retention guidance.
【收纳储物必看】装修前不会规划收纳,入住半年家变仓库?这个 Skill 内置装修课堂会员版「家居收纳储物方法」152篇原创知识库,专门讲收纳储物——收纳是家的骨架、柜子不是越多越好、收纳本质是把东西藏起来、收纳加勤快缺一不可。问玄关鞋柜怎么装、问厨房9个收纳位置、问衣柜衣帽间怎么做、问小户型怎么榨干每1平米、问收纳避坑和鸡肋神器,全部覆盖。适合正在装修、准备收纳规划、家里东西多总是乱、想做满墙柜/通顶柜/800库的业主。
【儿童房装修必看】家里有小孩、正准备要孩子、或想给儿童房做环保安全装修?这个 Skill 内置装修课堂知识库,专门讲"适童化"——儿童是最易受甲醛伤害的人群,儿童房必须实木/ENF/控总量。问儿童房怎么装环保、问儿童房墙面地面用什么、问儿童家具选实木还是人造板、问孩子学习/游戏专区怎么规划、问有娃家庭怎么防磕碰防污染,全部覆盖。适合家里有娃、备孕婚房、想装出健康儿童房的业主。
基于 SOC 职业分类
正在显示 SKILL.md
| name | code-review |
| description | Battle-tested code review practices optimizing for codebase health and team velocity |
| version | 1.0.0 |
| author | Claude Assistant |
| tags | ["code-review","pr","quality","workflow","team","best-practices"] |
Code review is the primary quality gate in modern software development. Poor review practices lead to slow feature velocity, missed defects, team friction, and knowledge silos. This skill codifies proven practices that prevent these failure modes.
Code review exists to keep the codebase getting better over time—balance speed with quality. The goal is not perfection, but continuous improvement. Small, focused PRs reviewed quickly with clear feedback create a virtuous cycle of quality and velocity.Key insights from research:
The skill balances prescriptive guidance with flexibility—providing clear workflows without being overly rigid.
Use this format (skim-friendly):
## Context
<!-- Why is this needed? What problem does it solve? -->
<!-- Link to issue/ticket if applicable -->
## Changes
<!-- High-level summary of what changed (not every line) -->
- Key change 1
- Key change 2
- Key change 3
## Test Plan
<!-- How can reviewers verify this works? -->
- [ ] Unit tests: `npm test path/to/tests`
- [ ] Manual testing: Steps to reproduce
- [ ] Edge cases verified: List specific scenarios tested
## Deployment Notes
- [ ] Database migration: Yes/No (details if yes)
- [ ] Feature flag: Yes/No (name if yes)
- [ ] Configuration changes: Yes/No (what changed)
- [ ] Breaking changes: Yes/No (migration path if yes)
- [ ] Rollback plan: Describe how to safely revert
## Security Considerations
<!-- If touching auth/permissions/data/secrets -->
- Input validation strategy
- Authorization checks
- Data exposure risks addressed
**Perform Self-Review**
- Review your own diff line-by-line before opening PR
- Ask: "Would I approve this if someone else wrote it?"
- Check for: Unintended changes, debug code, commented code, TODOs
- Use draft PRs for early feedback on approach (not implementation)
**Assign Appropriate Reviewers**
- Check CODEOWNERS for automatic assignment
- Tag domain experts for specialized areas (security, performance, etc.)
- Don't assign entire team—pick 1-2 relevant reviewers
- Use `/review-orchestrator commit` to run automated checks
Focus on big picture before diving into details:
Read PR Description
Assess Design & Architecture
Security & Risk Pass
/review-security for auth/permissions/data changesScope Check
Decision Point: If major issues found (wrong approach, architectural problems, security flaws), provide feedback and STOP. No need for detailed review if design is flawed.
**Implementation Review: Details & Correctness**Only proceed if Pass 1 looks good:
Logic & Correctness
/review-quality for TypeScript/logic reviewTesting Quality
/review-testing for test quality analysisCode Quality & Readability
/review-readability for style/naming analysisDocumentation
Time Management: Set 30-minute timer. If you can't complete review in time:
<comment_types> Use these prefixes to clarify feedback severity and reduce friction:
[critical] - Must fix before merge
[issue] - Should fix, discuss if cannot
[suggestion] - Nice to have, author decides
[nit] - Purely cosmetic, optional
[question] - Seeking clarification
[praise] - Calling out good work
After both passes (< 30 minutes total):
Batch Nits: Leave all [nit] comments in single comment block. Don't require changes—let author decide.
Praise Matters: Call out good patterns. Mentors > nit-bots. Positive reinforcement builds better teams.
<team_practices>
Define and track response time expectations:
Fast cycles correlate with healthier delivery metrics.
Enforce PR size limits:
/code-review-prep to check PR size before openingImplement automatic reviewer assignment:
.github/CODEOWNERS/code-review-init to generate CODEOWNERS templateEnable "suggested changes" feature:
Move mechanical checks to CI:
Keep human attention for design and correctness. </team_practices>
Use /code-review-prep to run automated version, or manually verify:
Code Quality
Self-Review
Testing
Documentation
Security & Performance
/review-security if touching auth/permissionsPR Description
Size & Scope
Pass 1: High-Level (5-10 min)
/review-security if needed)Pass 2: Implementation (10-20 min)
/review-testing)/review-quality)/review-readability)Final Decision
<anti_patterns> Author Anti-Patterns:
Reviewer Anti-Patterns:
Team Anti-Patterns:
Review Orchestrator:
/review-orchestrator commit - Full pre-commit validation/review-orchestrator push - Pre-push quality gatesSpecialist Reviewers:
/reviewer:security - Security vulnerabilities and auth/reviewer:quality - TypeScript quality and logic/reviewer:testing - Test effectiveness and coverage/reviewer:readability - Code clarity and naming/reviewer:basic - Anti-patterns and common mistakesCustom Commands:
/code-review-prep - Author pre-flight checklist (to be created)/code-review-init - Generate PR templates and CODEOWNERS (to be created)/code-review-metrics - Analyze review health metrics (to be created)Workflow Integration:
# Author workflow
git add .
/review-orchestrator add # Pre-commit check
git commit -m "feat: add feature"
/code-review-prep # Pre-PR checklist
# Open PR with generated description
# Reviewer workflow
/review-security path/to/files # If security-sensitive
/review-quality path/to/files # Logic and types
/review-testing path/to/files # Test quality
# Leave classified comments, make decision
Don't track:
Use /code-review-metrics to generate health dashboard.
<quick_reference> As an Author:
/code-review-prep before openingAs a Reviewer:
As a Team Lead:
/code-review-init/code-review-metricsTemplates:
Workflows:
Metrics & Improvement:
# After completing feature work
git add .
git commit -m "feat: add user profile editing"
# Run pre-PR validation
@skill code-review
> I'm about to open a PR. Can you run the author checklist?
# Claude runs automated checks and generates:
# - Validation results (tests, lint, types)
# - PR size analysis
# - Generated PR description template
# - Suggested reviewers from CODEOWNERS
# - Readiness assessment
# Assigned to review PR #456 (324 lines, auth changes)
@skill code-review
> I need to review PR #456. It modifies authentication. Let's do Pass 1.
# Claude guides through high-level review:
# - Analyzes context and approach
# - Runs `/review-security` for auth changes
# - Identifies any design issues
# - Recommends proceed to Pass 2 or provide feedback
# If Pass 1 looks good:
> Pass 1 looks good. Let's do Pass 2.
# Claude runs specialist reviewers in parallel:
# - `/review-quality` for logic and types
# - `/review-testing` for test coverage
# - `/review-readability` for code clarity
# - Aggregates findings with severity classification
@skill code-review
> We want to improve our code review process. Help us get started.
# Claude runs `/code-review-init`:
# - Generates .github/pull_request_template.md
# - Generates .github/CODEOWNERS
# - Creates docs/code-review-playbook.md
# - Provides team adoption roadmap
# - Suggests SLAs and policies
Note: This skill is designed to work with your existing development workflow. Start with the author checklist, adopt two-pass reviews, then expand to team-wide practices as you gain confidence.