Token导航 LogoToken导航

Agent Skill · 研究检索

quality-gate(质量门)

quality-gate 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

quality-gate 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 59,000。

总安装 396周安装 16GitHub Stars 2下载 124核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:quality-gate(质量门)
来源仓库:https://github.com/benjaming/ai-skills
仓库路径:skills/quality-gate
安装命令:
npx skills add https://github.com/benjaming/ai-skills --skill quality-gate
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/benjaming/ai-skills --skill quality-gate

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

quality-gate 强制执行代码变更的质量门禁检查,保障主干分支稳定与安全发布。适用于 Codex、Claude、Cursor、Gemini CLI,涵盖 diff 分析、测试覆盖与栈识别等步骤。自动检测 React/Next.js 等项目类型并应用相应检查规则,输出违规详情与修复建议。

需配合 CI 系统使用,确保每次提交均通过预设阈值,防止缺陷流入生产环境。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/quality-gate

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/benjaming/ai-skills --skill quality-gate;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

quality-gate 怎么安装?

在终端执行 npx skills add https://github.com/benjaming/ai-skills --skill quality-gate。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

quality-gate 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

quality-gate 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/benjaming/ai-skills --skill quality-gate 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

quality-gate 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

quality-gate 用的人多吗?

公开数据是累计安装 396 次,近一周安装 16 次,下载 124 次,GitHub 2 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

quality-gate 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
quality-gate

质量门 · 本页

3962执行命令未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Quality Gate

!IMPORTANT: Follow this process exactly. Do not skip steps.

Arguments: $0 (optional) — base branch to diff against. If omitted, auto-detect.

Step 1: Get the Diff

Detect the base branch:

git rev-parse --verify main >/dev/null 2>&1 && echo "main" || (git rev-parse --verify master >/dev/null 2>&1 && echo "master" || echo "develop")

Then get the full diff and changed file list:

git diff <base>...HEAD --name-only
git diff <base>...HEAD

Store the diff output — you will pass it to review agents.

Also detect the project stack:

# Check if React/Next.js project
cat package.json 2>/dev/null | jq -r '.dependencies // {} | keys[]' | grep -E '^(react|next)$'

Step 2: Parallel Review (Agent Team)

2a. Create Team

TeamCreate  team_name: "quality-gate"  description: "Parallel quality review of branch changes"

2b. Create Review Tasks

Create one TaskCreate per review dimension. Skip Task 1 if the project does not use React/Next.js.

Each task description MUST include:

  1. The full diff from Step 1 (if diff exceeds ~50KB, list changed files and instruct teammate to read files directly)
  2. The list of changed files
  3. The skill command to invoke and review instructions (see table below)
  4. The classification rules (see below)
  5. The required output format (see below)
  6. Instruction: Do NOT modify any files. Report findings only.
  7. Instruction: Write the full findings to /tmp/quality-gate-findings-<reviewer-name>.md using the Write tool (e.g. /tmp/quality-gate-findings-solid-reviewer.md)
  8. Instruction: Send a brief "done" notification to the lead via SendMessage with type: "message" and recipient: "lead" (the lead will read findings from the file, no need to include full findings in the message)
  9. Instruction: Mark task completed via TaskUpdate with status: "completed" after sending findings
TasksubjectactiveFormSkill command & instructions
1Review React/Next.js best practicesReviewing React best practices/vercel-react-best-practices Review ONLY the changed code in the diff against the rules. Categorize each finding as FIX or NITPICK
2Review SOLID principlesReviewing SOLID principles/applying-solid-principles Review ONLY the changed code in the diff against SOLID principles and clean code practices. Categorize each finding as FIX or NITPICK
3Review securityReviewing security/security-review Review ONLY the changed code in the diff against the security checklist. Categorize each finding as FIX or NITPICK
4Review simplification opportunitiesReviewing simplification/simplify Review ONLY the changed code in the diff for simplification opportunities (clarity, consistency, maintainability). Categorize each finding as FIX or NITPICK. Do NOT modify any files — report only.
5Review code slopReviewing code slop/code-slop but override: Do NOT modify any files. Instead, identify all slop issues and report them in FIX/NITPICK format below.

2c. Spawn Teammates (all in parallel)

Spawn all teammates in a single response using the Task tool with team_name: "quality-gate" and each teammate's name:

nameAssigned task
react-reviewerTask 1 (skip if not React)
solid-reviewerTask 2
security-reviewerTask 3
simplify-reviewerTask 4
slop-cleanerTask 5

Each teammate's prompt must instruct them to:

  1. Check TaskList and claim their assigned task via TaskUpdate with status: "in_progress" and owner: "<their-name>"
  2. Invoke the designated skill via the Skill tool with the review instructions
  3. Format findings per the output format below
  4. Write the full formatted findings to /tmp/quality-gate-findings-<their-name>.md using the Write tool (e.g. /tmp/quality-gate-findings-solid-reviewer.md)
  5. Send a brief "done" notification to the lead via SendMessage with type: "message", recipient: "lead", and summary: "<reviewer-name> done — findings written to /tmp/quality-gate-findings-<their-name>.md"
  6. Mark task completed via TaskUpdate with status: "completed"

2d. Assign Tasks

After spawning, assign each task to its teammate via TaskUpdate with owner: "<teammate-name>".

Classification Rules (include in each task description)

FIX (will be auto-applied):

  • Bugs or logic errors
  • Security vulnerabilities
  • Performance issues with measurable impact
  • Clear violations of critical rules
  • Obvious simplifications that reduce complexity without trade-offs

NITPICK (user decides):

  • Style preferences or minor readability tweaks
  • Debatable architectural choices
  • Low-impact optimizations
  • "Nice to have" improvements

Required Output Format (include in each task description)

## FIX
- `file/path.ts:42` — [RULE-ID] Description of the issue. Suggested fix: <concrete suggestion>
- `file/path.ts:85` — [RULE-ID] Description. Suggested fix: <suggestion>

## NITPICK
- `file/path.ts:15` — [RULE-ID] Description. Suggestion: <suggestion>

## NO ISSUES
(use this section if nothing found in a category)

If no issues at all, return: No issues found.

Step 3: Consolidate Findings and Tear Down Team

3a. Collect Results

Monitor TaskList until all review tasks reach completed status. Once all tasks are completed, read findings from each reviewer's output file using the Read tool:

  • /tmp/quality-gate-findings-solid-reviewer.md
  • /tmp/quality-gate-findings-security-reviewer.md
  • /tmp/quality-gate-findings-simplify-reviewer.md
  • /tmp/quality-gate-findings-slop-cleaner.md
  • /tmp/quality-gate-findings-react-reviewer.md (if spawned)

Do NOT rely on SendMessage content for findings — those are "done" pings only. The files are the source of truth.

3b. Shut Down Team

Send SendMessage with type: "shutdown_request" to each teammate. After all teammates confirm shutdown, call TeamDelete. Then clean up temp files:

rm -f /tmp/quality-gate-findings-*.md

3c. Consolidate and Detect Conflicts

  1. Collect all FIX items across all reviewers
  2. Group by file:line
  3. For each group with ≥2 FIX items, classify the group:

- Duplicate: suggestions describe the same edit (same intent, same code outcome) → collapse to one item, keep the most specific wording - Conflict: suggestions describe *different* edits on the same location (e.g., SOLID says "extract into hook", Simplify says "inline it") → flag as a conflict candidate

  1. If any conflict candidates exist → proceed to Step 3d (Arbitrate)
  2. If no conflicts → skip Step 3d and proceed directly to Step 4

Once the final FIX list is settled (after Step 3d if needed), display the summary:

### Quality Gate Results

**Fixes to auto-apply:** N items
- [React] file:line — description (x items)
- [SOLID] file:line — description (x items)
- [Security] file:line — description (x items)
- [Simplify] file:line — description (x items)
- [Slop Cleaner] file:line — description (x items)
**Conflicts arbitrated:** N items   ← include only if Step 3d ran
**Nitpicks for review:** N items

Step 3d: Arbitrate Conflicts (conditional)

Skip this step entirely if Step 3c found zero conflicts.

Spawn a single standalone arbitrator via the Agent tool (NOT part of the team):

  • subagent_type: general-purpose
  • description: Arbitrate FIX conflicts
  • prompt: Provide the arbitrator with:

1. The conflict groups only (not all findings) — each group is one file:line with the competing FIX items from different reviewers, including the reviewer name and their suggested fix 2. The relevant file excerpts (read each conflicted file's surrounding context and include it in the prompt) 3. The fixed priority chain: Security > Correctness > SOLID > Simplify > Style. Within the same tier, prefer the fix with the smallest blast radius (fewer lines changed, no new abstractions) 4. Instruction: return a JSON-like block per conflict with file:line, winner: <reviewer-name>, chosen_fix: <verbatim fix>, reason: <one sentence>. Optionally, if two fixes are compatible and can be merged, return merged instead with the combined edit 5. Instruction: read-only — do NOT edit any files

Merge the arbitrator's winning fixes back into the FIX list (replacing the conflict groups). Non-conflicted FIX items pass through unchanged. Record the count for the summary line **Conflicts arbitrated:** N.

Step 4: Auto-Fix

Apply all FIX items to the codebase:

  • Read each affected file
  • Apply the suggested fixes using the Edit tool
  • After all fixes, run the project's linter/formatter if configured (check package.json scripts for lint/format)

Step 5: Present Nitpicks

If there are nitpicks, display them grouped by category and use AskUserQuestion:

### Nitpicks for your review

**React/Next.js:**
- `file:line` — description — suggestion

**SOLID:**
- `file:line` — description — suggestion

**Security:**
- `file:line` — description — suggestion

**Simplification:**
- `file:line` — description — suggestion

**Slop Cleaner:**
- `file:line` — description — suggestion

Ask: "Which nitpicks should I apply?" with options:

  • All of them
  • None
  • Let me pick (then list individually)

Step 6: Apply Selected Nitpicks

Apply whichever nitpicks the user selected.

Step 7: Post-Fix Validation

Run this step only if any changes were applied in Step 4 or Step 6. Skip it if no fixes and no nitpicks were applied.

Spawn a single standalone validator via the Agent tool (NOT part of the team):

  • subagent_type: general-purpose
  • description: Validate post-fix diff
  • prompt: Provide the validator with:

1. The output of git diff <base>...HEAD (the full branch diff, including the applied fixes and nitpicks) 2. The list of FIX + nitpick items that were applied (from Step 4 and Step 6) 3. Role: read-only semantic review of the final diff. Check for: - Fixes that break another fix (e.g., partial renames, inconsistent refactors across files) - Fixes that reintroduce an issue the original diff was meant to address - Linter/formatter changes that masked a real problem - Applied changes that do not match their stated intent (spot-check a sample) 4. Required output format — exactly one of: - APPROVED on the first line, nothing else required - ISSUES_FOUND: on the first line, followed by a bulleted list of - file:line — problem description 5. Instruction: read-only — do NOT edit any files

If the validator returns APPROVED: proceed to Step 8.

If the validator returns ISSUES_FOUND: display the issue list and git diff --stat, then use AskUserQuestion with:

  • Proceed anyway — commit as-is (go to Step 8)
  • Rollback fixes — run git restore. to discard all applied fixes and nitpicks, then abort the skill and report which validator issues were flagged
  • Let me review — exit without committing, leave the working tree dirty so the user can inspect and edit

Step 8: Commit & Push (if changes made)

If any changes were applied (fixes or nitpicks) and validation passed or the user chose to proceed:

git add .
git commit -m "refactor: apply quality gate fixes"

If a remote branch exists and the branch was already pushed:

git push

Execution Notes

  • Requires: CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 environment variable in settings
  • Agent roster: 4–5 parallel team reviewers (skip react-reviewer if not a React project) + up to 2 sequential standalone specialists (conflict-arbitrator conditional, post-fix-validator runs whenever changes were applied)
  • Standalone specialists (conflict-arbitrator, post-fix-validator) are spawned via the Agent tool and are NOT part of the quality-gate team — no TeamCreate/TeamDelete coupling, no shared TaskList
  • Arbitrator fires only when ≥1 conflict is detected in Step 3c — zero cost when reviewers agree
  • Arbitrator priority (deterministic): Security > Correctness > SOLID > Simplify > Style; within the same tier prefer the fix with the smallest blast radius
  • Team lifecycle: TeamCreate at Step 2a, TeamDelete at Step 3b
  • All review teammates and standalone specialists are read-only — only the lead edits files
  • Teammate idle is normal — teammates go idle after each turn; do not treat idle notifications as errors
  • Deduplication vs. arbitration — syntactic duplicates collapse in Step 3c; semantic conflicts (different edits on the same file:line) route to Step 3d
  • Preserve behavior — fixes must not change functionality, only improve quality
  • Be surgical — only modify code that was part of the original diff, do not refactor unrelated code

平台分布

Codex

33.32%
按下载量换算41

Claude

30.46%
按下载量换算38

Cursor

18.81%
按下载量换算23

Gemini CLI

7.99%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

未通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/benjaming/ai-skills --skill quality-gate 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills