quality-gate
Run quality gate checks on code changes with tech stack-aware reviewers
от majesticlabs-dev★ 50 звёзд на GitHub
Установить quality-gate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Quality Gate
Run comprehensive code review through the quality gate agent, which orchestrates multiple specialized reviewers based on your project's tech stack.
Config
TECH_STACK = config_read("tech_stack", "generic")
APP_STATUS = config_read("app_status", "development")
LESSONS_PATH = config_read("lessons_path", ".agents/lessons/")
DEFAULT_BRANCH=$(git remote show origin | grep 'HEAD branch' | awk '{print $NF}')
Arguments
<input_arguments> $ARGUMENTS </input_arguments>
Scope modes:
#123or GitHub URL → PR changes- (no args) → unstaged changes (working directory)
--staged→ staged changes only--branch→ current branch vs default branchpath/to/file ...→ specific files
Step 1: Determine Scope
Parse arguments to determine what code to review:
# Default (unstaged changes)
git diff --name-only --diff-filter=d
# Staged mode
git diff --cached --name-only --diff-filter=d
# Branch mode (use default_branch from Context)
git diff <default_branch>...HEAD --name-only --diff-filter=d
# PR mode
gh pr diff <PR_NUMBER> --name-only
If no changes found, report:
## Quality Gate: APPROVED
**Reason:** No changes to review.
Step 2: Determine Context Description
Create a context description based on scope:
| Scope | Context Description |
|---|---|
| PR #123 | PR #123: |
| --branch | Branch: |
| --staged | Staged changes |
| (no args) | Working directory changes |
| files... | Files: |
Step 3: Invoke Quality Gate Agent
Launch the quality-gate agent with the determined context:
Task: majestic-engineer:workflow:quality-gate
Prompt: |
Context: <context description from Step 2>
Branch: <branch name or --staged>
Changed files:
<file list>
Step 4: Present Results
The quality-gate agent returns a structured verdict. Present the full report to the user.
Verdict outcomes:
- APPROVED - Ready to ship
- NEEDS CHANGES - Fix required issues before shipping
- BLOCKED - Critical issues require immediate attention
Examples
# Review unstaged changes
Skill("quality-gate")
# Review staged changes
Skill("quality-gate") --staged
# Review current branch vs main
Skill("quality-gate") --branch
# Review a PR
Skill("quality-gate") #123
# Review specific files
Skill("quality-gate") app/models/user.rb app/controllers/users_controller.rb
Configuration
Configure reviewers in .agents.yml:
quality_gate:
reviewers:
- security-review
- pragmatic-rails-reviewer
- performance-reviewer
See CLAUDE.md for available reviewers and configuration options.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash - 02
Read - 03
Grep - 04
Glob - 05
Task
FAQ
Что делает скилл quality-gate?
Run quality gate checks on code changes with tech stack-aware reviewers
Как установить скилл 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…