quality-gate

仓库创建 2026年4月15日最近提交 21 天前SkillHot 收录 21 天前
▸ 精选理由

将构建警告视为错误并强制高覆盖,保障代码质量(针对 .NET)。

▸ 风险提示

绑定 .NET 工具链及覆盖率采集,非 .NET 项目不适用。

这个 Skill 做什么

在每个阶段强制 -warnaserror 构建并要求 95% 测试覆盖率通过门禁。

在任何交付代码的阶段强制通过 -warnaserror 构建并达到至少 95% 的测试覆盖率才能标记为 DONE。用在小组或专责在阶段结束前做质量门控,任何未达标的交付都会被阻断并要求给出失败摘要。特点是把构建警告当错误处理并用高覆盖率作为硬性门禁,保证产出质量可测且一致。

▸ 展开 SKILL.md 英文原文

Enforce the -warnaserror build + 95% coverage test gate on every squad [DONE]. Use this before any specialist (Coder, Tester, Reviewer, Infra) marks a phase complete.

开发编程.NET测试门禁覆盖率Claude Code
0
Stars
0
Forks
40
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/Codebrew-company/CodebrewRouter/master/.claude/skills/quality-gate/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/Codebrew-company/CodebrewRouter/master/.claude/skills/quality-gate/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Quality gate — build + test + coverage

Every squad phase that produces code must pass this gate before `[DONE]`.

## Commands

```powershell
dotnet build --no-incremental -warnaserror
dotnet test --no-build --collect:"XPlat Code Coverage"
```

Both must succeed. If either fails, emit `[BLOCKED]` with the failure summary and the failing path.

## Rules

- **No `#nullable disable`.** If the compiler emits a nullable warning, fix the underlying null-handling.
- **No `#pragma warning disable`.** Silenced warnings are a CRITICAL review finding.
- **Zero tolerance for `CS8600`–`CS8629`** (nullable reference-type warnings).

## Coverage threshold

95% line coverage on the production files li
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有