Run quality gate checks on code changes with tech stack-aware reviewers
Runs comprehensive code quality checks on changes with tech stack-aware reviewers
/plugin marketplace add majesticlabs-dev/majestic-marketplace/plugin install majestic-engineer@majestic-marketplace[PR #/URL | --staged | --branch | files...]workflows/Run comprehensive code review through the quality gate agent, which orchestrates multiple specialized reviewers based on your project's tech stack.
Read config values:
claude -p "/majestic:config tech_stack generic"claude -p "/majestic:config default_branch main"claude -p "/majestic:config app_status development"claude -p "/majestic:config review_topics_path ''"<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: <PR title from gh pr view> |
| --branch | Branch: <current branch name> |
| --staged | Staged changes |
| (no args) | Working directory changes |
| files... | Files: <file list> |
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
/majestic:quality-gate
# Review staged changes
/majestic:quality-gate --staged
# Review current branch vs main
/majestic:quality-gate --branch
# Review a PR
/majestic:quality-gate #123
# Review specific files
/majestic: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
- project-topics-reviewer
See CLAUDE.md for available reviewers and configuration options.