gate
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "gate" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-f9f635e53acbb113c5c421872dac2a43d48b69ee8b2d8b18b2db73eeafc7e4a8. Verify the upstream source and version against https://skillhub.cn/skills/user_f12a44b7/clawhong-quality-gate before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Quality Gate: automatically checks output integrity, timeliness, and consistency after workers submit tasks; nonconforming work is auto-returned for redo, and repeated returns escalate alerts. Suitable for task delivery quality control scenarios.
Introduction source: third_party · user_f12a44b7 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- 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.
- Testing
- Not tested
Browse files
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: trueGate
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.jsonscripts: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/rspecorbin/rails test,bin/rubocop/bundle exec rubocop,bundle exec brakeman— only if they're inGemfile.lockorbin/. - 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).
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 直接解决代码仓库质量关卡设置的核心痛点,提升交付质量
- 适用于广泛的开发团队和项目,具有明确的实用价值
Highlights
- 触发描述清晰明确,覆盖多种使用场景(添加、创建、更改 stop gate)
- 边界清晰,不易与其他 Skill 混淆
Highlights
- 步骤划分清晰,逻辑连贯,易于理解和执行
- 包含完整的端到端示例和 frontmatter,文档规范完整
Areas to improve
-
异常覆盖不全 Reported severity: Minor
未明确提及如何处理特定检查工具缺失的情况(如 eslint 未安装),也未覆盖所有可能的执行失败场景(如权限问题)
Recommendation: 建议补充对常见执行失败场景的处理建议,例如检查工具是否存在、权限是否正确等
Highlights
- 指导从可靠来源(package.json、Gemfile、CI 配置)发现检查命令,确保命令真实存在
- 包含基本的错误处理机制(set -e)和验证步骤
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 33
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.