| 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 |
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:
#123 or GitHub URL → PR changes
- (no args) → unstaged changes (working directory)
--staged → staged changes only
--branch → current branch vs default branch
path/to/file ... → specific files
Step 1: Determine Scope
Parse arguments to determine what code to review:
git diff --name-only --diff-filter=d
git diff --cached --name-only --diff-filter=d
git diff <default_branch>...HEAD --name-only --diff-filter=d
gh diff <PR_NUMBER> --name-only