with one click
code-review
全栈代码审查规范(质量/性能/安全/架构/风格)。用于 Code Review、PR 审查、质量门禁、安全与性能检查等任务。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
全栈代码审查规范(质量/性能/安全/架构/风格)。用于 Code Review、PR 审查、质量门禁、安全与性能检查等任务。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Microsoft Agent Framework 1.1 (C#) 开发规范与集成要点。USE FOR: ChatClientAgent、AIFunctionFactory、IChatClient tools、AgentThread/Conversation、ResponseFormat、Handoff/Workflow、MCP tool、Memory/ContextProvider、Observability、Foundry Local OpenAI 兼容接入。
Perigon 主入口技能:用于基于 Perigon CLI/MCP 进行项目脚手架、模块与服务生成、DTO/Manager/Controller/Request 客户端生成、MCP 配置与 Studio 操作,并在后端与前端开发中按照模板约定完成代码生成与落地。Use when: any Perigon-based development task, scaffolding, code generation, module/service creation, API client generation, MCP setup, Studio usage, backend/frontend implementation that should follow Perigon conventions.
ASP.NET Core / Aspire / TUnit 测试规范与最佳实践。用于集成测试/ApiTest、测试用例编写、测试失败排查与验证流程。
Angular 21+ 前端开发规范(standalone/Material/signals)。用于 Angular 组件/页面/路由/表单、Material UI、signals 状态、i18n、前端样式与交互相关任务。
技术文档编写规范 - README、任务分配文档、开发指南、部署文档
| name | code-review |
| description | 全栈代码审查规范(质量/性能/安全/架构/风格)。用于 Code Review、PR 审查、质量门禁、安全与性能检查等任务。 |
Share层
Manager 层:
ManagerBase<T> 或 ManagerBase?BusinessException?Select 投影而非 Include 加载整个导航属性?EFCore.BulkExtensions?ExecuteInTransactionAsync?Controller 层:
RestControllerBase?DbContext?Problem() / NotFound()?ApiResponse 包装器?组件设计:
takeUntilDestroyed 或 async pipe)?国际化:
app/share/i18n-keys.ts 对齐?数据库查询:
Include 导致过量数据加载?API 设计:
前端性能:
ChangeDetectorRef.detectChanges()?trackBy?输入验证:
[Required], [MaxLength], [Range] 等注解?权限控制:
[Authorize])?敏感信息:
依赖关系:
代码复用:
注释和文档:
错误处理:
# 代码审查报告
**审查范围**: [文件路径或模块名称]
**审查日期**: [日期]
**审查结果**: ✅ 通过 / ⚠️ 需改进 / ❌ 阻断
## 🔴 阻断性问题(必须修复)
### [问题标题]
- **文件**: `path/to/file.cs#L10-L15`
- **问题描述**: 明确说明问题
- **风险等级**: Critical / High
- **建议修复**:
```csharp
// 修复后的代码示例
path/to/file.ts#L42