gate

质量关卡:在工人提交任务后自动检查产出完整性、时效性和一致性;不合格自动打回重做,连续打回触发升级告警。适用于任务交付质量管控场景。

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "gate":https://skillpi.com/zh/skills/deepskill-f9f635e53acbb113c5c421872dac2a43d48b69ee8b2d8b18b2db73eeafc7e4a8。安装前核对上游来源和版本:https://skillhub.cn/skills/user_f12a44b7/clawhong-quality-gate。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

skillhub.cn

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

质量关卡:在工人提交任务后自动检查产出完整性、时效性和一致性;不合格自动打回重做,连续打回触发升级告警。适用于任务交付质量管控场景。

0 下载

介绍来源: third_party · user_f12a44b7 · 1.0.0 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: gate
description: Set up (or fix) this repo's stop gate — a `.claude/gate` script built from the checks the repo really has (package.json scripts, bin/ binstubs, Gemfile tools, CI steps). While it fails, Claude can't end a turn with uncommitted changes. Use when asked to add, create or change a stop gate.
disable-model-invocation: true

Gate

The gate is a POSIX sh script at .claude/gate. The kit's Stop hook runs it when the tree is dirty, and blocks the end of the turn (max 3 times) while it exits non-zero. A tree state that already passed isn't re-run.

1. Discover the real checks

Every command must come from somewhere you can name — an invented npm test fails on first run.

  • package.json scripts: test, lint, typecheck/tsc, check. Use the lockfile's package manager (pnpm-lock.yaml → pnpm, yarn.lock → yarn, bun.lockb → bun, else npm).
  • Ruby: bin/rspec or bin/rails test, bin/rubocop / bundle exec rubocop, bundle exec brakeman — only if they're in Gemfile.lock or bin/.
  • CI: the run: lines of .github/workflows/*.yml — the closest thing to the team's own definition of green.
  • Existing .claude/gate: read it; you're probably fixing it.

2. Keep it fast

It runs at the end of turns, so aim for well under a minute: unit tests and lint on the whole repo are fine; skip system/e2e tests, full builds and anything needing services that may not be running. Say what you left out and why.

3. Propose, then write

Show the script with a comment naming each command's source:

#!/bin/sh
# kit stop gate — sources: package.json "test", "lint"; bin/rspec (CI step "test")
set -e
bin/rspec
npx eslint app/javascript

On yes: write it, then run sh .claude/gate once and show the result. If it's already red on a clean tree, say so — the gate would block every turn until that's fixed.

4. Commit or keep local

Ask. Teams that don't want it in the repo: add .claude/gate to .git/info/exclude (local only; never edit the team's .gitignore for this).

当前收录版本

1.0.0

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • 直接解决代码仓库质量关卡设置的核心痛点,提升交付质量
  • 适用于广泛的开发团队和项目,具有明确的实用价值
触发精准95/100

亮点

  • 触发描述清晰明确,覆盖多种使用场景(添加、创建、更改 stop gate)
  • 边界清晰,不易与其他 Skill 混淆
结构规范95/100

亮点

  • 步骤划分清晰,逻辑连贯,易于理解和执行
  • 包含完整的端到端示例和 frontmatter,文档规范完整
执行可靠80/100

待提升项

  • 异常覆盖不全 原报告严重程度:轻微

    未明确提及如何处理特定检查工具缺失的情况(如 eslint 未安装),也未覆盖所有可能的执行失败场景(如权限问题)

    改进建议:建议补充对常见执行失败场景的处理建议,例如检查工具是否存在、权限是否正确等

亮点

  • 指导从可靠来源(package.json、Gemfile、CI 配置)发现检查命令,确保命令真实存在
  • 包含基本的错误处理机制(set -e)和验证步骤
证据可验 (前四项均值)89/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

  • 安装或获取外部依赖

    使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。

    主文档提及 · 第 33 行

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。