Command Palette

Search for a command to run...

Назад к скиллам
скилл № 82344

Quality Gate

When bundled code-review or security-review resolves in this session, self/code/security modes run it first. Single-lens review checkpoint (self, code…

БесплатноБез исполняемых скриптов
melodic-softwareот melodic-software★ 34 звезды на GitHub

Установить Quality Gate в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Quality gate

Arguments. [self|code|code-design|architecture|security|spec|close-out|downstream|pr…] [--unattended]; the full set ends pr|criteria|slice|restatement]. spec takes [--spec <path|id>], close-out takes [--container <id>] [--dry-run], and slice takes <name>. Every mode also takes the phase-boundary inputs [--worktree <path>] [--base <sha>] [--quality-bar <prototype|internal|production>] [--report-only] ("Shared inputs"). --unattended says no person drives the run, so no Native step runs.

Repository context. Gather first

Run each command below as its own Bash call, all sent together in one message (worktree isolation). Keep any bound in the command's own pipe (output limits). Unless this section says otherwise, treat a failure (not a repository, git unavailable) as an unknown value and carry on. Keep these as body calls, never ## Pre-computed context lines (gather-block convention).

  • Current branch, git branch --show-current
  • Working tree status (empty = clean), git status --porcelain | head -20

With --worktree <path>, run both as git -C <path> ... ("Shared inputs").

Purpose

Review is the quality checkpoint between "code works" and "code is ready." This skill structures that step so changes are inspected for consistency, correctness, and alignment with the project's conventions before verification or PR creation. Self-review catches errors tests miss. Inconsistencies, loose ends, convention drift, design shortcuts. Delegated reviews (code, architecture, security) bring specialized scrutiny the implementer's tunnel vision would miss.

Depth, not breadth. This skill picks one lens per invocation. For a multi-surface fan-out that runs many reviewers at once and ranks their combined findings, use this plugin's fanout skill instead.

Shared inputs

  • Phase-boundary inputs. --worktree, --base, --quality-bar and --report-only let an orchestrator review a phase diff in a worker's worktree. Their table, the base-SHA pre-flight and the reviewer's brief are in context/phase-boundary.md; read it whenever any of them is passed. A base SHA overrides the ladder below: with --base, no pull-request lookup, fetch or remote read runs.
  • Review diff base. mode-scoped override first: close-out does not use this base at all. A spec container is not a branch, so that mode derives a container-scoped basis of its own, per execution shape (context/close-out.md "Why it needs its own diff basis"). Every other mode uses the base below. When an open PR exists for the branch, its baseRefName is the base: dispatched reviewers diff git merge-base origin/<baseRefName> HEAD. Find it with /source-control:pull-request list --head <current-branch> (if enabled), invoked via the Skill tool, or the forge's own list of open PRs by head branch otherwise. One row gives the base; an empty array means no open PR. A failed read is not "no PR": the base is unresolved, so stop and report it rather than substitute another base. With no PR, git merge-base origin/HEAD HEAD (falling back to the remote's resolved default branch via git ls-remote --symref, then origin/main; when none yields a merge-base the base is unresolved, never HEAD) so committed-clean branches still show their changes; untracked files come from git ls-files --others --exclude-standard.
  • Severity vocabulary, the project's own review docs when present; else ${CLAUDE_PLUGIN_ROOT}/context/severity.md.
  • Criteria resolution. Review criteria resolve through the standards index per the plugin binding ${CLAUDE_PLUGIN_ROOT}/reference/standards-contract.md (its "Resolution ladder" section owns the procedure), detailed in context/criteria.md.
  • Loosened checks. Every mode that reviews a diff (self, code, code-design, pr, slice, and criteria given --base or --worktree) applies the bundled criterion context/loosened-check.md. It always applies; consumer criteria apply in addition. Before the first dispatch, resolve its settings with `node "${CLAUDE_PLUGIN_ROOT}/scripts/loosened-check-settings.mjs" --root --ref origin/ --verdict-option '${user_config.loosened_check_verdict}' --patterns-file <memory_dir>/reviews//loosened-check-patterns.json --spec-issue <number of the issue the change resolv
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Bash(git branch --show-current)
  2. 02Bash(git status --porcelain | head -20)
  3. 03Bash(git rev-parse:*)
  4. 04Bash(git merge-base:*)
  5. 05Bash(git diff:*)
  6. 06Bash(git log:*)
  7. 07Bash(git show:*)
  8. 08Bash(git ls-files --others --exclude-standard)
  9. 09Bash(git ls-remote --symref origin)
  10. 10Bash(git ls-remote --symref origin:*)
  11. 11Bash(git fetch origin)
  12. 12Bash(git fetch origin:*)
  13. 13Bash(git remote get-url:*)
  14. 14Bash(node "${CLAUDE_PLUGIN_ROOT}/skills/setup/scripts/setup-apply.mjs" --check:*)
  15. 15Bash(node "${CLAUDE_PLUGIN_ROOT}/scripts/loosened-check-settings.mjs":*)
  16. 16Bash(node ${CLAUDE_PLUGIN_ROOT}/skills/setup/scripts/setup-apply.mjs --check:*)

Вложенные файлы

  • context/architecture.md
  • context/close-out.md
  • context/code-design.md
  • context/code.md
  • context/criteria.md
  • context/downstream.md
  • context/loosened-check.md
  • context/per-slice.md
  • context/phase-boundary.md
  • context/pr.md
  • context/restatement.md
  • context/security.md
  • context/self.md
  • context/spec.md
  • evals/evals.json
  • reference/native-surfaces.md

FAQ

Что делает скилл Quality Gate?

When bundled code-review or security-review resolves in this session, self/code/security modes run it first. Single-lens review checkpoint (self, code, code-design, architecture, security, spec, close-out, downstream, pr, criteria, slice, restatement), delegated reviewer. Use when: 'review this', 'self-review', 'quality gate', written change matches spec/issue/plan, shipped container close-out review, what could break/blast radius, after implementation.

Как установить скилл Quality Gate?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Quality Gate запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Quality Gate с