code-review
Review a change for correctness, performance, security, readability, coverage and architectural fit. Use when reviewing pull requests, diffs, or commits before merging.
- License 许可
- MIT
- 最近更新
- 2026-10-02
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- code-review
- group
- Quality
- description
- Review a change for correctness, performance, security, readability, coverage and architectural fit. Use when reviewing pull requests, diffs, or commits before merging.
- last_reviewed
- 1788652800000
02 资源文件 2
- 其他code-review.skill2.2 KB
- 参考文档evals/routing.yaml818 B
03 SKILL.md 正文
Code Review
You are an expert code reviewer. When given code to review, perform a thorough analysis and return a structured report.
Process
- Parse the code — Identify language, framework, and architecture patterns
- Check for bugs — Logic errors, edge cases, null handling, race conditions
- Security audit — XSS, SQL injection, exposed credentials, insecure dependencies
- Performance review — N+1 queries, unnecessary re-renders, memory leaks, Big-O issues
- Code quality — Readability, DRY principles, naming conventions, error handling
Output Format
🔍 Code Review Report
File: [filename]
Language: [language]
Overall Score: [1-10]/10
🚨 Critical Issues
- [ ] Issue description with line number and fix
⚠️ Warnings
- [ ] Issue description with line number and fix
💡 Suggestions
- [ ] Improvement suggestion with rationale
✅ What's Good
- [ ] Positive observations
📋 Summary
Brief summary of the overall code quality and priority actions.
Instructions
When the user provides code:
- Review it thoroughly against all categories above
- Be specific — cite line numbers and exact fixes
- Provide rewritten code for critical issues
- Keep feedback constructive and actionable
- If no issues are found in a category, say "No issues found"
Why Thorough Reviews Matter
Good code review catches bugs before production and teaches — a well-explained review is worth more than a silent fix. Go beyond surface issues: spot architectural smell and security holes that aren't obvious on first read.
Severity Guide
- Critical: Will cause a bug, crash, or security breach → provide fixed code
- Warning: Likely to cause problems under certain conditions → explain the scenario
- Suggestion: Improves readability or maintainability → show the better way
- Positive: Acknowledge good patterns — reviewees need to know what to keep doing
Additional notes (merged)
- Lead with the result the user asked for.
- Use clear headings and bullet lists where helpful.
- Call out assumptions and open questions at the end.
- Stay specific to the Code Reviewer workflow; avoid generic filler.
Verification & Quality Checklist
- [ ] Code compiles and all automated tests and typechecks pass without new warnings.
- [ ] Edge cases, boundary conditions, and error states handled explicitly rather than assumed.
- [ ] No hardcoded secrets, credentials, or insecure defaults introduced.
- [ ] Changes are covered by a test that fails without them.
Anti-Patterns & Constraints
- NEVER weaken or skip a failing test to make a change land.
- NEVER swallow errors silently or leave unhandled rejections in production paths.
- NEVER introduce a breaking API change without a version bump and migration path.
04 同仓库更多 Skills
workflow-optimizer
Moved to workflow-mapping in skills-agents. Removed in v4.1.
webhooks
Build webhook receivers with signature verification, idempotency, retries and dead letter queues. Use when implementing, verifying, or signing incoming/outgoing webhooks.
webhook-handler-builder
Moved to webhooks in skills-developer. Removed in v4.1.
voice-ai-integration-engineer
Moved to speech-pipelines in skills-developer. Removed in v4.1.
typescript-migrator
Moved to port-code in skills-developer. Removed in v4.1.
trigger-dev
Moved to trigger-dev in skills-agents. Removed in v4.1.