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★ 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-barand--report-onlylet 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-outdoes 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, itsbaseRefNameis the base: dispatched reviewers diffgit 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 viagit ls-remote --symref, thenorigin/main; when none yields a merge-base the base is unresolved, neverHEAD) so committed-clean branches still show their changes; untracked files come fromgit 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, andcriteriagiven--baseor--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
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash(git branch --show-current) - 02
Bash(git status --porcelain | head -20) - 03
Bash(git rev-parse:*) - 04
Bash(git merge-base:*) - 05
Bash(git diff:*) - 06
Bash(git log:*) - 07
Bash(git show:*) - 08
Bash(git ls-files --others --exclude-standard) - 09
Bash(git ls-remote --symref origin) - 10
Bash(git ls-remote --symref origin:*) - 11
Bash(git fetch origin) - 12
Bash(git fetch origin:*) - 13
Bash(git remote get-url:*) - 14
Bash(node "${CLAUDE_PLUGIN_ROOT}/skills/setup/scripts/setup-apply.mjs" --check:*) - 15
Bash(node "${CLAUDE_PLUGIN_ROOT}/scripts/loosened-check-settings.mjs":*) - 16
Bash(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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…