一键导入
quality-gate
Run quality gate checks on code changes with tech stack-aware reviewers
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run quality gate checks on code changes with tech stack-aware reviewers
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create distinctive, production-grade frontend interfaces with high design quality. Use when building web components, pages, or applications. Includes framework-specific guidance for Tailwind, React, Vue, and Rails/Hotwire ecosystems.
Skill file structure, naming conventions, directory layout, frontmatter requirements, and invocation control. Use when creating skill files or slash commands to ensure correct format and validation.
Forces adversarial reasoning before committing to decisions. Triggers on architectural choices, approach selection, and planning phases to prevent premature commitment bias.
Verify LLM reasoning using Reverse Chain-of-Thought (RCoT) to detect overlooked conditions.
Autonomous task implementation - research, plan, build, review, fix, ship
Generate a complete favicon set (ICO, PNG variants, apple-touch-icon, web manifest) from a source image and integrate into the project's HTML layout. Use when user asks to generate favicons, set up PWA icons, or add an apple-touch-icon.
| name | quality-gate |
| description | Run quality gate checks on code changes with tech stack-aware reviewers |
| argument-hint | [PR #/URL | --staged | --branch | files...] |
| allowed-tools | Bash Read Grep Glob Task |
Run comprehensive code review through the quality gate agent, which orchestrates multiple specialized reviewers based on your project's tech stack.
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}')
<input_arguments> $ARGUMENTS </input_arguments>
Scope modes:
#123 or GitHub URL → PR changes--staged → staged changes only--branch → current branch vs default branchpath/to/file ... → specific filesParse 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.
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: |
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>
The quality-gate agent returns a structured verdict. Present the full report to the user.
Verdict outcomes:
# 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
Configure reviewers in .agents.yml:
quality_gate:
reviewers:
- security-review
- pragmatic-rails-reviewer
- performance-reviewer
See CLAUDE.md for available reviewers and configuration options.