AGENT SKILL
代码审查清单生成
review-checklist
针对所修改的文件,生成与特定编程语言匹配的代码审查清单。
- License 许可
- MIT
- 最近更新
- 2026-03-31
- Stars
- ★ 46
- Forks
- 17
01 前言 Front Matter
- name
- review-checklist
- description
- Generates a language-specific code review checklist tailored to the files being changed.
- argument-hint
- [language-or-file]
03 SKILL.md 正文
Review Checklist Skill
This skill generates targeted code review checklists customized for the specific programming language or files in your change.
When to Use
- Before submitting a PR for review
- When reviewing code from teammates
- To ensure consistency with language best practices
- To catch common language-specific pitfalls
Supported Languages
- TypeScript — Type safety, async/await patterns, React/Node conventions
- C# — Null safety, async patterns, LINQ, .NET framework usage
- C++ — Memory management, smart pointers, const correctness, thread safety
- Python — Type hints, exception handling, PEP 8, async patterns
- Go — Error handling, goroutines, channels, interfaces
- Java — NullPointerException handling, resource management, collection APIs
Checklist Categories
Each checklist includes checks for:
Type Safety
- Type annotations present and correct
- No unsafe casts or type assertions
- Proper generic type usage
- Runtime type validation where needed
Error Handling
- All exceptions/errors properly handled
- No silent failures or swallowed exceptions
- Appropriate error recovery strategies
- User-facing error messages are clear
Testing & Coverage
- Unit tests for new logic
- Edge cases covered
- Error paths tested
- Integration points validated
Security
- Input validation and sanitization
- No hardcoded credentials or secrets
- Proper authentication/authorization checks
- SQL injection and XSS prevention
Documentation
- Public API methods documented
- Complex logic has explanatory comments
- Breaking changes noted
- Examples provided for non-obvious behavior
Output Format
Checklists are formatted as markdown with categories as sections, each containing checkboxes:
## [Language] Code Review Checklist
### Type Safety
- [ ] All variables have explicit types
- [ ] No unnecessary type assertions
- ...
### Error Handling
- [ ] Exception handling is explicit
- [ ] Error messages are helpful
- ...
### Testing & Coverage
- [ ] New code has unit tests
- [ ] Edge cases are covered
- ...
### Security
- [ ] Input validation present
- [ ] No credential leaks
- ...
### Documentation
- [ ] Public APIs are documented
- [ ] Complex logic is explained
- ...
Example Usage
/review-checklist TypeScript
/review-checklist C#
/review-checklist for src/auth.ts
/review-checklist Python
The skill automatically detects the language from file extensions when provided, or uses the language name directly to generate the appropriate checklist.
04 同仓库更多 Skills
Copilot实践练习生成
practice-exercise
针对指定的 GitHub Copilot 功能生成动手实践练习。
★ 46
告警批量分诊
triage-alerts
按严重程度和紧急程度对一批告警进行分诊,生成按优先级排序的行动计划。
★ 46
我的技能
my-skill
<待办:描述本技能的功能及使用时机>
★ 46
告警测试数据生成
generate-alerts
为告警管理系统生成随机告警测试数据。当需要创建示例告警、模拟数据,或用测试事件填充系统以进行开发和测试时使用。
★ 46