用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/majesticlabs-dev/majestic-marketplace --skill quality-gate命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| 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.