一键导入
code-review
BFF code review gate for standards, tests, complexity <= 30, modern C#, and security validation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
BFF code review gate for standards, tests, complexity <= 30, modern C#, and security validation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | code-review |
| description | BFF code review gate for standards, tests, complexity <= 30, modern C#, and security validation. |
Use this skill to review changes in the BFF template and block merge when quality gates fail.
Guarantee that proposed changes:
Prioritize review of:
src/WebApp (minimal APIs, middleware, endpoint registration)src/Infrastructure (HTTP/gRPC adapters, cache, resilience, telemetry)src/Contracts (DTO/proto contracts used by BFF)tests/IntegrationTests, tests/CommonTests, tests/LoadTestsBefore reviewing, collect:
templates/Bff/Readme.md.Requirement coverage
Architecture compliance
src/Contracts.src/Infrastructure.src/WebApp.Testing gate
tests/IntegrationTests).tests/CommonTests).tests/LoadTests).Cyclomatic complexity gate (hard fail > 30)
Modern C# gate
Security and vulnerability gate
Return a concise report with:
APPROVED or CHANGES_REQUIREDIf any hard gate fails, decision must be CHANGES_REQUIRED.
Contracts code review gate for standards, tests, complexity <= 30, modern C#, and security validation.
Full template code review gate for DDD/SOLID standards, tests, complexity <= 30, modern C#, and security validation.
Create or update BFF contracts in src/Contracts (records, DTOs, and .proto). Use when user asks to add/change request/response contracts, order DTOs, base contract wrappers, or gRPC proto contracts.
Create a new minimal API endpoint in src/WebApp and add matching integration tests in tests/IntegrationTests. Use when user asks for new GET/POST/PUT/PATCH/DELETE endpoints plus end-to-end validation.
Create or extend k6 load tests for this BFF template. Use when user asks for HTTP/gRPC performance scenarios, thresholds, custom metrics, or environment-driven load profiles in tests/LoadTests.
Generate Application use case classes and xUnit unit tests following BaseInOutUseCase/BaseInUseCase/BaseOutUseCase patterns, FluentValidation, repository mocks, and fixture conventions for this hexagonal template.